diff --git a/cspell.config.yml b/cspell.config.yml index 87526675..9b589e4a 100644 --- a/cspell.config.yml +++ b/cspell.config.yml @@ -43,6 +43,7 @@ words: - gitmodules - gnueabi - gnueabihf + - htmltitle - hustcer - imara - inlinehilite diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 83edad14..296ec385 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -22,6 +22,7 @@ nav: theme: name: material + custom_dir: overrides features: - navigation.top - content.tabs.link @@ -77,6 +78,11 @@ extra: link: https://www.npmjs.com/package/@cpp-linter/cpp-linter - icon: simple/rust link: https://crates.io/crates/cpp-linter + # The same Google Analytics property as cpp-linter.github.io and the other + # cpp-linter docs, which all share that origin. + analytics: + provider: google + property: G-JKH4SXC7HC extra_css: - https://cpp-linter.github.io/stylesheets/shared.css diff --git a/docs/overrides/404.html b/docs/overrides/404.html new file mode 100644 index 00000000..40202e8b --- /dev/null +++ b/docs/overrides/404.html @@ -0,0 +1,14 @@ +{% extends "main.html" %} + +{#- + Gives the 404 page a title of its own, so that missing pages are not counted + under the home page's title in Google Analytics. +-#} + +{% block htmltitle %} +