Skip to content

Commit

Permalink
docs: add ga and cookie banner
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ghtym0 committed Jul 3, 2023
1 parent 7bf804d commit 095efdb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
35 changes: 32 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ async function createConfig() {
organizationName: 'Edgeless Systems', // Usually your GitHub org/user name.
projectName: 'marblerun', // Usually your repo name.

// plausible
scripts: [{ src: 'https://plausible.io/js/plausible.js', async: true, defer: true, 'data-domain': 'docs.edgeless.systems' }],
// scripts
scripts: [
{ src: 'https://plausible.io/js/plausible.js', async: true, defer: true, 'data-domain': 'docs.edgeless.systems' },
{ id: "Cookiebot", src: "https://consent.cookiebot.com/uc.js", "data-cbid": "a0cc864f-0b67-49be-8d65-9ed354de2ee6", "data-blockingmode": "auto" },
{ id: "CookieDeclaration", src: "https://consent.cookiebot.com/a0cc864f-0b67-49be-8d65-9ed354de2ee6/cd.js" }
],

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
Expand Down Expand Up @@ -75,6 +79,10 @@ async function createConfig() {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-3DVYB2CHLG',
anonymizeIP: true,
}
}),
],
// Redocusaurus config
Expand Down Expand Up @@ -180,7 +188,7 @@ async function createConfig() {
items: [
{
label: 'Blog',
to: 'https://blog.edgeless.systems/',
href: 'https://blog.edgeless.systems/',
},
{
label: 'Twitter',
Expand All @@ -197,6 +205,27 @@ async function createConfig() {
},
],
},
{
title: 'Company',
items: [
{
label: 'Imprint',
href: 'https://www.edgeless.systems/imprint',
},
{
label: 'Privacy Policy',
href: 'https://www.edgeless.systems/privacy',
},
{
html: `<a href="javascript: Cookiebot.renew()" class="footer__link-item">Cookie Settings</a>`
},

{
label: 'Contact Us',
href: 'https://www.edgeless.systems/contact/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Edgeless Systems`,
},
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@cmfcmf/docusaurus-search-local": "^1.0.0",
"@docusaurus/core": "^2.1.0",
"@docusaurus/module-type-aliases": "^2.1.0",
"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/preset-classic": "^2.1.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
Expand Down

0 comments on commit 095efdb

Please sign in to comment.