On 2013-03-20, J Luis wrote:

> I find the excess warning verbosity not only unpleasant but also 
> obfuscating of real issues. For example, I have 'tons' of warnings like:

> WARNING: Duplicate explicit target name: "(...)".

> Yes, I have duplicate target names on purpose. I need them. Why being 
> warned about it as if I was doing something wrong?

Usually an explicit target is inserted to be referenced using their name.
Duplicate target names make it impossible to use them for this purpose
without ambiguity. What do you need these targets for? Maybe you can use
`anonymous targets`__ or some other rst construct instead?

__ 
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#anonymous-hyperlinks

> Is there any way to suppress these warnings (selectively, preferably)?

There is a Docutils setting 

--report=<level>, -r <level>
                        Report system messages at or higher than <level>:
                        "info" or "1", "warning"/"2" (default), "error"/"3",
                        "severe"/"4", "none"/"5"

http://docutils.sourceforge.net/docs/user/config.html#report-level

Unfortunately, I don't know how to pass configuration settings to Docutils,
when it is used via Sphinx. You may try with a `config file`__ in a generic
place like ``~/.docutils``.

__ http://docutils.sourceforge.net/docs/user/config.html#configuration-files

Hope this helps,


Günter

-- 
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 http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to