Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUYSC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jorge Alfredo Jaimes Teherán
MUYSC
Commits
708f5201
Unverified
Commit
708f5201
authored
4 years ago
by
Chris Holdgraf
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DEPRECATE: removing expand_sections for toc (#1073)
parent
736b53e8
No related branches found
Branches containing commit
Tags
v0.6.5
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/customize/toc.md
+0
-13
0 additions, 13 deletions
docs/customize/toc.md
jupyter_book/toc.py
+0
-7
0 additions, 7 deletions
jupyter_book/toc.py
with
0 additions
and
20 deletions
docs/customize/toc.md
+
0
−
13
View file @
708f5201
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
jupyter_book/toc.py
+
0
−
7
View file @
708f5201
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment