Commit d9455d51 authored by Glenn Walbran's avatar Glenn Walbran

Manual verions, restrict list available in sidebar, add page for all listing

parent d5c13550
......@@ -16,7 +16,9 @@ import sys, os, datetime
html_context = {
#mahara_releases is used to build the user manual links
'mahara_releases': ['18.10', '18.04', '17.10', '17.04', '16.10', '16.04', '15.10', '15.04', '1.10', '1.9', '1.8', '1.7', '1.6', '1.5', '1.4']
'mahara_releases': ['18.10', '18.04', '17.10'],
#all_mahara_releases is used to build the full list of user manual links on all_releases.html
'all_mahara_releases': ['18.10', '18.04', '17.10', '17.04', '16.10', '16.04', '15.10', '15.04', '1.10', '1.9', '1.8', '1.7', '1.6', '1.5', '1.4']
}
# If extensions (or modules to document with autodoc) are in another directory,
......@@ -166,7 +168,7 @@ html_sidebars = {'**':['localtoc.html', 'relations.html', 'searchbox.html', 'lin
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
html_additional_pages = {'all-releases': 'all-releases.html'}
# If false, no module index is generated.
#html_domain_indices = True
......
{% extends "!layout.html" %}
{% block document %}
<h3>All Mahara user manuals</h3>
<ul class="square">
{% for release in all_mahara_releases %}
<li>
<b><a href="https://manual.mahara.org/{{ language }}/{{ release }}/index.html" aria-label="Mahara user manual {{ release }} HTML">{{ release }} <i class="fa fa-fw fa-lg fa-globe" aria-hidden="true"></i></a></b>
<a href="https://manual.mahara.org/{{ language }}/{{ release }}/Mahara.epub" aria-label="Mahara user manual {{ release }} EPUB"><i class="fa fa-fw fa-lg fa-book" aria-hidden="true"></i></a>
{#<a href="https://manual.mahara.org/{{ language }}/{{ release }}/Mahara.pdf" aria-label="Mahara user manual {{ release }} PDF"><i class="fa fa-fw fa-lg fa-file-pdf-o" aria-hidden="true"></i></a>#}
</li>
{% endfor %}
</ul>
{% endblock %}
......@@ -10,6 +10,7 @@
{#<a href="https://manual.mahara.org/{{ language }}/{{ release }}/Mahara.pdf" aria-label="Mahara user manual {{ release }} PDF"><i class="fa fa-fw fa-lg fa-file-pdf-o" aria-hidden="true"></i></a>#}
</li>
{% endfor %}
<li><a href="all-releases.html">All releases</a></li>
</ul>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment