示例#1
0
文件: conf.py 项目: regmi/fipy
                        'examples/flow/index.txt',
                        'examples/updating/index.txt']

                        
input_bib_path = 'refs.bib'

import bib2rst

# bib2rst.convert_all_bib('manual', '../contrib/ext/bibtex/bibstuff')
bib2rst.convert_only_cited('..', input_bib_path, source_suffix, 'bibtex/bibstuff')

saved_argv = sys.argv

sys.argv = ["build_docs", "--dest-dir=../fipy/generated", "../fipy"]
import generate_modules
generate_modules.main()

sys.argv = saved_argv

# -- Options for HTML output ---------------------------------------------------

# The theme to use for HTML and HTML Help pages.  Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = 'nist'

# Theme options are theme-specific and customize the look and feel of a theme
# further.  For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}

# Add any paths that contain custom themes here, relative to this directory.
示例#2
0
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath(os.path.join(os.curdir)))
print("looking for module to autodoc in:", sys.path[0])
import generate_modules
generate_modules.main(
    "-n 'tiledtmxloader' -t -d . -f ../../ ../../setup.py ../../dist".split())

sys.path.insert(0,
                os.path.abspath(os.path.join(os.curdir, os.pardir, os.pardir)))
print sys.path

import tiledtmxloader

# -- General configuration -----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
示例#3
0
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath(os.path.join(os.curdir)))
print("looking for module to autodoc in:", sys.path[0])
import generate_modules
generate_modules.main("-n 'tiledtmxloader' -t -d . -f ../../ ../../setup.py ../../dist".split())

sys.path.insert(0, os.path.abspath(os.path.join(os.curdir, os.pardir, os.pardir)))
print sys.path

import tiledtmxloader

# -- General configuration -----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.viewcode']