ContentProviderModule
PackageFsLiveDocs.Core
ContentProvider
ContentProvider loads Markdown, parses page metadata, expands transclusions, resolves semantic references, validates links, and copies documentation assets.
Capture uses expandTransclusions to create canonical Markdown while preserving xref identifiers.
Rendering uses resolveSnippets to resolve remaining semantic references and format matched semantic code blocks.
Use scanDocsWithOptions when you already have a semantic artifact. Use scanDocs for current syntax-only or default behavior.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| exampleShortcodePattern | exampleShortcodePattern | Matches the shortcode that transcludes an XML example into a page. |
| transcludedExampleNames | transcludedExampleNames body | Names of the XML examples a page body transcludes. |
| outputPathFor | outputPathFor docsDir filePath | Maps a Markdown file to its stable output path relative to the docs root. |
| copyStaticFiles | copyStaticFiles docsDir outputDir | Copies consumer-owned non-Markdown files from the docs tree into the generated site. |
| defaultTitle | defaultTitle filePath | No description available. |
| pipeline | pipeline | The shared Markdig pipeline with advanced extensions enabled. |
| deserializer | deserializer | The YAML deserializer for frontmatter processing. |
| findIndexIteration | findIndexIteration start f arr | Helper to find the index of an element starting from a given position. |
| parseFrontMatter | parseFrontMatter content | Parses the YAML frontmatter from a raw Markdown string. |
| findMember | findMember id package | Searches for a member by ID or Name within a PackageModel. |
| findEntity | findEntity id package | No description available. |
| findExample | findExample id package | No description available. |
| expandTransclusions | expandTransclusions body sourceDir package | Expands source and XML-example transclusions while preserving semantic cross-references. |
| resolveSnippets | resolveSnippets body sourceDir package rootPath | Resolves transclusions and semantic links for a current render. |
| loadPage | loadPage filePath sourceDir package rootPath currentOutputPath allowedOutputs | Loads and processes a single Markdown page. |
| scanDocsWithOptions | scanDocsWithOptions docsDir sourceDir package rootPath semanticCode | Scans guides and semantically formats F# fences using the supplied assembly references. |
| scanDocs | scanDocs docsDir sourceDir package rootPath | Scans the docs directory and loads all guide pages. |
| applyApiDocsWithOptions | applyApiDocsWithOptions docsDir sourceDir package semanticCode | Applies long-form API documentation with semantic F# formatting. |
| applyApiDocs | applyApiDocs docsDir sourceDir package | Applies long-form documentation from docs/api/*.md to the package model. |
Matches the shortcode that transcludes an XML example into a page.
Returns
string
Names of the XML examples a page body transcludes.
Parameters
| Name | Type | Description |
|---|---|---|
| body | string |
Returns
Set<string>
Maps a Markdown file to its stable output path relative to the docs root.
Parameters
| Name | Type | Description |
|---|---|---|
| docsDir | string | |
| filePath | string |
Returns
string
Copies consumer-owned non-Markdown files from the docs tree into the generated site.
Parameters
| Name | Type | Description |
|---|---|---|
| docsDir | string | |
| outputDir | string |
Returns
unit
The shared Markdig pipeline with advanced extensions enabled.
Returns
MarkdownPipeline
The YAML deserializer for frontmatter processing.
Returns
IDeserializer
Helper to find the index of an element starting from a given position.
Parameters
| Name | Type | Description |
|---|---|---|
| start | int | |
| f | 'T -> bool | |
| arr | 'T[] |
Returns
int option
Parses the YAML frontmatter from a raw Markdown string.
Parameters
| Name | Type | Description |
|---|---|---|
| content | string |
Returns
(ContentMetadata * string) option
Searches for a member by ID or Name within a PackageModel.
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | |
| package | PackageModel |
Returns
MemberModel option
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | |
| package | PackageModel |
Returns
EntityModel option
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | |
| package | PackageModel |
Returns
ExampleModel option
Expands source and XML-example transclusions while preserving semantic cross-references.
Parameters
| Name | Type | Description |
|---|---|---|
| body | string | |
| sourceDir | string | |
| package | PackageModel |
Returns
string
Resolves transclusions and semantic links for a current render.
Parameters
| Name | Type | Description |
|---|---|---|
| body | string | |
| sourceDir | string | |
| package | PackageModel | |
| rootPath | string |
Returns
string
Loads and processes a single Markdown page.
Parameters
| Name | Type | Description |
|---|---|---|
| filePath | string | The markdown file to read. |
| sourceDir | string | The root directory used to resolve snippet shortcodes. |
| package | PackageModel | The extracted package model used for examples and xrefs. |
| rootPath | string | The relative root path used when generating links. |
| currentOutputPath | string | The output HTML path used for link validation. |
| allowedOutputs | Set<string> | The set of known output pages used to validate local links. |
Returns
ContentPage
Scans guides and semantically formats F# fences using the supplied assembly references.
Parameters
| Name | Type | Description |
|---|---|---|
| docsDir | string | |
| sourceDir | string | |
| package | PackageModel | |
| rootPath | string | |
| semanticCode | Options |
Returns
ContentPage list
Scans the docs directory and loads all guide pages.
Parameters
| Name | Type | Description |
|---|---|---|
| docsDir | string | The docs root containing markdown pages. |
| sourceDir | string | The source root used for snippet resolution. |
| package | PackageModel | The extracted package model used for xrefs and examples. |
| rootPath | string | The relative root path used when rendering links. |
Returns
ContentPage list
Applies long-form API documentation with semantic F# formatting.
Parameters
| Name | Type | Description |
|---|---|---|
| docsDir | string | |
| sourceDir | string | |
| package | PackageModel | |
| semanticCode | Options |
Returns
PackageModel
Applies long-form documentation from docs/api/*.md to the package model.
Parameters
| Name | Type | Description |
|---|---|---|
| docsDir | string | The docs root that contains the api subdirectory. |
| sourceDir | string | The source root used for snippet resolution. |
| package | PackageModel | The current package model to enrich. |
Returns
PackageModel