diff --git a/mkdocs.yml b/mkdocs.yml index 38560bc5..e050ae46 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -180,6 +180,7 @@ not_in_nav: | theme: name: material + custom_dir: overrides logo: img/logo/website-logo.svg favicon: img/favicon.ico icon: @@ -236,4 +237,9 @@ markdown_extensions: plugins: - search - - git-revision-date-localized \ No newline at end of file + - git-revision-date-localized + +extra: + analytics: + provider: custom + property: https://tuah-torial.goatcounter.com/count diff --git a/overrides/partials/integrations/analytics/custom.html b/overrides/partials/integrations/analytics/custom.html new file mode 100644 index 00000000..e5cfc05b --- /dev/null +++ b/overrides/partials/integrations/analytics/custom.html @@ -0,0 +1,37 @@ + +{# + The below code block is for handling "instant navigation" in Material MkDocs. + It is currently not applicable to us, but if we wish to switch to it in the future, + this will properly handle URL changes for analytics. +#} +{% if "navigation.instant" in config.theme.features %} + +{% endif %} +