Skip to content

collection-asset-documents.ts#

View Markdown

Source

5 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

5 symbols 1 functions 4 interfaces 1 parameters 21 members 1 returns

Reference#

interfaceCollectionAssetDocumentDiagnosticActionable diagnostic scoped to one selected document and, when relevant, one r…

Actionable diagnostic scoped to one selected document and, when relevant, one reference.

Signature

export interface CollectionAssetDocumentDiagnostic

View source

Members

Properties
NameTypeDescription
code CollectionAssetDocumentDiagnosticCode
documentPath string
message string
pagePathoptional string
referenceoptional string
sourcePathoptional string
interfaceCollectionAssetDocumentInputOne public Markdown or MDX document whose local references may publish files.

One public Markdown or MDX document whose local references may publish files.

Signature

export interface CollectionAssetDocumentInput

View source

Members

Properties
NameTypeDescription
astoptional MarkdownNode
Parsed mdast-compatible tree. Takes precedence over source when present.
documentPath string
Markdown/MDX document path, relative to root or absolute within it.
pagePath string
Public page path for resolving relative aliases such as ./cover.png.
sourceoptional string
Markdown/MDX source. When omitted, documentPath is read from disk.
interfaceCollectionAssetDocumentReference extends CollectionAssetResolvedDocumentReferenceA local document reference included in the resulting asset plan.

A local document reference included in the resulting asset plan.

Signature

export interface CollectionAssetDocumentReference extends CollectionAssetResolvedDocumentReference

View source

Members

Properties
NameTypeDescription
publicPaths string[]
interfaceCollectionAssetResolvedDocumentReferenceA local document reference after resolving its source file and default alias.

A local document reference after resolving its source file and default alias.

Signature

export interface CollectionAssetResolvedDocumentReference

View source

Members

Properties
NameTypeDescription
attributeoptional string
documentPath string
hash string
nodeType string
original string
pagePath string
pathname string
publicPath string
sourcePath string
fnplanCollectionAssetsFromDocuments(input: PlanCollectionAssetsFromDocumentsInput): Promise<PlanCollectionAssetsFromDocumentsResult>Plan content-addressed collection assets by following local references from hos…

Plan content-addressed collection assets by following local references from host-selected Markdown/MDX documents.

Signature

export async function planCollectionAssetsFromDocuments(input: PlanCollectionAssetsFromDocumentsInput): Promise<PlanCollectionAssetsFromDocumentsResult>

View source

Parameters

  • input PlanCollectionAssetsFromDocumentsInput

Returns

Promise<PlanCollectionAssetsFromDocumentsResult>