-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toc numbering is weird when using defaults: numbered: true
#47
Comments
Yeh you shouldn’t use defaults for numbering you should use options: options:
numbered: true |
This is already warned about in the sphinx-external-toc documentation: https://sphinx-external-toc.readthedocs.io/en/latest/user_guide/sphinx.html#toc-tree-options Can you make sure it’s correct in the jupyter-book documentation |
@chrisjsewell Yes, I did read about that warning. But I think |
I believe that |
@choldgraf in the case of projects with multiple parts like jb docs, if I use options in the top root level, the numbering does not take effect, I have to individually number each part. As options work on the subtree level. https://github.com/executablebooks/sphinx-external-toc#toc-tree-options . So is it encouraged to number each individual subtrees explicitly, instead of having a global numbering that numbers all subtrees? |
@chrisjsewell should we remove the defaults: numbered: true section from the jb doc then? https://github.com/executablebooks/jupyter-book/blob/master/docs/structure/configure.md#number-your-chapters-and-sections |
This does not work on the root-level of jb docs as I have mentioned in the comments above. It only works with individual parts. |
basically yep. Obviously you are welcome to submit a PR to sphinx-external-toc to propose any improvements to this; but it is just a shortcoming of sphinx, that you cannot add numbering to all nested subtrees without it complaining |
Hey @AakashGfude - Yes we should remove that from the docs and encourage numbering all parts for |
there probably is a way to code it into sphinx-external-toc, its just not trivial. also perhaps there should be a warning if someone does put numbering in the defaults |
I'm a +1 on just putting a warning if @AakashGfude I'm happy to review a PR to the docs that clarifies this and shows the proper way to do numbering |
@choldgraf I have added some further details to jupyter-book/jupyter-book#1326
|
duplicate of #45 |
When I use
globally in
_toc.yml
, some of the files are not numbered. And this changes with the number of times I run the build.The screenshot is when I ran the build the first time:
The warnings I got during the build:
The text was updated successfully, but these errors were encountered: