Skip to content

Commit

Permalink
ci: Let stable be the default on anta.ninja (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Jul 20, 2023
1 parent 8209902 commit 0a96f88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ jobs:
run: |
pip install .[doc]
mike deploy --push main
# This may not always be required
mike set-default --push main
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 %}
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ theme:
toggle:
icon: material/weather-sunny
name: Switch to light mode
custom_dir: docs/overrides

extra:
social:
Expand All @@ -62,6 +63,9 @@ extra:
link: https://pypi.org/project/anta/
version:
provider: mike
default:
- stable
- main

extra_css:
- stylesheets/extra.material.css
Expand Down

0 comments on commit 0a96f88

Please sign in to comment.