The API module provides the site.api root object used to register API documentation generators. It acts as a registry — language-specific generators register themselves as named sub-objects.
Currently available generators:
.csproj filesAPI generators are accessed as properties on site.api. They are created lazily — configuration objects are only instantiated when first accessed from config.scriban:
# Accessing api.dotnet creates the .NET API config object
with api.dotnet
title = "MyProject API Reference"
projects = [{ name: "MyProject", path: "../src/MyProject/MyProject.csproj" }]
end
xref: link resolution for cross-referencing API members