Plugin Options
Full reference for the plugins section of the preset options. These options configure the Docusaurus content plugins (docs, blog, pages, sitemap) as passed through the Nova preset.
Nova vs Docusaurus Defaults
Some defaults differ from Docusaurus's own defaults. Nova-specific overrides are noted in the table descriptions. The types in nova-config.d.ts are the source of truth.
Top-Level Structure
docusaurus.config.ts
presets: [[
'@cbnventures/docusaurus-preset-nova',
{
preset: 'envoy',
plugins: {
docs: { /* ... */ },
blog: { /* ... */ },
pages: { /* ... */ },
sitemap: { /* ... */ },
},
},
]],
Set blog, pages, or sitemap to false to disable them. The docs plugin is always included and cannot be disabled.
Docs Plugin
| Option | Type | Default | Description |
|---|---|---|---|
docs.id | string | 'default' | Plugin instance ID. |
docs.path | string | 'docs' | Path to the docs directory. |
docs.routeBasePath | string | 'docs' | URL base path for docs pages. |
docs.sidebarPath | string | 'sidebars.ts' | Path to the sidebars config file. |
docs.editUrl | string | function | undefined | Base URL for "Edit this page" links. |
docs.breadcrumbs | boolean | true | Show breadcrumb navigation. |
docs.showLastUpdateTime | boolean | false | Show last updated timestamp. |
docs.showLastUpdateAuthor | boolean | false | Show last update author. |
docs.tags | string | false | null | 'tags.yml' | Path to the tags file. false to disable tags. |
docs.remarkPlugins | array | [] | Custom remark plugins. |
docs.rehypePlugins | array | [] | Custom rehype plugins. |
Blog Plugin
| Option | Type | Default | Description |
|---|---|---|---|
blog.id | string | 'default' | Plugin instance ID. |
blog.path | string | 'blog' | Path to the blog directory. |
blog.routeBasePath | string | 'blog' | URL base path for blog pages. |
blog.blogTitle | string | 'Blog' | Blog page title. |
blog.blogDescription | string | 'Blog' | Blog page meta description. |
blog.postsPerPage | number | 'ALL' | 10 | Posts per listing page. |
blog.showReadingTime | boolean | true | Show estimated reading time. |
blog.authorsMapPath | string | 'authors.yml' | Path to the authors map file. |
blog.tags | string | false | null | 'tags.yml' | Path to the tags file. false to disable tags. |
blog.remarkPlugins | array | [] | Custom remark plugins. |
blog.rehypePlugins | array | [] | Custom rehype plugins. |
Pages Plugin
| Option | Type | Default | Description |
|---|---|---|---|
pages.id | string | 'default' | Plugin instance ID. |
pages.path | string | 'src/pages' | Path to the pages directory. |
pages.routeBasePath | string | '/' | URL base path for custom pages. |
Sitemap Plugin
| Option | Type | Default | Description |
|---|---|---|---|
sitemap.filename | string | 'sitemap.xml' | Sitemap output filename. |
sitemap.ignorePatterns | string[] | [] | Route patterns to exclude from the sitemap. |
sitemap.lastmod | 'date' | 'datetime' | null | null | Last modified format. |
sitemap.changefreq | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'always' | 'never' | null | 'weekly' | Default change frequency hint — sitemaps.org values; 'weekly' is the upstream sitemap plugin default. |
sitemap.priority | number | null | 0.5 | Default priority hint (0.0–1.0); 0.5 is the upstream sitemap plugin default. |