Parser API

class sphinx.parsers.Parser[source]

A base class of source parsers. The additonal parsers should inherits this class instead of docutils.parsers.Parser. Compared with docutils.parsers.Parser, this class improves accessibility to Sphinx APIs.

The subclasses can access following objects and functions:
The application object (sphinx.application.Sphinx)
The config object (sphinx.config.Config)
The environment object (sphinx.environment.BuildEnvironment)
Emit a warning. (Same as sphinx.application.Sphinx.warn())
Emit a informational message. (Same as