Skip to content

Commit

Permalink
Add support for multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Dec 21, 2024
1 parent aa4e1fc commit cd14e25
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ validation:
# Theme configuration
theme:
name: material
custom_dir: overrides
language: en
palette:
# Palette toggle for automatic mode
Expand Down Expand Up @@ -80,6 +81,8 @@ markdown_extensions:

# Additional configuration
extra:
version:
provider: mike
social:
- icon: fontawesome/brands/github
link: https://github.com/cake-contrib/Cake.Issues
Expand Down
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 not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mike==2.1.3
mkdocs==1.6.1
mkdocs-material==9.5.49

0 comments on commit cd14e25

Please # to comment.