-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support notebooks outside of Sphinx root directory. #297
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
hey @jklaise thanks for the link, its not something I had heard of before. I will try to check it out soon, to see how it is implemented. |
We're also in the same boat, we're using @chrisjsewell Any updates by any chance? Thanks! |
Decoupling the |
We eventually migrated to |
So, my opinion is that this is not something that myst-nb should support specifically... because It's a stipulation of sphinx, that source files reside in a certain folder, and so I feel the solution here is just more general for sphinx, and should either be "fixed" upstream or by another extension, that would cover not just notebooks but all source files. Optionally, if you want the "whole" of your repository to potentially include source documents, why not just set sphinx to read from the whole repo (rather than specifically a |
I understand your argument @chrisjsewell
I am aware of I don't want to move Sphinx' conf.py and index.md into the repositories root, which would be a way I could think of how to do it. |
This may be of note: https://github.com/useblocks/sphinx-collections |
I'm currently using
nbsphinx
to convert example notebooks to static documentation and they have a nifty plugin nbsphinx-link which allows the notebooks to reside outside the sphinx root directory. This is useful because then the example notebooks can live at the top level of a code repository (examples
), whilst the documentation underdoc/source
can still include theexamples
directory in the doc files to be built (nbsphinx-link
achieves this by creating.nblink
files underdoc/source
which contain relative links to the source notebooks).I've had a look at the
myst-nb
andmyst-parser
documentation and I saw the section on including files but not for linking to files outside of sphinx root. Is this something that is supported or planned? Thanks!The text was updated successfully, but these errors were encountered: