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

ContentArea Pennington.DocSite

Defines a content area within a documentation site. Each area maps to a top-level directory and URL prefix, and gets its own TOC section.

Properties

Icon string
Optional SVG or markup for an icon beside the title.
SearchBoost int?
Optional search ranking boost for this area, relative to SearchIndexOptions.DefaultPriority (positive promotes, negative demotes). When null, the area is auto-boosted by its position in the list — earlier areas weigh more — so task-oriented docs lead over reference when matches are comparable. Set it to override that default for a specific area.
Slug string
URL path prefix / top-level directory name (e.g., "getting-started").
Title string
Display name shown in the area selector (e.g., "Getting Started").

Constructors

ContentArea

#
public ContentArea(string Title, string Slug, string Icon = null, int? SearchBoost = default)

Defines a content area within a documentation site. Each area maps to a top-level directory and URL prefix, and gets its own TOC section.

Parameters

Title string
Display name shown in the area selector (e.g., "Getting Started").
Slug string
URL path prefix / top-level directory name (e.g., "getting-started").
Icon string
Optional SVG or markup for an icon beside the title.
SearchBoost int?
Optional search ranking boost for this area, relative to SearchIndexOptions.DefaultPriority (positive promotes, negative demotes). When null, the area is auto-boosted by its position in the list — earlier areas weigh more — so task-oriented docs lead over reference when matches are comparable. Set it to override that default for a specific area.

Pennington.DocSite.ContentArea

namespace Pennington.DocSite;

/// Defines a content area within a documentation site. Each area maps to a top-level directory and URL prefix, and gets its own TOC section.
public record ContentArea
{
    /// Defines a content area within a documentation site. Each area maps to a top-level directory and URL prefix, and gets its own TOC section.
    
public ContentArea(string Title, string Slug, string Icon = null, int? SearchBoost = default)
; /// Optional SVG or markup for an icon beside the title.
public string Icon { get; set; }
/// Optional search ranking boost for this area, relative to SearchIndexOptions.DefaultPriority (positive promotes, negative demotes). When null, the area is auto-boosted by its position in the list — earlier areas weigh more — so task-oriented docs lead over reference when matches are comparable. Set it to override that default for a specific area.
public int? SearchBoost { get; set; }
/// URL path prefix / top-level directory name (e.g., "getting-started").
public string Slug { get; set; }
/// Display name shown in the area selector (e.g., "Getting Started").
public string Title { get; set; }
}