# If true, keep warnings as "system message" paragraphs in the built documents.
# keep_warnings = False

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False

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

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.

import standard_theme

html_theme = "standard_theme"

html_theme_path = [standard_theme.get_html_theme_path()]

# 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.
# html_theme_path = []

# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = 'Open Data Services Sphinx Base'
Exemplo n.º 2
0
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = [
    '_build', 'Thumbs.db', '.DS_Store', '_static/docson/*.md',
    '_static/docson/integration/*.md'
]

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

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
#
html_theme = 'standard_theme'  # 'pydata_sphinx_theme'
html_theme_path = [standard_theme.get_html_theme_path()]
html_favicon = '_static/favicon-16x16.ico'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# -- Local configuration -----------------------------------------------------

_ = get_translation('theme')

profile_identifier = 'gpa'
repository_url = 'https://github.com/open-contracting-extensions/government-procurement-agreement'

# Internationalization.
Exemplo n.º 3
0
#texinfo_no_detailmenu = False

from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
from sphinxcontrib.opendataservices import AutoStructifyLowPriority

source_parsers = {
    '.md': CommonMarkParser,
}


import standard_theme

html_theme = "standard_theme"

html_theme_path = [standard_theme.get_html_theme_path()]


locale_dirs = ['../locale/', os.path.join(standard_theme.get_html_theme_path(), 'locale')]
gettext_compact = False     # optional.


extension_registry_git_ref = "v1.1.1"


# app setup hook
def setup(app):
    app.add_config_value('recommonmark_config', {
        'enable_eval_rst': True
    }, True)
    app.add_transform(AutoStructify)
Exemplo n.º 4
0
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify

source_parsers = {
    '.md': CommonMarkParser,
    }


import standard_theme

html_theme = "standard_theme"

html_theme_path = [standard_theme.get_html_theme_path()]


locale_dirs = ['../locale/', os.path.join(standard_theme.get_html_theme_path(), 'locale')]
gettext_compact = False     # optional.



from sphinx.directives.code import LiteralInclude
from docutils.parsers.rst import directives
from docutils import nodes
import json
from jsonpointer import resolve_pointer
from collections import OrderedDict

class JSONInclude(LiteralInclude):