コード例 #1
0
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../../'))
sys.path.insert(0, os.path.abspath('../../../../lib/python2.7/site-packages/'))
from django.conf import settings
settings.configure()

autoclass_content = "both"

project_root = os.path.abspath('../../')
static_root = os.path.abspath('_static')
import pycco
for script in ('autocomplete', 'addanother', 'widget', 'remote',
               'text_widget'):
    html = pycco.generate_documentation(
        os.path.join(
            project_root,
            'autocomplete_light/static/autocomplete_light/%s.js' % script),
        static_root)
    html = html.replace('../../../docs/source/_static/pycco.css', 'pycco.css')
    f = open(os.path.join(static_root, '%s.html' % script), 'w+')
    f.write(html)
    f.close()

import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
intersphinx_mapping = {
    'python': ('http://docs.python.org/2/', None),
    'django': ('http://django.readthedocs.org/en/latest/', None),
}

# -- General configuration -----------------------------------------------------
コード例 #2
0
# 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('../../'))
sys.path.insert(0, os.path.abspath('../../../../lib/python2.7/site-packages/'))
from django.conf import settings
settings.configure()

autoclass_content = "both"

project_root = os.path.abspath('../../')
static_root = os.path.abspath('_static')
import pycco
for script in ('autocomplete', 'addanother', 'widget', 'remote', 'text_widget'):
    html = pycco.generate_documentation(
        os.path.join(project_root, 'autocomplete_light/static/autocomplete_light/%s.js' % script),
        static_root
    )
    html = html.replace('../../../docs/source/_static/pycco.css', 'pycco.css')
    f = open(os.path.join(static_root, '%s.html' % script), 'w+')
    f.write(html)
    f.close()

import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
intersphinx_mapping = {
    'python': ('http://docs.python.org/2/', None),
}

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

# If your documentation needs a minimal Sphinx version, state it here.
コード例 #3
0
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../../'))
sys.path.insert(0, os.path.abspath('../../../../lib/python2.7/site-packages/'))
from django.conf import settings
settings.configure()
settings.ROOT_URLCONF = 'session_security.urls'
settings.SESSION_EXPIRE_AT_BROWSER_CLOSE

autoclass_content = "both"

project_root = os.path.abspath('../../')
static_root = os.path.abspath('_static')
import pycco
for script in ('script', ):
    html = pycco.generate_documentation(
        os.path.join(project_root,
                     'session_security/static/session_security/%s.js' %
                     script), static_root)
    html = html.replace('../../../docs/source/_static/pycco.css', 'pycco.css')
    f = open(os.path.join(static_root, '%s.html' % script), 'w+')
    f.write(html)
    f.close()

# -- 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.viewcode']
コード例 #4
0
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../../'))
sys.path.insert(0, os.path.abspath('../../../../lib/python2.7/site-packages/'))
from django.conf import settings
settings.configure()
settings.ROOT_URLCONF='session_security.urls'
settings.SESSION_EXPIRE_AT_BROWSER_CLOSE

autoclass_content = "both"

project_root = os.path.abspath('../../')
static_root = os.path.abspath('_static')
import pycco
for script in ('script',):
    html = pycco.generate_documentation(
        os.path.join(project_root, 'session_security/static/session_security/%s.js' % script),
        static_root
    )
    html = html.replace('../../../docs/source/_static/pycco.css', 'pycco.css')
    f = open(os.path.join(static_root, '%s.html' % script), 'w+')
    f.write(html)
    f.close()

# -- 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.viewcode']
コード例 #5
0
# 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('../../'))
sys.path.insert(0, os.path.abspath('../../../../lib/python2.7/site-packages/'))
from django.conf import settings
settings.configure()

autoclass_content = "both"

project_root = os.path.abspath('../../')
static_root = os.path.abspath('_static')
import pycco
for script in ('autocomplete_light', ):
    html = pycco.generate_documentation(
        os.path.join(project_root, 'cities_light/static/cities_light/%s.js' % script),
        static_root
    )
    html = html.replace('../../../docs/source/_static/pycco.css', 'pycco.css')
    f = open(os.path.join(static_root, '%s.html' % script), 'w+')
    f.write(html)
    f.close()

import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
    intersphinx_mapping = {
        'autocompletelight': ('http://django-autocomplete-light.readthedocs.org/en/latest/', None),
    }
else:
    intersphinx_mapping = {
        'autocompletelight': ('file:///home/jpic/env/src/autocomplete-light/docs/build/html/', None),