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
Give the ability to supress 'toctree contains reference to excluded document' #9623
Comments
-1 for adding a tag to the entry of toctree. But I can accept to make the warnings suppressible via |
…t found in toctree
…t found in toctree
@tk0miya implementation from #9628 will supress 'toctree contains reference to nonexisting document' warnings too though they are very useful. And what is bad about adding a tag to the entry of toctree? We've already have |
Finally, I determined to merge #9628 after separating the warning type
There is no mechanism to tag the entry of toctree. So we need to implement the tagging system before suppressing. I think it's very larger than modifying |
…uded_document_in_toctree Close #9623: Allow to suppress warnings on excluded document found in toctree
I also need to suppress this warning, what fix was suggested here. I used both
|
@nanjekyejoannah It seems another topic. Could you file a new issue, please? |
Is your feature request related to a problem? Please describe.
I'm generating multiple overlapping documents from a shared set of source
rst
files like in #9596 and I would like to use warnings-as-errors. I also have only one sharedconf.py
and control which documents to exclude by passing tags to sphinx-build:The problem is that I include
statistics.rst
in toctree and sphinx triggers a warning 'toctree contains reference to excluded document', but this warning doesn't have type and subtype so I can supress it. It is not an error, it was excluded intentionally, I wantstatistics.rst
to be intoctree
because there is another document which usesinclude_statistics
tag and I that's why I don't want warning here.Describe the solution you'd like
It could be special metadata field
:maybe_excluded:
which you can set for toctree entry to supress warning inplace only:Describe alternatives you've considered
Passing a type and subtype argument to logger.warning so I can supress it in
conf.py
globally (not so good, because they can be useful).Now I have to patch
toctree
directive and override it in my extrension to supress this warning (very bad).The text was updated successfully, but these errors were encountered: