doc: improve visibility of doc version menu
Move the doc version selection menu from the bottom of the left nav menu to above the TOC menu, making it more obvious. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
parent
f35b854345
commit
f38aa2e301
4
doc/_templates/layout.html
vendored
4
doc/_templates/layout.html
vendored
|
@ -8,3 +8,7 @@
|
|||
{% endif %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
{% block menu %}
|
||||
{% include "zversions.html" %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
|
29
doc/_templates/versions.html
vendored
29
doc/_templates/versions.html
vendored
|
@ -1,28 +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"> Zephyr Project</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 zephyrproject.org') }}</dt>
|
||||
<dd>
|
||||
<a href="https://www.zephyrproject.org/">Project Home</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="https://www.zephyrproject.org/developers/#downloads">Downloads</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="https://github.com/zephyrproject-rtos/zephyr/releases">Releases</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{# remove from this spot#}
|
||||
|
|
28
doc/_templates/zversions.html
vendored
Normal file
28
doc/_templates/zversions.html
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
{# 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"> Zephyr Project</span>
|
||||
v: {{ current_version }}
|
||||
<span class="fa fa-caret-down"></span>
|
||||
</span>
|
||||
<div class="rst-other-versions">
|
||||
<dl>
|
||||
<dt>{{ _('Document Release Versions') }}</dt>
|
||||
{% for slug, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{ _('zephyrproject.org Links') }}</dt>
|
||||
<dd>
|
||||
<a href="https://www.zephyrproject.org/">Project Home</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="https://www.zephyrproject.org/developers/#downloads">Downloads</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="https://github.com/zephyrproject-rtos/zephyr/releases">Releases</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
10
doc/static/zephyr-custom.css
vendored
10
doc/static/zephyr-custom.css
vendored
|
@ -23,13 +23,11 @@
|
|||
}
|
||||
*/
|
||||
|
||||
/* tweak doc version selection
|
||||
/* tweak doc version selection */
|
||||
.rst-versions {
|
||||
position: static;
|
||||
border-top: none;
|
||||
padding: 0px;
|
||||
position: static !important;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
.rst-versions .rst-current-version {
|
||||
padding: 5px;
|
||||
|
@ -135,7 +133,7 @@ th,td {
|
|||
}
|
||||
|
||||
/* doxygenXX item color tweaks, light blue background with dark blue top border */
|
||||
.rst-content dl:not(.docutils) dl dt, dl:not(.docutils) dt {
|
||||
.rst-content dl:not(.docutils) dl dt, dl:not(.docutils,.rst-other-versions) dt {
|
||||
background: #e7f2fa !important;
|
||||
border-top: none !important;
|
||||
border-left: none !important; */
|
||||
|
|
Loading…
Reference in a new issue