RazorDocsMode Mode { get; set; }
Gets or sets the active docs source mode.
Reusable Razor Class Library package for harvesting and serving repository documentation inside a Runnable web application.
RazorDocsWebModule for wiring the docs UI into a Runnable web hostAddRazorDocs() for typed options binding and core service registrationDocAggregator plus the built-in markdown and C# harvesters/docs MVC surface used by RazorDocs consumersSlice 1 supports source-backed docs via RazorDocsOptions:
{
"RazorDocs": {
"Mode": "Source",
"Source": {
"RepositoryRoot": "/path/to/repo"
}
}
}
If RazorDocs:Source:RepositoryRoot is omitted, the package falls back to repository discovery from the app content root. Bundle mode is modeled but intentionally rejected until Slice 2 lands.
Represents configuration for the RazorDocs package and host.
RazorDocsMode Mode { get; set; }
Gets or sets the active docs source mode.
RazorDocsSourceOptions Source { get; set; }
Gets source-mode settings used when docs are harvested from a repository checkout.
RazorDocsBundleOptions Bundle { get; set; }
Gets bundle-mode settings used by future bundle-backed runtime loading.
RazorDocsSidebarOptions Sidebar { get; set; }
Gets sidebar rendering settings.
Source-mode configuration for RazorDocs.
string? RepositoryRoot { get; set; }
Gets or sets the repository root used for source harvesting. When null, RazorDocs falls back to repository discovery from the content root.
Bundle-mode configuration for RazorDocs.
string? Path { get; set; }
Gets or sets the path to the docs bundle payload.
Sidebar presentation settings for RazorDocs.
string[] NamespacePrefixes { get; set; }
Gets or sets configured namespace prefixes for sidebar label simplification.
Validates RazorDocsOptions and rejects unsupported or ambiguous startup configurations.
Enumerates the supported RazorDocs content source modes.
Registers RazorDocs services and typed options.
IServiceCollection AddRazorDocs(this IServiceCollection services)
Adds the RazorDocs package services and options to the service collection.
servicesThe target service collection.The same service collection for chaining.
Web module configuration for the RazorDocs documentation system.
void ConfigureServices(StartupContext context, IServiceCollection services)
Registers services required by the RazorDocs module into the provided service collection.
Adds HTML sanitizer, Markdown and C# harvesters, and the documentation aggregator.
void RegisterDependentModules(ModuleDependencyBuilder builder)
Registers runtime module dependencies for this web module, including RazorWireWebModule.
builderThe dependency builder used to register required modules.void ConfigureHostBeforeServices(StartupContext context, IHostBuilder builder)
Performs host-level configuration steps before application services are registered.
contextThe startup context providing module and environment information.builderThe host builder to configure prior to service registration.void ConfigureHostAfterServices(StartupContext context, IHostBuilder builder)
Performs host-level configuration steps after application services have been registered.
contextThe startup context providing module and environment information.builderThe host builder to modify or extend after services are configured.void ConfigureWebApplication(StartupContext context, IApplicationBuilder app)
Configures the application's request pipeline and middleware for this module.
contextThe startup context for the module invocation.appThe application builder used to configure middleware and endpoints.void ConfigureEndpoints(StartupContext context, IEndpointRouteBuilder endpoints)
Adds the module's default catch-all controller route for documentation endpoints.
contextStartup context for the application and environment.endpointsEndpoint route builder used to map the module's routes.