-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: init documentation versioning (#296)
Ref: #295
- Loading branch information
Showing
10 changed files
with
527 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:orphan: | ||
|
||
.. _404: | ||
|
||
404: Page Not Found | ||
=================== | ||
|
||
Oops! The page you are looking for cannot be found. | ||
|
||
Please continue to the :doc:`Home Page <index>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "!page.html" %} | ||
{% block body %} | ||
{% if current_version and latest_version and current_version != latest_version %} | ||
<div class="announcement"> | ||
<div class="announcement-content"> | ||
<strong> | ||
{% if current_version.is_released %} | ||
You're reading an old version of this documentation. | ||
If you want up-to-date information, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>. | ||
{% else %} | ||
You're reading the documentation for a development version. | ||
For the latest released version, please have a look at <a href="{{ vpathto(latest_version.name) }}">{{latest_version.name}}</a>. | ||
{% endif %} | ||
</strong> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{{ super() }} | ||
{% endblock %}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% if versions %} | ||
<div class="sidebar-tree"> | ||
<p class="caption" role="heading"><span class="caption-text">{{ _('Versions') }}</span></p> | ||
<ul> | ||
{%- for item in versions.in_development + versions.releases|sort(attribute='name', reverse=true) %} | ||
{% set is_active = current_version.name == item.name %} | ||
{% set is_unreleased = not item.is_released %} | ||
<li class="toctree-l1 {% if is_active %}current current-page{% endif %}"> | ||
<a class="reference internal {% if is_active %}current{% endif %}" href="{{ item.url }}"> | ||
{{ item.name }} {% if is_unreleased %}(unreleased){% endif %} | ||
</a> | ||
</li> | ||
{%- endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.