Skip to content

Commit

Permalink
homepage sidebars [circle front]
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Feb 12, 2021
1 parent aa07ce4 commit 601a1a5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions doc/_templates/docs-toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% set page_toc = generate_toc_html() %}

{%- if page_toc | length >= 1 %}
<div class="tocsection onthispage pt-5 pb-3">
<i class="fas fa-list"></i> On this page
</div>
{%- endif %}

{% if pagename == 'index' %}
{% include "sidebar-funders.html" %}
{% endif %}

<nav id="bd-toc-nav">
{{ page_toc }}
</nav>

{% include "edit_this_page.html" %}
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines):

# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'index': ['sidebar-quicklinks.html', 'sidebar-funders.html'],
'index': ['search-field.html', 'sidebar-quicklinks.html'],
}

# If true, links to the reST sources are added to the pages.
Expand Down

0 comments on commit 601a1a5

Please sign in to comment.