Skip to content

Commit

Permalink
Install mike for mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Jul 11, 2024
1 parent 86c92d9 commit 6916ceb
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}

{% block outdated %}
You're viewing an outdated version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ theme:
- navigation.footer
palette:
primary: 'green'

custom_dir: docs/overrides
extra:
version:
provider: mike
alias: true

nav:
- Home: index.md
Expand Down
93 changes: 92 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ mkdocs-material = "^9.5.28"
mkdocstrings = "^0.25.1"
mkdocstrings-python = "^1.10.5"
black = "^24.4.2"
mike = "^2.1.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 6916ceb

Please sign in to comment.