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
document not in toctree warning when including files only for parallel builds #5198
Comments
Also a small question: is it possible for Sphinx to not render these non-toctree include RST files? They currently generate a HTML page and show up in the generated doc search. Is changing the file extension of the to-be included files the recommended solution for this? Edit: with this I mean that the file extension is not listed in Edit 2: we changed extension of to-be included file to |
Thank you for reporting. |
Hi, the PR fixed some of the warnings. Thanks for the quick reply! On a single |
…build Fix #5198: document not in toctree warning when including files only for parallel builds
Hmm... I can't imagine about the warning. To fix it, I need reproducible example. |
I created test example in public doc template, please see: https://git.mel.vin/template/doc/tree/sphinx-issue-5198/doc/sphinx-issue-5198 The associated build log: https://git.mel.vin/template/doc/-/jobs/10021 Note that this template uses CMake to configure, it is based upon C/C++ template. You also need sphinxcontrib-plantuml to build, perhaps copying the
Output on my machine, without
When editing I think this may happen when the included files begin to render before the main |
…iles only for parallel builds
Thank you for example! I made another PR #5313 for this. And I confirmed it surely fixes the warning. |
…build Fix #5198: document not in toctree warning when including files only for parallel builds
Now #5313 is merged. Please let me know if it does not work well. |
Thank you for the fix, I confirmed it works with all projects that had the issue and it does. Edit: compared to the initial PR the second one doesn't update changelog, perhaps forgotten or maybe intentional? |
Problem
A warning is emitted when including files that themselves are not in the toctree, but ONLY for parallel builds (e.g.
-j auto
). @tk0miya comment in #3167 is correct, without-j
it does work properly.Procedure to reproduce the problem
In some main
index.rst
, which is included in toctree.This
table.rst
, not included by any toctree, is defined as:.. list-table:: * * arbitrary list table * arbitrary list table
Error logs / results
Expected results
No warning, as with without
-j
.Reproducible project / your project
I can provide sources and a link to example code if required. It is from a project currently developed in private to avoid attention during initial phase, but will be AGPLv3 later. So unless necessary I rather keep this private for now.
Environment info
Workaround
We currently put
:orphan:
at the top of to-be included RST and then use:start-line: 2
for include directive.The text was updated successfully, but these errors were encountered: