Skip to content

Commit

Permalink
chg: Add Docusaurus ignore for _ files/folders inside src/pages
Browse files Browse the repository at this point in the history
  • Loading branch information
heysokam committed Jan 16, 2024
1 parent 9e144de commit a71b3ac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,21 @@ const config: Config = {
[
'classic',
{
docs: {
docs: { // Configuration for @docusaurus/plugin-content-docs (false to disable)
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.ts'),
exclude: ['**/_*.{js,jsx,ts,tsx,md,mdx}', '**/_partials/**'],
editUrl: editURL, // Remove this to remove the "edit this page" links.
},
theme: {
customCss: require.resolve('./src/css/custom.css')
}
},
pages: { // Configuration for @docusaurus/plugin-content-pages (false to disable)
exclude: [
'**/_*.{js,jsx,ts,tsx,md,mdx}', // Do not route files starting with `_`
'**/_**/**', // Do not route folders starting with `_`
],
},
}
]
],
Expand Down

0 comments on commit a71b3ac

Please sign in to comment.