diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 9326c2f0..7ed057cb 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -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/') }} diff --git a/docs/_overrides/main.html b/docs/_overrides/main.html index 606a699c..cbda97f9 100644 --- a/docs/_overrides/main.html +++ b/docs/_overrides/main.html @@ -15,8 +15,12 @@ {% endblock %} {% block outdated %} - You're not viewing the latest version. - - Click here to go to latest. - + {%- if not prebuild -%} +
+ You're not viewing the latest version. + + Click here to go to latest. + +
+ {%- endif -%} {% endblock %}