Skip to content

Commit

Permalink
Versioning of docs (#369)
Browse files Browse the repository at this point in the history
* Issue #357: versioned docs: Add Mike and make it snow too
  • Loading branch information
cruizen committed Dec 16, 2022
1 parent 02e676b commit 7e56614
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
mkdocs==1.4.2
mkdocs-material==8.5.10
mkdocs-material==8.5.11
pymdown-extensions==9.9
mkdocs_pymdownx_material_extras==2.3
mkdocs_pymdownx_material_extras==2.3.1
mkdocs-minify-plugin==0.6.2
mike==1.1.2
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ plugins:
- search
- mkdocs_pymdownx_material_extras

extra:
version:
default: stable
provider: mike

extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js

Expand Down
8 changes: 8 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}

{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}

0 comments on commit 7e56614

Please sign in to comment.