Skip to content

Commit a2eacf1

Browse files
committed
Fixing inconsistency between manual contents and navigation sidebar in the read the docs theme <Ravenbrook/mps#166 (comment)>
1 parent e071fd0 commit a2eacf1

File tree

2 files changed

+39
-11
lines changed

2 files changed

+39
-11
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{# manual/source/_templates/layout.html -- add index to manual sidebar.
2+
#
3+
# See https://stackoverflow.com/a/37843854 .
4+
#}
5+
6+
{% extends "!layout.html" %}
7+
8+
{% block menu %}
9+
{{ super() }}
10+
11+
<p class="caption" role="heading">
12+
<span class="caption-text">Indices and tables</span>
13+
</p>
14+
15+
<ul>
16+
17+
<li class="toctree-11">
18+
19+
<a class="reference internal" href="{{pathto('genindex.html', 1)}}">Index</a>
20+
21+
{# Module index and search page aren't used in the MPS manual but
22+
might be in future. This is how they might be added. #}
23+
24+
{# <a class="reference internal" href="{{pathto('modindex.html', 1)}}">Module Index</a> #}
25+
26+
{# <a class="reference internal" href="{{pathto('search.html', 1)}}">Search Page</a> #}
27+
28+
</li>
29+
30+
</ul>
31+
32+
{% endblock %}

mps/manual/source/index.rst

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
Memory Pool System
2-
##################
3-
41
.. toctree::
2+
:caption: Memory Pool System
53
:maxdepth: 2
64

75
guide/index
@@ -10,11 +8,8 @@ Memory Pool System
108
design/index
119
design/old
1210

13-
14-
Appendices
15-
##########
16-
1711
.. toctree::
12+
:caption: Appendices
1813
:maxdepth: 1
1914

2015
bib
@@ -25,14 +20,15 @@ Appendices
2520
contributing
2621
release
2722

28-
* :ref:`genindex`
29-
30-
3123
.. toctree::
32-
:hidden:
24+
:caption: Memory Management Reference
25+
:maxdepth: 2
3326

3427
mmref/index
3528
mmref-index
3629
mmref/faq
3730
mmref-copyright
3831
mmref/credit
32+
33+
* :ref:`genindex`
34+

0 commit comments

Comments
 (0)