Skip to content

Commit

Permalink
web: Update Edit URL and add tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
credmond-git committed Oct 6, 2024
1 parent 5a5bf39 commit 3cce4b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/gestalt-static/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://github.com/gestalt-config/gestalt/tree/main/docs/gestalt-static/docs',
},
blog: {
showReadingTime: true,
Expand All @@ -51,7 +51,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
'https://github.com/gestalt-config/gestalt/tree/main/docs/gestalt-static/blog',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
Expand All @@ -60,6 +60,10 @@ const config: Config = {
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-JK529KMZG0',
anonymizeIP: true,
},
} satisfies Preset.Options,
],
],
Expand All @@ -77,6 +81,7 @@ const config: Config = {
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',

position: 'left',
label: 'Tutorial',
},
Expand Down
1 change: 1 addition & 0 deletions docs/gestalt-static/package-lock.json

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

1 change: 1 addition & 0 deletions docs/gestalt-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/plugin-google-gtag": "^3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
Expand Down

0 comments on commit 3cce4b9

Please sign in to comment.