-
Notifications
You must be signed in to change notification settings - Fork 132
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
Markdown cell output headers are not in TOC #315
Comments
I am trying again to generate markdown output that will appear in the sphinx TOC.
when I have the above code in a cell and run it through the sphinx tool chain, the h1 header does not appear in the TOC. If instead I use See #152 for more discussion. |
Thanks for creating this issue, I hope somebody will fix this! |
I just stumbled over this behavior in an up-to-date version. I tried to understand what is going on in https://github.com/spatialaudio/nbsphinx/blob/master/src/nbsphinx.py but reading and comprehending close to 2400 lines of code is no joke. @mgeier is there a chance that in the future this code is split up into several files, each dealing with specific concerns? That would make it much easier to contribute. I hypothesize that this issue exists because first the document structure is built up. In this scope, all Jupyter Notebooks that are part of the documentation are identified and added to the TOC. Only then they are executed one-by-one. We would need to add the generated titles to the TOC manually afterwards because the automated set-up phase is over. @mgeier does that sound plausible to you as a first guess? |
I've moved the first part to its own issue: #667. About the second part: I don't really know how the TOC is created. I've written my speculations at #152 (comment), which references #153. |
@jtf621 I've closed this issue because the missing headers are not missing anymore.
Please create a new issue for those headers not being part of the TOC.
Originally posted by @mgeier in #152 (comment)
The text was updated successfully, but these errors were encountered: