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

ApiReferenceRegistration Pennington.DocSite.Api

One named API-reference tree: a provider key and the public URL prefix under which its pages are served.

Properties

Name string
Registration name. Matches the name argument passed to the metadata backend's AddApiMetadataFrom* call.
RoutePrefix string
Normalized URL prefix with leading and trailing slashes, e.g. "/api/" or "/reference/api/spectre/".
SearchPriority int
Search-index priority applied to every page under RoutePrefix; lower ranks later.
TocSectionLabel string
Section label the TOC entry groups under, or null to keep it unsectioned.
TocTitle string
Sidebar title for the index page's TOC entry, or null to suppress the entry.

Constructors

ApiReferenceRegistration

#
public ApiReferenceRegistration(string Name, string RoutePrefix, string TocTitle, string TocSectionLabel, int SearchPriority)

One named API-reference tree: a provider key and the public URL prefix under which its pages are served.

Parameters

Name string
Registration name. Matches the name argument passed to the metadata backend's AddApiMetadataFrom* call.
RoutePrefix string
Normalized URL prefix with leading and trailing slashes, e.g. "/api/" or "/reference/api/spectre/".
TocTitle string
Sidebar title for the index page's TOC entry, or null to suppress the entry.
TocSectionLabel string
Section label the TOC entry groups under, or null to keep it unsectioned.
SearchPriority int
Search-index priority applied to every page under RoutePrefix; lower ranks later.

Pennington.DocSite.Api.ApiReferenceRegistration

namespace Pennington.DocSite.Api;

/// One named API-reference tree: a provider key and the public URL prefix under which its pages are served.
public record ApiReferenceRegistration
{
    /// One named API-reference tree: a provider key and the public URL prefix under which its pages are served.
    
public ApiReferenceRegistration(string Name, string RoutePrefix, string TocTitle, string TocSectionLabel, int SearchPriority)
; /// Registration name. Matches the name argument passed to the metadata backend's AddApiMetadataFrom* call.
public string Name { get; set; }
/// Normalized URL prefix with leading and trailing slashes, e.g. "/api/" or "/reference/api/spectre/".
public string RoutePrefix { get; set; }
/// Search-index priority applied to every page under RoutePrefix; lower ranks later.
public int SearchPriority { get; set; }
/// Section label the TOC entry groups under, or null to keep it unsectioned.
public string TocSectionLabel { get; set; }
/// Sidebar title for the index page's TOC entry, or null to suppress the entry.
public string TocTitle { get; set; }
}