MarkdownPageScope #
Where the pages of a site are.
Fields #
sourceRootstring
Absolute directory holding the Markdown sources, that is the resolved srcDir.
publicDiroptionalstring
Absolute directory of files that are copied as they are, that is the
resolved publicDir. Markdown inside it is not a page. Leave it out when
the site has no public directory.
excludeoptionalreadonly string[]
Glob patterns, relative to sourceRoot, of Markdown files that are not
pages, that is the resolved srcExclude. Leave it out to keep every file.
rewritesoptionalPageRewrites
rewrites of the site config, which moves pages to other routes.
Full type signature
TypeScript
interface MarkdownPageScope {
sourceRoot: string
publicDir?: string
exclude?: readonly string[]
rewrites?: PageRewrites
}

Comments