Hi,

On Thursday, 16 May 2019 20:23:31 UTC+2, Gert van Dijk wrote:
>
> On Thu, May 16, 2019 at 8:04 PM Libor Jelínek <[email protected] 
> <javascript:>> wrote:
>
>> Ideally for specified documents only.
>>
>> Closest is "suppress_warnings" setting but it doesn't what I ask.
>>
>
> Looking at the code, it skips the warning if the document is marked as 
> 'orphan', which appears to be marked as such with a directive like this at 
> the top of the RST file:
>
> :orphan:
>
> Tried it out and seems to work for me. :-)
>
> Also documented as such: 
> https://www.sphinx-doc.org/en/2.0/usage/restructuredtext/field-lists.html#metadata
>
This seems not to work (as I would expect) if the "orphaned" foo.rst file 
is included in bar.rst file. In this case, while it suppresses the "not 
included" warning, it emits a warning about duplicated labels (which are 
written in the foo.rst file).
An alternative solution would be to put foo.rst (with path) in the 
exclude_patterns list of conf.py.

My 2 cents,
Stefano


>
> HTH
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/2b5ce84c-a4dc-415d-80fd-6bf668df9049%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to