This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

ApiReferenceRegistrationOptions Pennington.DocSite.Api

Per-registration options passed to AddApiReference.

Properties

RoutePrefix string
URL prefix under which this reference tree's pages are served. Leading and trailing slashes are normalized automatically. Examples: "/reference/api/", "/api/", "/api/spectre-cli/". Defaults to "/reference/api/".
SearchPriority int
Search priority for every page under this tree's RoutePrefix, registered into SearchIndexOptions.PrefixPriorities so it populates the index p field. Lower ranks later. Defaults to 3 — below typical prose so generated reference pages don't bury conceptual articles that match the same term.
TocSectionLabel string
Section label the TOC entry is grouped under in the sidebar. Leave null to keep the entry unsectioned. Set to a string that matches another page's sectionLabel to join that section.
TocTitle string
Sidebar title for the single TOC entry pointing at this registration's index page. Set to null to suppress the TOC entry entirely (the pages still publish). Defaults to "API reference".

Pennington.DocSite.Api.ApiReferenceRegistrationOptions

namespace Pennington.DocSite.Api;

/// Per-registration options passed to AddApiReference.
public class ApiReferenceRegistrationOptions
{
    /// URL prefix under which this reference tree's pages are served. Leading and trailing slashes are normalized automatically. Examples: "/reference/api/", "/api/", "/api/spectre-cli/". Defaults to "/reference/api/".
    
public string RoutePrefix { get; set; }
/// Search priority for every page under this tree's RoutePrefix, registered into SearchIndexOptions.PrefixPriorities so it populates the index p field. Lower ranks later. Defaults to 3 — below typical prose so generated reference pages don't bury conceptual articles that match the same term.
public int SearchPriority { get; set; }
/// Section label the TOC entry is grouped under in the sidebar. Leave null to keep the entry unsectioned. Set to a string that matches another page's sectionLabel to join that section.
public string TocSectionLabel { get; set; }
/// Sidebar title for the single TOC entry pointing at this registration's index page. Set to null to suppress the TOC entry entirely (the pages still publish). Defaults to "API reference".
public string TocTitle { get; set; }
}