Add version dropdown on docs.starlingx.io
This patch adds the version dropdown from the openstackdocstheme to the starlingxdocstheme. Change will allow users to view different versions of StarlingX documentation. Change-Id: I44b797e00be065e36cb3e7b447c83f8ab5fd69b5 Signed-off-by: MCamp859 <maryx.camp@intel.com>
This commit is contained in:
parent
f65a973978
commit
0ef4eb20b4
|
@ -7,6 +7,18 @@
|
|||
{%- endif %}
|
||||
</div>
|
||||
<div class="docs-actions">
|
||||
{%- block otherversions %}
|
||||
{%- if other_versions %}
|
||||
<div class="version-dropdown">
|
||||
<span>{{ _('version') }}</span>
|
||||
<div class="version-dropdown-content">
|
||||
{%- for ver in other_versions: %}
|
||||
<p><a href="../{{pathto(ver, 1) }}" rel="nofollow">{{ ver }}</a></p>
|
||||
{%- endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
{%- endblock %}
|
||||
{% if prev %}
|
||||
<a href="{{ prev.link|e }}"><i class="fa fa-angle-double-left" data-toggle="tooltip" data-placement="top" title="Previous: {{ prev.title|striptags }}"></i></a>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue