Skip to content

Commit f3ab42f

Browse files
Control presence of local toc with :notoc: field list metadata (pandas-dev#46)
1 parent 1621660 commit f3ab42f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: pandas-docs/source/getting_started/overview.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:notoc:
2+
13
.. _overview:
24

35
{{ header }}

Diff for: pandas-docs/source/index.rst.template

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:notoc:
2+
13
.. pandas documentation master file, created by
24

35
.. module:: pandas

Diff for: pandas_sphinx_theme/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040

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

0 commit comments

Comments
 (0)