From 1a1b77769d7f924fc018fb303e6f656826c578a1 Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Sat, 22 Jan 2022 12:05:07 +0930 Subject: [PATCH] feat(mkdocs): use custom plugin from custom-plugins/mkdocs-plugin-tags this is a custom theme modified so it works correctly issue #3 !1 --- mkdocs.yml | 9 +++++++-- pages/stylesheets/extra.css | 14 ++++++++++++++ pages/tags.md | 3 +++ requirements.txt | 8 ++++---- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 pages/tags.md diff --git a/mkdocs.yml b/mkdocs.yml index 540298b..6db4616 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -53,8 +53,10 @@ theme: plugins: -# - tags: -# tags_file: tags.md + - tags: + filename: tags.md + folder: pages + css_name: ".tags" - search: lang: en @@ -63,6 +65,7 @@ plugins: enable_creation_date: true exclude: - index.md + - tags.md extra: homepage: https://nofusscomputing.com @@ -118,6 +121,8 @@ nav: - articles/2015/choose_internet_service.md + - tags: tags.md + - Projects: - projects/index.md diff --git a/pages/stylesheets/extra.css b/pages/stylesheets/extra.css index e3a3149..2d2a442 100644 --- a/pages/stylesheets/extra.css +++ b/pages/stylesheets/extra.css @@ -31,3 +31,17 @@ html .md-social a[title="Gitlab"] { color: #fc6d26; } +.tags { + background-color: #4051B5; + border-radius: 10px; + font-size: 12px; + color: white; + padding: 3px 6px; + text-align: center; + +} + +.tags:link { + color: white; +} + diff --git a/pages/tags.md b/pages/tags.md new file mode 100644 index 0000000..df6991d --- /dev/null +++ b/pages/tags.md @@ -0,0 +1,3 @@ +# tags + +Do not edit this file as it is auto generated. diff --git a/requirements.txt b/requirements.txt index 78dce9c..0556ff6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -mkdocs>=1.2.3 -mkdocs-material-extensions>=1.0.3 +mkdocs==1.2.3 +mkdocs-material-extensions==1.0.3 mkdocs-material==8.1.7 -mkdocs-plugin-tags==1.0.2 +./custom-plugins/mkdocs-plugin-tags mkdocs-git-revision-date-localized-plugin==0.11.1 -pymdown-extensions +pymdown-extensions==9.1