diff --git a/.github/workflows/main-doc.yml b/.github/workflows/main-doc.yml index 5095e627e..8ef46e604 100644 --- a/.github/workflows/main-doc.yml +++ b/.github/workflows/main-doc.yml @@ -34,5 +34,3 @@ jobs: run: | pip install .[doc] mike deploy --push main - # This may not always be required - mike set-default --push main diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 000000000..0af326afb --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block outdated %} + You're not viewing the latest version. + + Click here to go to latest. + +{% endblock %} diff --git a/mkdocs.yml b/mkdocs.yml index e86c45b3a..a78a2f16f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -51,6 +51,7 @@ theme: toggle: icon: material/weather-sunny name: Switch to light mode + custom_dir: docs/overrides extra: social: @@ -62,6 +63,9 @@ extra: link: https://pypi.org/project/anta/ version: provider: mike + default: + - stable + - main extra_css: - stylesheets/extra.material.css