Skip to content

Commit

Permalink
Add algolia, segment, and GA4 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rfraposa committed Apr 12, 2022
1 parent 7f59197 commit 1f8551a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ docs/ru
docs/zh

**/.DS_Store
run.sh
run.sh
cleanup.sh
14 changes: 13 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const config = {
projectName: 'clickhouse-docs',

themes: ['@docusaurus/theme-live-codeblock'],

scripts: [
'./src/js/analytics.js',
],
presets: [
[
'classic',
Expand Down Expand Up @@ -45,13 +47,23 @@ const config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-KF1LLRTQ5Q',
}
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
appId: 'BH4D9OD16A',
apiKey: 'e239649803024433599de47a53b2d416',
indexName: 'clickhouse-docs',
contextualSearch: true,
searchPagePath: 'search',
},
disableSwitch: true,
autoCollapseSidebarCategories: true,
navbar: {
Expand Down
4 changes: 4 additions & 0 deletions src/js/analytics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f8551a

Please sign in to comment.