Skip to content

Commit becfeb1

Browse files
committed
0.2.0 - configure docsearch and gtag
Configure DocSearch and GTag.
1 parent c5c29e9 commit becfeb1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
2. Update the tutorials for introducing the newly implemented downloader components.
1313
3. Update the example script explanation `/examples/download-file`.
1414
4. Update the API documents to the newest version (`v0.2.0`).
15+
5. Configure DocSearch and GTag.
1516

1617
#### :wrench: Fix
1718

docusaurus.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ const config: Config = {
7575
theme: {
7676
customCss: "./src/css/custom.scss",
7777
},
78+
gtag: {
79+
trackingID: "G-55X12MPFL7",
80+
anonymizeIP: true,
81+
},
7882
} satisfies Preset.Options,
7983
],
8084
],
@@ -184,6 +188,16 @@ const config: Config = {
184188
],
185189
copyright: `Copyright © ${new Date().getFullYear()} Dash File Cache, Yuchen Jin. Built with Docusaurus.`,
186190
},
191+
algolia: {
192+
apiKey: "182ee57d42f4d42013a9061271326593",
193+
indexName: "cainmagiio",
194+
// APP id
195+
appId: "D0JIJY0Y1T",
196+
// Optional: make the search sensitive to sub-routing.
197+
contextualSearch: true,
198+
// Optional: Algolia search parameters
199+
searchParameters: {facetFilters: ["type:content"]},
200+
},
187201
prism: {
188202
theme: prismThemes.github,
189203
darkTheme: prismThemes.vsDark,

0 commit comments

Comments
 (0)