Hi all,
I'm using Sphinx to generate nice looking and informative
documentations. It is a great tool.
I'm having annoying problems when using my reST files created to work
with Sphinx with other tools that use docutils as a middleware. More
precisely, I'm using Robot Framework to read and execute my test
files. The idea is to have one file that Sphinx can use to generate
nice docs, and robot can use to execute the tests.
The problem is that Sphinx (and Sphinx plugins) define lots of
directives that will only work (or make sense) with Sphinx. This
causes docutils to generate lots of errors/warning about stuff that is
not defined by it [2].
The question is: there is some way to ignore errors/warnings of
directives that Sphinx define? The ideia is not to suppress all
errors/warnings docutils generates, but only those related to Sphinx
stuff.
Any hints would be appreciated. I'm also adding the link to the
discussion at robot list [1].
Greetings,
Vinicius
[1]
https://groups.google.com/d/msg/robotframework-users/0V-q3xJgcZI/pp0Qs39NAwAJ
[2]
tests/resources/settings.rst:2: (ERROR/3) Unknown directive type "highlight".
.. highlight:: robotframework
mpls_tp/bfd_test.rst:15: (ERROR/3) Unknown interpreted text role "ref".
mpls_tp/bfd_test.rst:75: (ERROR/3) Unknown interpreted text role "term".
mpls_tp/bfd_test.rst:82: (ERROR/3) Unknown interpreted text role "term".
mpls_tp/bfd_test.rst:110: (ERROR/3) Unknown interpreted text role "term".
mpls_tp/bfd_test.rst:138: (ERROR/3) Unknown interpreted text role "term".
mpls_tp/bfd_test.rst:290: (ERROR/3) Unknown directive type "automodule".
.. automodule:: mpls_tp.bfd_test
:members:
:undoc-members:
:show-inheritance: