From 1da2e9b58075578b669f79cb3c8921a947ef7d72 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Tue, 28 Jan 2025 16:15:29 +0200 Subject: [PATCH] update matomo link --- docusaurus.config.ts | 121 +++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 74 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 7b150d6..975e02b 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -48,15 +48,32 @@ const config: Config = { themes: ['@docusaurus/theme-mermaid'], scripts: [ - { - src: - '/js/crisp.js', + src: '/js/crisp.js', // Keep this for Crisp script async: false, }, ], themeConfig: { + injectHtmlTags: { + headTags: [ + { + tagName: 'script', + innerHTML: ` + var _paq = window._paq || []; + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//analytics.threefold.io/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '20']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); + `, + }, + ], + }, algolia: { appId: 'ARAM4VJG2D', @@ -70,12 +87,14 @@ const config: Config = { respectPrefersColorScheme: false, }, image: 'img/tf_graph.png', - metadata: [ - { name: 'description', content: 'ThreeFold is laying the foundation for Web4, the next generation of the Internet.' }, - { property: 'og:image', content: 'https://docs.threefold.io/img/tf_graph.png' }, - { property: 'og:description', content: 'ThreeFold is laying the foundation for Web4, the next generation of the Internet.' }, - { property: 'og:title', content: 'Introduction | ThreeFold Docs' }, - ], + + metadata: [ + { name: 'description', content: 'ThreeFold is laying the foundation for Web4, the next generation of the Internet.' }, + { property: 'og:image', content: 'https://docs.threefold.io/img/tf_graph.png' }, + { property: 'og:description', content: 'ThreeFold is laying the foundation for Web4, the next generation of the Internet.' }, + { property: 'og:title', content: 'Introduction | ThreeFold Docs' }, + ], + navbar: { title: '', logo: { @@ -102,96 +121,50 @@ const config: Config = { }, ], }, + footer: { style: 'dark', links: [ { title: 'Docs', items: [ - { - label: 'Introduction', - to: '/docs/introduction', - }, - { - label: 'Litepaper', - to: '/docs/litepaper', - }, - { - label: 'Roadmap', - to: '/docs/roadmap', - }, - { - label: 'Manual', - href: 'https://manual.grid.tf/', - }, + { label: 'Introduction', to: '/docs/introduction' }, + { label: 'Litepaper', to: '/docs/litepaper' }, + { label: 'Roadmap', to: '/docs/roadmap' }, + { label: 'Manual', href: 'https://manual.grid.tf/' }, ], }, { title: 'Features', items: [ - { - label: 'Become a Farmer', - to: '/docs/category/become-a-farmer', - }, - { - label: 'Components', - to: '/docs/category/components', - }, - { - label: 'Technology', - to: '/docs/tech', - }, - { - label: 'Tokenomics', - to: '/docs/tokens/tokenomics', - }, + { label: 'Become a Farmer', to: '/docs/category/become-a-farmer' }, + { label: 'Components', to: '/docs/category/components' }, + { label: 'Technology', to: '/docs/tech' }, + { label: 'Tokenomics', to: '/docs/tokens/tokenomics' }, ], }, { title: 'Community', items: [ - { - label: 'Telegram', - href: 'https://t.me/threefold', - }, - { - label: 'X', - href: 'https://x.com/threefold_io', - }, - { - label: 'Forum', - href: 'https://forum.threefold.io', - }, - { - label: 'Support', - to: '/support', - }, + { label: 'Telegram', href: 'https://t.me/threefold' }, + { label: 'X', href: 'https://x.com/threefold_io' }, + { label: 'Forum', href: 'https://forum.threefold.io' }, + { label: 'Support', to: '/support' }, ], }, { title: 'Links', items: [ - { - label: 'ThreeFold.io', - href: 'https://threefold.io', - }, - { - label: 'Dashboard', - href: 'https://dashboard.grid.tf', - }, - { - label: 'GitHub', - href: 'https://github.com/threefoldtech/home', - }, - { - label: 'Gitea', - href: 'https://git.ourworld.tf', - }, + { label: 'ThreeFold.io', href: 'https://threefold.io' }, + { label: 'Dashboard', href: 'https://dashboard.grid.tf' }, + { label: 'GitHub', href: 'https://github.com/threefoldtech/home' }, + { label: 'Gitea', href: 'https://git.ourworld.tf' }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} ThreeFold`, }, + prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, @@ -199,4 +172,4 @@ const config: Config = { } satisfies Preset.ThemeConfig, }; -export default config; \ No newline at end of file +export default config;