Python sphinx.application() Examples
The following are 1
code examples of sphinx.application().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sphinx
, or try the search function
.
Example #1
Source File: core.py From pySINDy with MIT License | 6 votes |
def build(self): """Build the documentation. Places the data into the `outdir` directory. Use it like this:: support = WebSupport(srcdir, builddir, search='xapian') support.build() This will read reStructured text files from `srcdir`. Then it will build the pickles and search index, placing them into `builddir`. It will also save node data to the database. """ if not self.srcdir: raise RuntimeError('No srcdir associated with WebSupport object') from sphinx.application import Sphinx app = Sphinx(self.srcdir, self.srcdir, self.outdir, self.doctreedir, self.buildername, self.confoverrides, status=self.status, warning=self.warning) app.builder.set_webinfo(self.staticdir, self.staticroot, # type: ignore self.search, self.storage) self.storage.pre_build() app.build() self.storage.post_build()