-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Build directories are messed up with SHARE_SPHINX_DOCTREE #7200
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
Comments
Actually this is happening in all builds, and outside rtd too. The reason is that the "_build" directory gets included into the doctree directory on each run. I can replicate this even with the defaults from sphinx, so a solution from our side would be to have the build directory outside the docs dir. Another solution (from your side) is to add I'm not sure if this is causing any problems though, (aside from doing an extra copy operation). Anyway, I don't think we are going to change our build directories, since there is a lot of code that depends on that structure... But we can add |
We use the _build/ directory for all builders. Some users may not have that directory excluded, leading to some extra copy operations. Fixes #7200
Thanks for looking into this! Indeed, adding Here's an example: https://readthedocs.org/projects/nbsphinx/builds/11497225/ The problem in my example is that my extension But since those notebooks are themselves valid source files, they are unnecessarily parsed in the next step.
Yes, it cancels the effect that The idea is that in subsequent runs, no more sources have to be parsed, but since there are new sources in the It shouldn't have an effect on the result, but it does have an effect on the runtime and it produces spurious warnings.
Yes, that would make very much sense.
OK, that's understandable.
Yes, please! Since you (= RTD) are choosing the |
We use the _build/ directory for all builders. Some users may not have that directory excluded, leading to some extra copy operations. Fixes #7200
Thanks @stsewd for the quick solution, that's great! |
Later builds seem to happen in the "doctree" directory of the previous build, then in the "doctree" directory of the "doctree" directory and so on ...
I guess this is happening because of the
SHARE_SPHINX_DOCTREE
flag.First build, everything looks OK:
Second build, source files are suddenly in
_build/doctrees/nbsphinx/
:Third build, now we are in
_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/
:... and there are some warning messages, because files are not found, which isn't surprising given the strange build/source directories.
Details
The text was updated successfully, but these errors were encountered: