Skip to content

Commit

Permalink
feat(docs): upgrade to docusaurus v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Badisi committed Jan 16, 2024
1 parent 01a93be commit b21b0ee
Show file tree
Hide file tree
Showing 4 changed files with 8,195 additions and 15,490 deletions.
17 changes: 11 additions & 6 deletions projects/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/nightOwlLight');
const darkCodeTheme = require('prism-react-renderer/themes/nightOwl');
const lightCodeTheme = require('prism-react-renderer').themes.nightOwlLight;
const darkCodeTheme = require('prism-react-renderer').themes.nightOwl;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand All @@ -21,11 +21,15 @@ const config = {
defaultLocale: 'en-US',
locales: ['en-US']
},
plugins: [
themes: [
[
require.resolve('@cmfcmf/docusaurus-search-local'),
require.resolve('@easyops-cn/docusaurus-search-local'),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
{
language: 'en'
docsRouteBasePath: '/',
hashed: true,
language: 'en',
searchBarShortcut: false
}
]
],
Expand Down Expand Up @@ -96,7 +100,8 @@ const config = {
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
darkTheme: darkCodeTheme,
additionalLanguages: ['bash', 'diff', 'json']
}
})
};
Expand Down
Loading

0 comments on commit b21b0ee

Please sign in to comment.