Skip to content

Commit

Permalink
add global TOC to doc index page (#228)
Browse files Browse the repository at this point in the history
This adds a Table of Contents to the sidebar for the index page of the
docs.
See  https://lmfit.github.io/uncertainties/ for results
  • Loading branch information
newville authored Jun 2, 2024
1 parent cf62fdf commit 21352bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/_templates/indexsidebar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h5> Get <tt>uncertainties</tt></h5>
<h4> Get <tt>uncertainties</tt></h4>
<p>Current version: <b>{{ release }}</b></p>

<p>
Expand All @@ -11,7 +11,7 @@ <h5> Get <tt>uncertainties</tt></h5>
</p>


<h5>Offline Documentation</h5>
<h4>Offline Documentation</h4>

<p>
<a href="uncertainties.pdf">uncertainties.pdf</a>
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
html_sidebars = {'index': ['indexsidebar.html', 'searchbox.html']}
html_sidebars = {'index': ['indexsidebar.html', 'searchbox.html', 'globaltoc.html']}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down

0 comments on commit 21352bb

Please sign in to comment.