Skip to content
Merged
Show file tree
Hide file tree
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
27 changes: 22 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config = {
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en', 'es', 'fr', 'de', 'nl', 'zh', 'ja', 'ru', 'ko','sv', 'vi'],
locales: ['en', 'es', 'fr', 'de', 'nl', 'zh', 'ja', 'ru', 'ko', 'sv', 'vi'],
},

presets: [
Expand All @@ -50,6 +50,23 @@ const config = {
],
],

plugins: [
[
'docusaurus-lunr-search',
{
// Chinese isn't supported yet
languages: ['en', 'es', 'fr', 'de', 'nl', 'ja', 'ru', 'ko', 'sv', 'vi'],
// Keep max results to 10
maxHits: 10,
indexBatchSize: 100,
excludeRoutes: [
'docs/tags/**',
'404'
]
}
]
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand All @@ -67,10 +84,10 @@ const config = {
position: 'left',
label: 'Docs',
},
{
type: 'localeDropdown',
position: 'right'
},
{
type: 'localeDropdown',
position: 'right'
},
{
href: 'https://github.com/SideStore/',
label: 'GitHub',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@docusaurus/preset-classic": "3.7.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-lunr-search": "^3.6.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down
Loading