Skip to content

Commit 42989ce

Browse files
committed
optimize algolia and remove i18n
1 parent 88ef059 commit 42989ce

File tree

7 files changed

+1838
-125
lines changed

7 files changed

+1838
-125
lines changed

docusaurus.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,16 @@ const config = {
176176
type: "image/x-icon",
177177
href: '/favicon.ico',
178178
},
179-
}
179+
},
180+
{
181+
tagName: 'link',
182+
attributes: {
183+
rel: 'preconnect',
184+
href: 'https://D1KV1BYF3B-dsn.algolia.net',
185+
crossOrigin: 'anonymous',
186+
},
187+
},
188+
180189
],
181190

182191
themeConfig:
@@ -369,6 +378,7 @@ const config = {
369378
apiKey: '8730c526c66126ee3424fe3e8647d825',
370379
appId: 'D1KV1BYF3B',
371380
},
381+
insights: true,
372382
},
373383
mermaid: {
374384
theme: {light: "neutral", dark: "dark"},

i18n/zh-Hans/plugin-ideal-image.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

i18n/zh-Hans/plugin-pwa.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

i18n/zh-Hans/theme-common.json

Lines changed: 0 additions & 72 deletions
This file was deleted.

i18n/zh-Hans/theme-live-codeblock.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

i18n/zh-Hans/theme-search-algolia.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)