Skip to content

Commit

Permalink
theme: reword version warning
Browse files Browse the repository at this point in the history
Clearer phrase, now that we're paving the road to have "/stable/" and
"/latest/" URLs, where stable is the latest stable version that has been
released, and latest is the last development commit (typicaly from the
"master" or "main" branch)

Inspired by the banners that appear in the Jinja documentation:

latest: https://jinja.palletsprojects.com/en/latest/
Warning: This is the development version. The latest stable version is
Version 3.0.x.

old: https://jinja.palletsprojects.com/en/2.11.x/
Warning: This is an old version. The latest stable version is Version
3.0.x.
  • Loading branch information
j1elo committed Sep 30, 2021
1 parent 7a84b00 commit 106b926
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/common/version-warning.html
Expand Up @@ -50,10 +50,17 @@
}
</style>

<!--
TODO: Improvement: when we change "latest" to point to the development version,
the message could be changed to this:
Warning: You are reading docs for a development version.
GO TO LATEST STABLE VERSION
-->

<div id="version-warning" class="alert" style="display: none">
<span class="warning-text">Documentation of an old version</span>
<span class="warning-text"><strong>Warning:</strong> You are reading docs for an old version.</span>
<div class="div-btns">
<span><a id="link-to-stable" class="alert-btn">GO TO LATEST VERSION</a></span>
<span><a id="link-to-stable" class="alert-btn">GO TO LATEST STABLE VERSION</a></span>
</div>
</div>

Expand Down

0 comments on commit 106b926

Please sign in to comment.