Skip to content
Snippets Groups Projects
Unverified Commit 708f5201 authored by Chris Holdgraf's avatar Chris Holdgraf Committed by GitHub
Browse files

:wastebasket: DEPRECATE: removing expand_sections for toc (#1073)

parent 736b53e8
No related branches found
Tags v0.6.5
No related merge requests found
......@@ -348,19 +348,6 @@ built by Jupyter Book, see [](execute/exclude).
The following sections apply to controlling the left navigation bar in
HTML books built with Jupyter Book.
### Automatically expand subsections of a page
Sometimes you'd like some subsections of your book to *always* be expanded (as opposed
to only expanded when one of the subsections is active). To enable this, add the following key in an entry of
your `_toc.yml` file:
```yaml
- file: path/to/your/page
expand_sections: true
```
All subsections of that page will now be expanded in the navigation bar.
### Add external links
You can also add external links to websites that are outside of your book.
......
......@@ -64,12 +64,6 @@ def add_toctree(app, docname, source):
if not sections:
return
# Look for expand_sections and add to html config
if "expand_sections" in parent_page:
expanded_sections = app.config.html_theme_options.get("expand_sections", [])
expanded_sections.append(docname)
app.config.html_theme_options["expand_sections"] = expanded_sections
# Rename `chapter:` in sections to `part:`
# TODO: deprecate this after a release or two
for isection in sections:
......@@ -353,7 +347,6 @@ def _check_toc_entries(sections):
"chapters",
"sections",
"title",
"expand_sections",
"numbered",
]
for section in sections:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment