mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-13 01:36:10 +00:00
Show all the versions of mscclpp document on the webpage https://microsoft.github.io/mscclpp/ Add sphinx-multiversion to generate documents for different versions. Add version selector on document webpage. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Binyang Li <binyli@microsoft.com>
25 lines
1.0 KiB
HTML
25 lines
1.0 KiB
HTML
{% extends "!layout.html" %}
|
|
|
|
{%- block sidebarsearch %}
|
|
{{ super() }}
|
|
|
|
{# Version selector #}
|
|
{% if versions %}
|
|
<div style="padding: 10px; border-bottom: 1px solid #404040; margin-top: 10px;">
|
|
<label for="version-selector" style="color: #b3b3b3; font-size: 90%;">Version:</label>
|
|
<select id="version-selector" style="width: 100%; margin-top: 5px; padding: 5px; background-color: #2c2c2c; color: #ffffff; border: 1px solid #404040; border-radius: 3px;" onchange="if(this.value) window.location.href = this.value;">
|
|
{%- for item in versions.in_development %}
|
|
<option value="{{ item.url }}"{% if item.name == current_version %} selected{% endif %}>
|
|
{{ item.name }}{% if loop.first %} (latest){% endif %}
|
|
</option>
|
|
{%- endfor %}
|
|
{%- for item in versions.releases %}
|
|
<option value="{{ item.url }}"{% if item.name == current_version %} selected{% endif %}>
|
|
{{ item.name }}
|
|
</option>
|
|
{%- endfor %}
|
|
</select>
|
|
</div>
|
|
{% endif %}
|
|
{%- endblock %}
|