From 86ef32318c473406b99c575e6476cfbfff990ad6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 6 Oct 2019 19:27:20 +0200 Subject: [PATCH] Add versions to doc theme --- docs/partials/header.html | 4 +++- docs/stylesheets/ft.extra.css | 14 ++++++++++++++ mkdocs.yml | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docs/stylesheets/ft.extra.css diff --git a/docs/partials/header.html b/docs/partials/header.html index 84c254b5a..32202bccc 100644 --- a/docs/partials/header.html +++ b/docs/partials/header.html @@ -49,4 +49,6 @@ - \ No newline at end of file + + diff --git a/docs/stylesheets/ft.extra.css b/docs/stylesheets/ft.extra.css new file mode 100644 index 000000000..6032dbe73 --- /dev/null +++ b/docs/stylesheets/ft.extra.css @@ -0,0 +1,14 @@ +.rst-versions { + font-size: .7rem; + color: white; +} + +.rst-versions.rst-badge .rst-current-version { + font-size: .7rem; + color: white; +} + +.rst-versions .rst-other-versions { + color: white; + text-decoration: underline; +} diff --git a/mkdocs.yml b/mkdocs.yml index 2a50c97e4..197df7dc8 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -32,6 +32,8 @@ theme: palette: primary: 'blue grey' accent: 'tear' +extra_css: + - 'stylesheets/ft.extra.css' markdown_extensions: - admonition - codehilite: