diff --git a/docusaurus.config.ts b/docusaurus.config.ts index a8a1a4a..7a98840 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -28,7 +28,7 @@ const config: Config = { // may want to replace "en" with "zh-Hans". i18n: { defaultLocale: 'zh-Hans', - locales: ['zh-Hans', 'en'], + locales: ['zh-Hans'], }, presets: [ @@ -72,12 +72,21 @@ const config: Config = { position: 'left', label: 'Tutorial', }, - {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', - label: 'GitHub', + // type: 'default', + to: '/blog', + label: 'Blog', + position: 'left'}, + { + type: 'search', position: 'right', }, + { + // type: 'default', + href: 'https://github.com/y0sh1ne/y0sh1ne.github.io', + html: '', + position: 'right', + } ], }, footer: { @@ -129,6 +138,15 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + algolia: { + // The application ID provided by Algolia + appId: 'x', + + // Public API key: it is safe to commit it + apiKey: 'x', + + indexName: 'y0sh1ne', + } } satisfies Preset.ThemeConfig, };