The navbar_number_sections option recently stopped working
See original GitHub issueDescribe the bug
Some change since v0.7.0 broke the _config.yml
option navbar_number_sections
.
To Reproduce To see the behavior working correctly:
- Create a jupyter book project with a
_config.yml
containingnavbar_number_sections: true
in thehtml:
section. - Put some pages in.
- Build the html using jupyter-book v0.7.0.
- See the nav on the left has correctly numbered the sections.
To see the behavior working incorrectly:
- Same as step 1 above.
- Same as step 2 above.
- Build the html using jupyter-book v0.7.2dev0.
- See the nav on the left has not numbered the sections, ignoring the
_config.yml
setting.
Expected behavior Always respect the setting in the config file.
My book repo is here: https://github.com/nathancarter/MA346-course-notes
Environment (please complete the following information):
- Python Version 3.7.3
- Output of
jupyter-book --version
Jupyter Book: 0.7.2dev0
MyST-NB: 0.8.1
Sphinx Book Theme: 0.0.23
MyST-Parser: 0.8.1
Jupyter-Cache: 0.2.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:31 (21 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As this discussion has evolved the way I see
chapter
(as it is currently implemented) is effectively as apart
equivalent that is organising chapters into groups.The default approach in past
RST
/Sphinx I have worked on is fortoc
to be inferred from the internal heading structure of the text andtoctree
takes in the order of files. Thecaption
is used to provide a heading to a localcontents
ortoc
object typically. Overloading on caption works forhtml
due to ability to style things withcss
so we would need to see if we can intercept these captions forparts
in theLaTeX
context. Perhaps @AakashGfude and I should setup a number of test cases for varioustoc
patterns that people would usually use to see how that aligns with_toc.yml
and document in a tabledoc|html|pdf
snippets of the outputs.@AakashGfude we will need to think how to transfer this through to the LaTeX layer. Perhaps theme support?