Skip to content

Commit 0fd8506

Browse files
committed
Experimental: swap sidebars in theme.
1 parent 3db383a commit 0fd8506

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,14 @@
133133

134134
html_theme = "pydata_sphinx_theme"
135135
html_theme_options = {
136-
"github_url": "https://github.com/numpy/numpydoc"
136+
"github_url": "https://github.com/numpy/numpydoc",
137137
}
138138

139139
html_title = "%s v%s Manual" % (project, version)
140140
html_last_updated_fmt = '%b %d, %Y'
141+
html_sidebars = {
142+
"**": ["sidebar-search-bs.html", "docs-toc.html"],
143+
}
141144

142145
# Add any paths that contain custom static files (such as style sheets) here,
143146
# relative to this directory. They are copied after the builtin static files,

doc/example.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. NOTE: The :notoc: metadata is used to suppress the right-sidebar in the
2+
pydata-sphinx-theme.
3+
4+
:notoc:
15

26
.. _example:
37

doc/format.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. NOTE: The :notoc: metadata is used to suppress the right-sidebar in the
2+
pydata-sphinx-theme.
3+
4+
:notoc:
15

26
.. _format:
37

doc/install.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. NOTE: The :notoc: metadata is used to suppress the right-sidebar in the
2+
pydata-sphinx-theme.
3+
4+
:notoc:
15

26
============
37
Installation

doc/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.. NOTE: The :notoc: metadata is used to suppress the right-sidebar in the
2+
pydata-sphinx-theme.
3+
4+
:notoc:
5+
16
Release notes
27
=============
38

doc/validation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.. NOTE: The :notoc: metadata is used to suppress the right-sidebar in the
2+
pydata-sphinx-theme.
3+
4+
:notoc:
5+
16
==============================
27
Validating NumpyDoc docstrings
38
==============================

0 commit comments

Comments
 (0)