1# -*- coding: utf-8 -*- 2import datetime as dt 3import sys 4import os 5 6sys.path.insert(0, os.path.abspath(os.path.join("..", "src"))) 7import flask_marshmallow # noqa: E402 8 9sys.path.append(os.path.abspath("_themes")) 10extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx_issues"] 11 12intersphinx_mapping = { 13 "python": ("http://python.readthedocs.io/en/latest/", None), 14 "flask": ("http://flask.pocoo.org/docs/latest/", None), 15 "flask-sqlalchemy": ("http://flask-sqlalchemy.pocoo.org/latest/", None), 16 "marshmallow": ("http://marshmallow.readthedocs.io/en/latest/", None), 17 "marshmallow-sqlalchemy": ( 18 "http://marshmallow-sqlalchemy.readthedocs.io/en/latest/", 19 None, 20 ), 21} 22 23primary_domain = "py" 24default_role = "py:obj" 25 26issues_github_path = "marshmallow-code/flask-marshmallow" 27 28# Add any paths that contain templates here, relative to this directory. 29templates_path = ["_templates"] 30 31# The suffix of source filenames. 32source_suffix = ".rst" 33# The master toctree document. 34master_doc = "index" 35 36# General information about the project. 37project = u"Flask-Marshmallow" 38copyright = u"2014-{:%Y}".format( 39 dt.datetime.utcfromtimestamp(os.path.getmtime("../CHANGELOG.rst")) 40) 41 42 43version = release = flask_marshmallow.__version__ 44exclude_patterns = ["_build"] 45# The name of the Pygments (syntax highlighting) style to use. 46pygments_style = "flask_theme_support.FlaskyStyle" 47html_theme = "flask_small" 48html_theme_path = ["_themes"] 49html_static_path = ["_static"] 50html_sidebars = { 51 "index": ["side-primary.html", "searchbox.html"], 52 "**": ["side-secondary.html", "localtoc.html", "relations.html", "searchbox.html"], 53} 54 55htmlhelp_basename = "flask-marshmallowdoc" 56