Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const require = createRequire(import.meta.url);
const { getInactiveDocLocations } = require('./src/docConfig');
const inactiveDocExcludes = process.env.DOCS_MODE === 'prod' ? getInactiveDocLocations().map((loc) => `${loc}/**`) : [];

// Setting `exclude` replaces Docusaurus's default list, so it is restated here to keep
// underscore-prefixed partials and authoring notes (e.g. `_input-needed.md`) unpublished.
const docusaurusDefaultDocExcludes = ['**/_*.{js,jsx,ts,tsx,md,mdx}', '**/_*/**', '**/*.test.{js,jsx,ts,tsx}', '**/__tests__/**'];

// Normalize the drive letter to uppercase on Windows to prevent webpack
// "modules with names that only differ in casing" warnings.
function normalizeDriveLetter(p) {
Expand Down Expand Up @@ -80,7 +84,7 @@ export default {
remarkPlugins: [remarkMath, remarkGfm],
rehypePlugins: [rehypeKatex],
breadcrumbs: true,
exclude: inactiveDocExcludes,
exclude: [...docusaurusDefaultDocExcludes, ...inactiveDocExcludes],
},
// No blog on this site. Without an explicit `false`, preset-classic
// enables the blog plugin on defaults; Docusaurus 3.10+ then emits an
Expand Down
Loading