| 1 |
from datetime import datetime |
| 2 |
from os.path import abspath, dirname, join |
| 3 |
|
| 4 |
import alabaster |
| 5 |
|
| 6 |
# Alabaster theme + mini-extension |
| 7 |
html_theme_path = [alabaster.get_path()] |
| 8 |
extensions = ["alabaster", "sphinx.ext.intersphinx", "sphinx.ext.doctest"] |
| 9 |
# Paths relative to invoking conf.py - not this shared file |
| 10 |
html_theme = "alabaster" |
| 11 |
html_theme_options = { |
| 12 |
"description": "Pythonic task execution", |
| 13 |
"github_user": "pyinvoke", |
| 14 |
"github_repo": "invoke", |
| 15 |
"analytics_id": "UA-18486793-3", |
| 16 |
"travis_button": False, # No longer on Travis-CI; README buttons link to Circle |
| 17 |
"codecov_button": False, # Now a README button |
| 18 |
"tidelift_url": "https://tidelift.com/subscription/pkg/pypi-invoke?utm_source=pypi-invoke&utm_medium=referral&utm_campaign=docs", # noqa |
| 19 |
} |
| 20 |
html_sidebars = { |
| 21 |
"**": ["about.html", "navigation.html", "searchbox.html", "donate.html"] |
| 22 |
} |
| 23 |
|
| 24 |
# Everything intersphinx's to Python |
| 25 |
intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)} |
| 26 |
|
| 27 |
# Doctest settings |
| 28 |
doctest_path = [abspath(join(dirname(__file__), "..", "tests"))] |
| 29 |
doctest_global_setup = r""" |
| 30 |
from _util import MockSubprocess |
| 31 |
""" |
| 32 |
|
| 33 |
# Regular settings |
| 34 |
project = "Invoke" |
| 35 |
year = datetime.now().year |
| 36 |
copyright = "{} Jeff Forcier".format(year) |
| 37 |
master_doc = "index" |
| 38 |
templates_path = ["_templates"] |
| 39 |
exclude_trees = ["_build"] |
| 40 |
source_suffix = ".rst" |
| 41 |
default_role = "obj" |