File: conf.py

package info (click to toggle)
python-flask-marshmallow 0.14.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 360 kB
  • sloc: python: 867; makefile: 145; sh: 17
file content (55 lines) | stat: -rwxr-xr-x 1,710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- coding: utf-8 -*-
import datetime as dt
import sys
import os

sys.path.insert(0, os.path.abspath(os.path.join("..", "src")))
import flask_marshmallow  # noqa: E402

sys.path.append(os.path.abspath("_themes"))
extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx_issues"]

intersphinx_mapping = {
    "python": ("http://python.readthedocs.io/en/latest/", None),
    "flask": ("http://flask.pocoo.org/docs/latest/", None),
    "flask-sqlalchemy": ("http://flask-sqlalchemy.pocoo.org/latest/", None),
    "marshmallow": ("http://marshmallow.readthedocs.io/en/latest/", None),
    "marshmallow-sqlalchemy": (
        "http://marshmallow-sqlalchemy.readthedocs.io/en/latest/",
        None,
    ),
}

primary_domain = "py"
default_role = "py:obj"

issues_github_path = "marshmallow-code/flask-marshmallow"

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# The suffix of source filenames.
source_suffix = ".rst"
# The master toctree document.
master_doc = "index"

# General information about the project.
project = u"Flask-Marshmallow"
copyright = u"2014-{:%Y}".format(
    dt.datetime.utcfromtimestamp(os.path.getmtime("../CHANGELOG.rst"))
)


version = release = flask_marshmallow.__version__
exclude_patterns = ["_build"]
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "flask_theme_support.FlaskyStyle"
html_theme = "flask_small"
html_theme_path = ["_themes"]
html_static_path = ["_static"]
html_sidebars = {
    "index": ["side-primary.html", "searchbox.html"],
    "**": ["side-secondary.html", "localtoc.html", "relations.html", "searchbox.html"],
}

htmlhelp_basename = "flask-marshmallowdoc"