Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
Expand All @@ -9,7 +9,7 @@ const config: Config = {

tagline: 'The place to learn everything about creating interoperable energy management solutions.',
favicon: 'img/Logo-S2-no-text.svg',

// Set the production url of your site here
url: 'https://docs.s2standard.org/',
baseUrl: '/',
Expand Down Expand Up @@ -51,16 +51,16 @@ const config: Config = {
} satisfies Preset.Options,
],
],
plugins:[
['@docusaurus/plugin-content-docs',{

plugins: [
['@docusaurus/plugin-content-docs', {
id: "api",
path: "model-reference",
routeBasePath: "model-reference",
breadcrumbs: false,
}]
],

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
Expand Down Expand Up @@ -119,6 +119,17 @@ const config: Config = {
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,

scripts: [
{
src: "https://www.googletagmanager.com/gtag/js?id=G-1T0FLTHM3C",
async: true
},
{
src: '/js/load_tag.js',
async: true
},
],
};

export default config;
23 changes: 23 additions & 0 deletions website/static/js/load_tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-1T0FLTHM3C', {
'storage': 'none',
'client_storage': 'none',
'cookie_flags': 'max-age=0;secure;samesite=none',
'anonymize_ip': true
});

// var _paq = window._paq = window._paq || [];
// /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
// _paq.push(['disableCookies']);
// _paq.push(['trackPageView']);
// _paq.push(['enableLinkTracking']);
// (function() {
// var u="https://docs-s2standard.matomo.cloud/";
// _paq.push(['setTrackerUrl', u+'matomo.php']);
// _paq.push(['setSiteId', '1']);
// var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
// g.async=true; g.src='https://cdn.matomo.cloud/docs-s2standard.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
// })();