Skip to main content

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

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

OptionTypeDefaultDescription
docs.idstring'default'Plugin instance ID.
docs.pathstring'docs'Path to the docs directory.
docs.routeBasePathstring'docs'URL base path for docs pages.
docs.sidebarPathstring'sidebars.ts'Path to the sidebars config file.
docs.editUrlstring | undefinedundefinedBase URL for "Edit this page" links.
docs.breadcrumbsbooleantrueShow breadcrumb navigation.
docs.showLastUpdateTimebooleanfalseShow last updated timestamp.
docs.showLastUpdateAuthorbooleanfalseShow last update author.
docs.tagsstring | false'tags'Tags base path. false to disable tags.
docs.remarkPluginsarray[]Custom remark plugins.
docs.rehypePluginsarray[]Custom rehype plugins.

Blog Plugin

OptionTypeDefaultDescription
blog.idstring'default'Plugin instance ID.
blog.pathstring'blog'Path to the blog directory.
blog.routeBasePathstring'blog'URL base path for blog pages.
blog.blogTitlestring'Blog'Blog page title.
blog.blogDescriptionstring''Blog page meta description.
blog.postsPerPagenumber | 'ALL'10Posts per listing page.
blog.showReadingTimebooleantrueShow estimated reading time.
blog.authorsMapPathstring'authors.yml'Path to the authors map file.
blog.tagsstring | false'tags'Tags base path. false to disable tags.
blog.remarkPluginsarray[]Custom remark plugins.
blog.rehypePluginsarray[]Custom rehype plugins.

Pages Plugin

OptionTypeDefaultDescription
pages.idstring'default'Plugin instance ID.
pages.pathstring'src/pages'Path to the pages directory.
pages.routeBasePathstring'/'URL base path for custom pages.

Sitemap Plugin

OptionTypeDefaultDescription
sitemap.filenamestring'sitemap.xml'Sitemap output filename.
sitemap.ignorePatternsstring[][]Route patterns to exclude from the sitemap.
sitemap.lastmod'date' | 'datetime' | nullnullLast modified format.
sitemap.changefreqstring | nullnullDefault change frequency hint.
sitemap.prioritynumber | nullnullDefault priority hint (0.0–1.0).