-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: make doc version selector more obvious
Move the doc version selector menu higher on the left nav to make it more visible (from its prior bottom of the nav menu) Signed-off-by: David B. Kinder <[email protected]>
- Loading branch information
Showing
4 changed files
with
41 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{# Add rst-badge after rst-versions for small badge style. #} | ||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> | ||
<span class="rst-current-version" data-toggle="rst-current-version"> | ||
<span class="fa fa-book"> Project ACRN</span> | ||
v: {{ current_version }} | ||
<span class="fa fa-caret-down"></span> | ||
</span> | ||
<div class="rst-other-versions"> | ||
<dl> | ||
<dt>{{ _('Document Versions') }}</dt> | ||
{% for slug, url in versions %} | ||
<dd><a href="{{ url }}">{{ slug }}</a></dd> | ||
{% endfor %} | ||
</dl> | ||
<dl> | ||
<dt>{{ _('projectacrn.org links') }}</dt> | ||
<dd> | ||
<a href="https://www.projectacrn.org/">Project Home</a> | ||
</dd> | ||
<dd> | ||
<a href="https://github.com/projectacrn/acrn-hypervisor/wiki">Wiki</a> | ||
</dd> | ||
</dl> | ||
</div> | ||
</div> |
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,14 @@ | ||
{% extends "!layout.html" %} | ||
{% block document %} | ||
{% if is_release %} | ||
<div class="wy-alert wy-alert-danger"> | ||
The <a href="/{{ pagename }}.html">latest development version</a> | ||
of this page may be more current than this released {{ version }} version. | ||
</div> | ||
{% endif %} | ||
{{ super() }} | ||
{% endblock %} | ||
{% block menu %} | ||
{% include "aversions.html" %} | ||
{{ 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 |
---|---|---|
@@ -1,25 +1 @@ | ||
{# Add rst-badge after rst-versions for small badge style. #} | ||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> | ||
<span class="rst-current-version" data-toggle="rst-current-version"> | ||
<span class="fa fa-book"> Project ACRN</span> | ||
v: {{ current_version }} | ||
<span class="fa fa-caret-down"></span> | ||
</span> | ||
<div class="rst-other-versions"> | ||
<dl> | ||
<dt>{{ _('Versions') }}</dt> | ||
{% for slug, url in versions %} | ||
<dd><a href="{{ url }}">{{ slug }}</a></dd> | ||
{% endfor %} | ||
</dl> | ||
<dl> | ||
<dt>{{ _('On projectacrn.org') }}</dt> | ||
<dd> | ||
<a href="https://www.projectacrn.org/">Project Home</a> | ||
</dd> | ||
<dd> | ||
<a href="https://github.com/projectacrn/acrn-hypervisor/wiki">Wiki</a> | ||
</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
{# wipe out the versions.html from the rtd theme #} |
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