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
Iconstring?- Default:
nullOptional SVG or markup for an icon beside the title. Slugstring- URL path prefix / top-level directory name (e.g., "getting-started").
Titlestring- Display name shown in the area selector (e.g., "Getting Started").
Constructors
.ctor
#public record ContentArea(string Title, string Slug, string? Icon = null);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
Titlestring- Display name shown in the area selector (e.g., "Getting Started").
Slugstring- URL path prefix / top-level directory name (e.g., "getting-started").
Iconstring? (optional)- Optional SVG or markup for an icon beside the title.
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 record ContentArea(string Title, string Slug, string? Icon = null);
/// Optional SVG or markup for an icon beside the title.
string? Icon = null
;
/// URL path prefix / top-level directory name (e.g., "getting-started").
string Slug
;
/// Display name shown in the area selector (e.g., "Getting Started").
string Title
;
}