From 2032c26e29bb10daa559c06589c800f22050506c Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Thu, 2 Sep 2021 10:25:27 +0200 Subject: [PATCH] docs: use mike for versioned k3d.io --- docs/requirements.txt | 3 ++- mkdocs.yml | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 79082186..0525f445 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -4,4 +4,5 @@ pymdown-extensions mkdocs-git-revision-date-localized-plugin mkdocs-awesome-pages-plugin mdx_truly_sane_lists -mkdocs-include-markdown-plugin # https://github.com/mondeja/mkdocs-include-markdown-plugin \ No newline at end of file +mkdocs-include-markdown-plugin # https://github.com/mondeja/mkdocs-include-markdown-plugin +mike # versioned docs: https://github.com/jimporter/mike diff --git a/mkdocs.yml b/mkdocs.yml index 36079707..1df355cd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -71,6 +71,11 @@ plugins: type: date - awesome-pages # https://squidfunk.github.io/mkdocs-material/plugins/awesome-pages/ - include-markdown # https://github.com/mondeja/mkdocs-include-markdown-plugin + - mike: # Versioned Docs: https://github.com/jimporter/mike + version_selector: true # set to false to leave out the version selector + css_dir: static/css # the directory to put the version selector's CSS + javascript_dir: static/js # the directory to put the version selector's JS + canonical_version: null # the version for ; `null` uses the version specified via `mike deploy` # Other Settings -strict: true # halt processing when a warning is raised \ No newline at end of file +strict: true # halt processing when a warning is raised