Add link for a top page of document to "Contents" in sidebar

It is useful to have a convenient way to return a top page
of a document. Readers can easily access a toc of a document.

Change-Id: I1919de3d876a1352a762655175a4ab40b8549502
Closes-Bug: #1517379
This commit is contained in:
Akihiro Motoki 2015-11-18 18:31:31 +09:00
parent 7ab7dbe186
commit a7b4a4452c
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
<div class="row">
<div class="col-lg-12">
<div class="docs-top-contents">
<h5>Contents</h5>
<h5><a href="{{ pathto(master_doc) }}">Contents</a></h5>
{{ toc }}
</div>
<div class="docs-body">

View File

@ -28,7 +28,7 @@
</div>
<div class="docs-sidebar-toc">
<div class="docs-sidebar-section" id="table-of-contents">
<a class="docs-sidebar-section-title"><h4>{{ _('Contents') }}</h4></a>
<a href="{{ pathto(master_doc) }}" class="docs-sidebar-section-title"><h4>{{ _('Contents') }}</h4></a>
{{ toctree(maxdepth=2) }}
</div>
</div>