Skip to content

Commit c3b0a52

Browse files
committed
0.2.0 - configure docsearch and gtag
Configure DocSearch and GTag.
1 parent 5f247ca commit c3b0a52

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
### 0.5.0 @ 04/04/2025
88

9+
#### :mega: New
10+
11+
1. Configure DocSearch and GTag.
12+
913
#### :floppy_disk: Change
1014

1115
1. Bump the `docusaurus` version from `3.6.3` to `3.7.0`.

docusaurus.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ const config: Config = {
7070
theme: {
7171
customCss: "./src/css/custom.scss",
7272
},
73+
gtag: {
74+
trackingID: "G-D6KN7NVEPD",
75+
anonymizeIP: true,
76+
},
7377
} satisfies Preset.Options,
7478
],
7579
],
@@ -183,6 +187,16 @@ const config: Config = {
183187
],
184188
copyright: `Copyright © ${new Date().getFullYear()} Dash JSON Grid, Yuchen Jin. Built with Docusaurus.`,
185189
},
190+
algolia: {
191+
apiKey: "7d0d341552eb0d75f400df72160ee3bb",
192+
indexName: "cainmagiio",
193+
// APP id
194+
appId: "OBTEKGV3MD",
195+
// Optional: make the search sensitive to sub-routing.
196+
contextualSearch: true,
197+
// Optional: Algolia search parameters
198+
searchParameters: {facetFilters: ["type:content"]},
199+
},
186200
prism: {
187201
theme: prismThemes.github,
188202
darkTheme: prismThemes.vsDark,

0 commit comments

Comments
 (0)