From d5cedc0e1fed7884f0c2b4b09d2d7d5fe2f9e408 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sat, 12 Jun 2021 09:11:05 -0500 Subject: [PATCH] Use new gtag options in mkdocs-material 7.1.8 --- docs/javascripts/extra.js | 16 ---------------- docs/requirements.txt | 2 +- mkdocs.yml | 6 +++--- 3 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 docs/javascripts/extra.js diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js deleted file mode 100644 index c244dd294..000000000 --- a/docs/javascripts/extra.js +++ /dev/null @@ -1,16 +0,0 @@ -var gtag_id = "G-ZZKM4MPQXL"; - -var script = document.createElement("script"); -script.src = "https://www.googletagmanager.com/gtag/js?id=" + gtag_id; -document.head.appendChild(script); - -location$.subscribe(function (url) { - window.dataLayer = window.dataLayer || []; - - function gtag() { - dataLayer.push(arguments); - } - - gtag("js", new Date()); - gtag("config", gtag_id); -}); diff --git a/docs/requirements.txt b/docs/requirements.txt index 073849d4c..d9c7d27df 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -4,7 +4,7 @@ mkdocs-awesome-pages-plugin==2.5.0 mkdocs-git-revision-date-localized-plugin==0.9.2 mkdocs-macros-plugin==0.5.5 mkdocs-material-extensions==1.0.1 -mkdocs-material==7.1.7 +mkdocs-material==7.1.8 mkdocs-minify-plugin==0.4.0 mkdocs-redirects==1.0.3 mkdocs==1.2.1 diff --git a/mkdocs.yml b/mkdocs.yml index da8217add..501be1f9e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -9,6 +9,9 @@ repo_name: TRaSH-/Guides copyright: Copyright © 2020 TRaSH extra: + analytics: + provider: google + property: G-ZZKM4MPQXL manifest: manifest.webmanifest social: - icon: fontawesome/brands/discord @@ -19,9 +22,6 @@ extra: extra_css: - stylesheets/extra.css -extra_javascript: - - javascripts/extra.js - markdown_extensions: - admonition - attr_list