sphinx.builders.dummy — Sphinx 1.4.8 documentation

- Home
- Get it
- Docs
- Extend/Develop

# Source code for sphinx.builders.dummy

    # -*- coding: utf-8 -*-
    """
        sphinx.builders.dummy
        ~~~~~~~~~~~~~~~~~~~~~

        Do syntax checks, but no writing.

        :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
        :license: BSD, see LICENSE for details.
    """

    from sphinx.builders import Builder

    class DummyBuilder(Builder):
        name = 'dummy'
        allow_parallel = True

        def init(self):
            pass

        def get_outdated_docs(self):
            return self.env.found_docs

        def get_target_uri(self, docname, typ=None):
            return ''

        def prepare_writing(self, docnames):
            pass

        def write_doc(self, docname, doctree):
            pass

        def finish(self):
            pass