collection-asset-documents.ts#
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 CollectionAssetDocumentDiagnosticMembers
Properties
| Name | Type | Description |
|---|---|---|
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 CollectionAssetDocumentInputMembers
Properties
| Name | Type | Description |
|---|---|---|
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 CollectionAssetResolvedDocumentReferenceMembers
Properties
| Name | Type | Description |
|---|---|---|
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 CollectionAssetResolvedDocumentReferenceMembers
Properties
| Name | Type | Description |
|---|---|---|
attributeoptional |
string |
|
documentPath |
string |
|
hash |
string |
|
nodeType |
string |
|
original |
string |
|
pagePath |
string |
|
pathname |
string |
|
publicPath |
string |
|
search |
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>Parameters
-
inputPlanCollectionAssetsFromDocumentsInput
Returns
Promise<PlanCollectionAssetsFromDocumentsResult>