Beispiel #1
0
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os

import sphinx

ROOT_DIR = os.path.abspath(os.path.join(__file__, '..', '..'))
sys.path.insert(0, ROOT_DIR)
sys.path.insert(0, os.path.abspath('scripts'))

import flexx
from flexx import util, webruntime

flexx.set_log_level('warning')  # Don't spam the Sphynx output

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

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

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

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
sphinxver = sphinx.version_info
Beispiel #2
0
ROOT_DIR = os.path.abspath(os.path.join(__file__, '..', '..'))
sys.path.insert(0, ROOT_DIR)
sys.path.insert(0, os.path.abspath('scripts'))

import flexx
from flexx import util, webruntime

# Cut our relevant part of docstring of Flexx' main module (i.e. the summary)
flexx.__doc__ = flexx.__doc__.split('----')[0]

# Make Flexx shut up a bit
class DocFilter:
    def filter(self, record):
        return 're-registering app class' not in record.getMessage().lower()
#
flexx.set_log_level('warning')  # Don't spam the Sphynx output
for handler in util.logging.logger.handlers:
    handler.addFilter(DocFilter())


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

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

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

# Add any Sphinx extension module names here, as strings. They can be