Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version warning banner to always point to the latest stable docs #374

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if current_version and latest_version and current_version != latest_version %}
<div class="alert-danger text-center" role="alert">
You're reading the documentation for {% if current_version.is_released %}an out-of-date{% else %}a development{% endif %} version of Spyder.
For the currently-supported stable version, see the <a href="{{ vpathto(latest_version.name) }}">Spyder {{latest_version.release}} docs</a>.
<a href="{{ vpathto(latest_version.name)|replace('/5/', '/current/', 1) }}">Switch to the docs for the currently-supported version</a>
</div>
{% endif %}
{{ super() }}
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@
# Flaky
r"https://(www\.)?packages\.gentoo\.org/?.*",
r"https://(www\.)?software\.opensuse\.org/?.*",
r"https://(www\.)?packages\.ubuntu\.com/?.*",
# Blocks GitHub Actions
r"https://(www\.)?(\w+\.)?reddit\.com/?.*",
r"https://(www\.)?(\w+\.)?(stackoverflow|stackexchange)\.com/?.*",
Expand Down
Loading