sphinx/sphinx/builders/dummy.py

41 lines
722 B
Python

# -*- 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
def setup(app):
app.add_builder(DummyBuilder)