Skip to content

Commit

Permalink
docs: don't show both banners
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jan 15, 2025
1 parent d261180 commit 3815c34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git fetch origin gh-pages --depth=1
git pull origin gh-pages --ff
- name: Deploy release docs
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
12 changes: 8 additions & 4 deletions docs/_overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
{% endblock %}

{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{%- if not prebuild -%} <!-- See the dashes here -->
<div style="margin: 0.6rem auto">
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
</div>
{%- endif -%}
{% endblock %}

0 comments on commit 3815c34

Please sign in to comment.