Skip to content

Commit

Permalink
add TOC in sidebar to doc pages (#655)
Browse files Browse the repository at this point in the history
* add TOC in sidebar to doc pages

* Remove TOCs (we now have sidebar TOCs)

Co-authored-by: Richard Höchenberger <[email protected]>
  • Loading branch information
agramfort and hoechenberger authored Dec 14, 2020
1 parent 2aad4f8 commit 399646f
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 35 deletions.
4 changes: 0 additions & 4 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
API Documentation
=================

.. contents:: Contents
:local:
:depth: 2

mne_bids
--------
:py:mod:`mne_bids`:
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
("Contribute!", "contribute")
]}

html_sidebars = {'**': ['localtoc.html']}

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
Expand Down
4 changes: 0 additions & 4 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
Installation
============

.. contents:: Contents
:local:
:depth: 2

Dependencies
------------

Expand Down
4 changes: 0 additions & 4 deletions doc/sphinxext/gen_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ def setup(app):
Here we list the MNE-BIDS tools that you can use from the command line.
.. contents:: Contents
:local:
:depth: 1
"""

command_rst = """
Expand Down
4 changes: 0 additions & 4 deletions doc/use.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
Using MNE-BIDS
==============

.. contents:: Contents
:local:
:depth: 1

Quickstart
----------

Expand Down
4 changes: 0 additions & 4 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ Version 0.6 (unreleased)
------------------------
xxx

.. contents:: Contents
:local:
:depth: 3

Notable changes
~~~~~~~~~~~~~~~
xxx
Expand Down
7 changes: 0 additions & 7 deletions doc/whats_new_previous_releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
What was new in previous releases?
==================================

.. contents:: Contents
:local:
:depth: 3

.. currentmodule:: mne_bids
.. _changes_0_5:

Expand All @@ -21,9 +17,6 @@ This is a **big** release with lots of changes, many of them breaking existing
code. But do not fear: migration is easy, and you will **love** what we have
been cooking for you!

.. contents:: Contents
:local:
:depth: 3

Notable changes
~~~~~~~~~~~~~~~
Expand Down
4 changes: 0 additions & 4 deletions examples/read_bids_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
# License: BSD (3-clause)

###############################################################################
# .. contents:: Contents
# :local:
# :depth: 1
#
# Imports
# -------
# We are importing everything we need for this example:
Expand Down
4 changes: 0 additions & 4 deletions examples/update_bids_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
# License: BSD (3-clause)

###############################################################################
# .. contents:: Contents
# :local:
# :depth: 1
#
# Imports
# -------
# We are importing everything we need for this example:
Expand Down

0 comments on commit 399646f

Please sign in to comment.