"Fossies" - the Fresh Open Source Software Archive

Member "ec2-api-12.0.0/doc/source/conf.py" (14 Apr 2021, 2601 Bytes) of package /linux/misc/openstack/ec2-api-12.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "conf.py" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 9.0.0_vs_10.0.0.

    1 
    2 import os
    3 import sys
    4 
    5 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
    6 ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
    7 
    8 sys.path.insert(0, ROOT)
    9 sys.path.insert(0, BASE_DIR)
   10 
   11 # This is required for ReadTheDocs.org, but isn't a bad idea anyway.
   12 os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
   13 
   14 # -- General configuration ----------------------------------------------------
   15 
   16 # Add any Sphinx extension module names here, as strings. They can be
   17 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
   18 extensions = ['sphinx.ext.doctest',
   19               'sphinx.ext.todo',
   20               'sphinx.ext.viewcode',
   21               'openstackdocstheme']
   22 
   23 # openstackdocstheme options
   24 openstackdocs_repo_name = 'openstack/ec2-api'
   25 openstackdocs_auto_name = False
   26 openstackdocs_bug_project = 'ec2-api'
   27 openstackdocs_bug_tag = ''
   28 
   29 # autodoc generation is a bit aggressive and a nuisance when doing heavy
   30 # text edit cycles.
   31 # execute "export SPHINX_DEBUG=1" in your terminal to disable
   32 
   33 # Add any paths that contain templates here, relative to this directory.
   34 templates_path = ['_templates']
   35 
   36 # The suffix of source filenames.
   37 source_suffix = '.rst'
   38 
   39 # The master toctree document.
   40 master_doc = 'index'
   41 
   42 # General information about the project.
   43 project = 'EC2API Service'
   44 copyright = '2015, OpenStack Foundation'
   45 
   46 # If true, '()' will be appended to :func: etc. cross-reference text.
   47 add_function_parentheses = True
   48 
   49 # If true, the current module name will be prepended to all description
   50 # unit titles (such as .. function::).
   51 add_module_names = True
   52 
   53 # The name of the Pygments (syntax highlighting) style to use.
   54 pygments_style = 'native'
   55 
   56 # -- Options for HTML output --------------------------------------------------
   57 
   58 # The theme to use for HTML and HTML Help pages.  Major themes that come with
   59 # Sphinx are currently 'default' and 'sphinxdoc'.
   60 # html_theme_path = ["."]
   61 # html_theme = '_theme'
   62 # html_static_path = ['static']
   63 html_theme = 'openstackdocs'
   64 
   65 # Theme options are theme-specific and customize the look and feel of a theme
   66 # further.  For a list of options available for each theme, see the
   67 # documentation.
   68 html_theme_options = {"sidebar_mode": "toc"}
   69 
   70 # Output file base name for HTML help builder.
   71 htmlhelp_basename = '%sdoc' % project
   72 
   73 
   74 # Grouping the document tree into LaTeX files. List of tuples
   75 # (source start file, target name, title, author, documentclass
   76 # [howto/manual]).
   77 latex_documents = [
   78         ('index',
   79          '%s.tex' % project,
   80          '%s Documentation' % project,
   81          'OpenStack Foundation', 'manual'),
   82 ]