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
|
"""Sphinx configuration file."""
import os
import sys
import time
# General configuration.
sys.path.append(os.path.realpath(os.path.join(os.path.dirname(__file__), "..")))
author = "@Robpol86"
copyright = "{}, {}".format(time.strftime("%Y"), author)
html_last_updated_fmt = f"%c {time.tzname[time.localtime().tm_isdst]}"
master_doc = "index"
project = "terminaltables3"
pygments_style = "friendly"
release = version = "4.0"
templates_path = ["_templates"]
extensions = []
# Options for HTML output.
html_context = dict(
conf_py_path="/docs/",
display_github=True,
github_repo=os.environ.get("TRAVIS_REPO_SLUG", "/" + project).split("/", 1)[1],
github_user=os.environ.get("TRAVIS_REPO_SLUG", "robpol86/").split("/", 1)[0],
github_version=os.environ.get("TRAVIS_BRANCH", "master"),
source_suffix=".rst",
)
html_copy_source = True
html_favicon = "favicon.ico"
html_theme = "sphinx_rtd_theme"
html_title = project
# autodoc
extensions.append("sphinx.ext.autodoc")
# SCVersioning.
scv_banner_greatest_tag = True
scv_grm_exclude = (".gitignore", ".nojekyll", "README.rst")
scv_overflow = ("-W",)
scv_show_banner = True
scv_sort = ("semver", "time")
|