Exemplo n.º 1
0
from os.path import abspath, dirname, join

# Make sure we get this copy of pygrametl, and not one on the system
sys.path.insert(1, dirname(dirname(abspath(__file__))))

# 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('_exts'))

# Prevents the creation of .pyc and .pyo by the Python interpreter
sys.dont_write_bytecode=True

# We setup mocking of Java code used in the Jython modules used in the framework
import rtdmockup
rtdmockup.mockModules(['pygrametl.jythonsupport', 'java', 'java.sql'])

# We import the version extraction script to automatically extract the version
from version import get_package_version


# -- 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', 'autoformat']

# Add any paths that contain templates here, relative to this directory.
Exemplo n.º 2
0
import os

# Make sure we get this copy of pygrametl, and not one on the system
sys.path.insert(1, dirname(dirname(abspath(__file__))))

# 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('_exts'))

# Prevents the creation of .pyc and .pyo by the Python interpreter
sys.dont_write_bytecode = True

# Creates mockups of Java code used in the Jython modules used in the framework
import rtdmockup
rtdmockup.mockModules(['pygrametl.jythonsupport', 'java', 'java.sql'])

# Imports the version extraction script to automatically extract the version
from version import get_package_version

# -- 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', 'autoformat']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Exemplo n.º 3
0
# Make sure we get this copy of pygrametl, and not one on the system
sys.path.insert(1, dirname(dirname(abspath(__file__))))

# 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("_exts"))

# Prevents the creation of .pyc and .pyo by the Python interpreter
sys.dont_write_bytecode = True

# Creates mockups of Java code used in the Jython modules used in the framework
import rtdmockup

rtdmockup.mockModules(["pygrametl.jythonsupport", "java", "java.sql"])

# Imports the version extraction script to automatically extract the version
from version import get_package_version


# -- 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", "autoformat"]

# Add any paths that contain templates here, relative to this directory.