Skip to content

Commit

Permalink
Control presence of local toc with :notoc: field list metadata (panda…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Nov 4, 2019
1 parent 1621660 commit f3ab42f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pandas-docs/source/getting_started/overview.rst
@@ -1,3 +1,5 @@
:notoc:

.. _overview:

{{ header }}
Expand Down
2 changes: 2 additions & 0 deletions pandas-docs/source/index.rst.template
@@ -1,3 +1,5 @@
:notoc:

.. pandas documentation master file, created by

.. module:: pandas
Expand Down
2 changes: 1 addition & 1 deletion pandas_sphinx_theme/layout.html
Expand Up @@ -39,7 +39,7 @@
</div>

<div class="d-none d-xl-block col-xl-2 bd-toc">
{% if not pagename.endswith('index') and not '/api/' in pagename %}
{% if not (meta is not none and 'notoc' in meta) %}
{%- include "docs-toc.html" %}
{% endif %}
</div>
Expand Down

0 comments on commit f3ab42f

Please sign in to comment.