Skip to content

Commit

Permalink
Upgrade to Docusaurus v3 (#357)
Browse files Browse the repository at this point in the history
See the upgrade guide: https://docusaurus.io/docs/migration/v3

Summary:
- Bump dependencies: Docusaurus and React
- Move `@docusaurus/*` from `devDependencies` to `dependencies` because the official doc describes so.
- Rewrite `docusaurus.config.js` in ESM
  • Loading branch information
ybiquitous authored Nov 5, 2023
1 parent 3868d81 commit 5f2e271
Show file tree
Hide file tree
Showing 5 changed files with 11,122 additions and 10,462 deletions.
12 changes: 7 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {typeof import('@generated/docusaurus.config').default} */
module.exports = {
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Stylelint',
tagline: 'A mighty, modern style linter',
url: 'https://stylelint.io',
Expand All @@ -14,15 +14,15 @@ module.exports = {
'@docusaurus/preset-classic',
{
blog: false,
debug: undefined,
debug: false,
docs: {
breadcrumbs: false,
routeBasePath: '/',
path: 'docs',
sidebarPath: './sidebars.json',
},
theme: {
customCss: [require.resolve('./src/css/custom.css')],
customCss: ['./src/css/custom.css'],
},
},
],
Expand Down Expand Up @@ -100,5 +100,7 @@ module.exports = {
};
},
],
clientModules: [require.resolve('./src/stylelint-io-global-script.js')],
clientModules: ['./src/stylelint-io-global-script.js'],
};

export default config;
Loading

0 comments on commit 5f2e271

Please sign in to comment.