PageBuildArtifact #
A built page as pageArtifact() and buildArtifacts() handlers see it.
Fields #
sourcestring
Markdown source of the page, with <!--@include--> and <<< written out.
originPageOrigin
file for a Markdown file in srcDir, plugin for a page added by pages().
fileoptionalstring
Absolute path of the Markdown file. Missing for a plugin page.
sourcePathstring
Path of the file relative to srcDir, for example /packages/a/src/intro.md.
A plugin page uses the sourcePath the core generates, <plugin name><page path>, for example @typedoc/core/define-plugin.md.
pagePathstring
Source path after rewrites, for example /a/intro.md. Relative links of
the page start here; it equals sourcePath when no rule moves the page.
routePathstring
Route path of the page, for example /guide/intro.
pageDataReadonly<PageData>
The page data that is sent to the browser.
Full type signature
TypeScript
interface PageBuildArtifact {
source: string
origin: PageOrigin
file?: string
sourcePath: string
pagePath: string
routePath: string
pageData: Readonly<PageData>
}

Comments