mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
41 lines
722 B
Python
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)
|