-
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
Allow part
to be a page loaded from a file
#58
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Heya, unless I'm mistaken, this is not possible within the sphinx toctree framework: A part equates to a single toctree in a file with a caption:
I don't see how you could make this fit with adding a part prefix, unless there were upstream changes to sphinx's toctree directive. |
Are you sure you shouldn't be using the jb-article format, which essentially start a level down, and would allow you to achieve this. This is probably how it was working previously |
I've had 3 levels of nesting - part: Part 1
file: src/text/1_part_i/_part_i.md
chapters:
- file: src/text/1_part_i/1.0.md
sections:
- file: src/text/1_part_i/1.1.md The jb-article documentation is quite sparse but I don't think it allows for complex nesting. However, your comment put me on the right track to find a solution. By using the raw ToC syntax I can get the result that I want root: index
entries:
- file: part_1/index
options:
numbered: true
entries:
- file: part_1/chapter_1
- file: part_1/chapter_2/index
entries:
- file: part_1/chapter_2/section_1 Maybe it's worth discussing the raw ToC syntax in the Jupyter Book documentation in case people are looking for non-standard ToC structures. What do you think? |
Description / Summary
Load part content from a file via the following ToC syntax
Value / benefit
Implementation details
file
key seems to be accepted forparts
entries, but it has no effect on the ToCTasks to complete
No response
The text was updated successfully, but these errors were encountered: