-
Notifications
You must be signed in to change notification settings - Fork 662
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
Files not included in TOC tree with .rst files are used as index / header #786
Comments
Hmmm - this feels like a bug with how the Any chance you wanna try giving that a shot to see if it fixes your problem? Happy to give pointers... |
Thank you @choldgraf for the quick reply! I am away for the new 3 weeks but I can work on this when I come back! |
I think this may have been fixed by #768 - can you try again from |
Hi @choldgraf I installed the
So now my version is
But it didn't fix the problem. Once I have a little bit of time next month, I will play with the toc.py script you mentioned. Any advices on where to start? Thank you! |
@lhoupert -- it would helpful to capture this as an MRE in https://github.com/executablebooks/jupyter-book/tree/master/tests/books/toc using the same content layout as that folder (or augmenting it if necessary to reproduce the bug) @choldgraf -- along those lines -- is there a worked-example of a numbered toc with the new master? I've been sprinkling |
Mmm - it should just be a matter of adding |
@phaustin Thank you for your advices. I am quite new in all of this. Can you explain me what is an MRE? I just tested with the last version of jupyter-book and the problem is still here.
|
Sorry -- MRE means "minimal reproducible example" -- i.e. the simplest table of contents that doesn't work. We haven't merged the fix for this yet so you'll need to update your jupyter-book install like this:
|
@phaustin Thank you for the help. I updated my install following your recommendation but the problem is still here. I managed to reproduce the bug using the content layout from the folder you indicated. To reproduce the bug, I add to create an index file at the .rst format. The content of the Main Index
==========
.. toctree::
:maxdepth: 2
Then, I was able to reproduce the bug with this file: index_rst
title: Toc
sections:
- file: content3
- file: content3
- file: content3 |
Hi @phaustin and @choldgraf, do you have suggestions on how to move things forward? |
Hi guys, I tried with the last version of jupyter-book but still the same problem persists. Additional information, I realised this is working if the first file (index) is a mardown file and not an .rst. However if I am using an .rst file as the first file of a section or part, it doesnt work. Here is another example of - file: content3
- part: Test1
chapters:
- file: content3
- file: content3
- file: content3
- part: Test2
chapters:
- file: content3
- file: content3
- file: content3 |
Thanks, @lhoupert for the additional information. Quite strange, as it is happening only if the index file is an rst. Will do some more tests today. |
I suspect these warnings are indicating the extra lines (name of the files not listed in toc) as you showed in this picture : |
Thank you @AakashGfude for having a look. I updated a minimal example here: The
When running jupyter-build in this directory. I don't have the warning
|
It seems that it is fixed now! thanks to #1293 . The only thing I add to do was to migrate my pre-existing toc to the new format (I just had to follow the instructions in my terminal after trying to build with the last version of master). |
Describe the bug
Hi all,
I am building a jupyter-book but some of my files are not included in the toc tree.
To Reproduce
Steps to reproduce the behavior:
cd jb-version
jupyter-book build .
Expected behavior
My
_toc.yml
file is:but when the html is built a few sections are missing:
You can see the whole website here
This is consistent with the warnings I got when building the website:
Interestingly, when I didnt put any header entries in the
_toc.yml
file, the html rendering only display the first two from my TOC.You will also notice something strange happening on the first page of the website, the name of the files which were not included in the toc are listed:
Another problem with the warning errors below. They don't make sense as my file 00-book.rst has only 74 lines...
Thank you for the help!
Environment (please complete the following information):
Jupyter Book: 0.7.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: