-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconf.py
46 lines (31 loc) · 1.24 KB
/
conf.py
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
# Configuration file for the Sphinx documentation builder.
#
# Full list of options can be found in the Sphinx documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
import datetime as dt
from pathlib import Path
import sys
sys.path.insert(0, str(Path("..").resolve()))
from gruvbox import __author__, __version__ # noqa: E402
# -- Project information -----------------------------------------------------
changelog_mtime = Path("../CHANGELOG.rst").stat().st_mtime
copyright_year = dt.datetime.utcfromtimestamp(changelog_mtime)
project = "ipython-style-gruvbox"
author = __author__
release = __version__
version = ".".join(release.split(".", 2)[:2])
copyright = f'{copyright_year:%Y}, {author}'
# -- General configuration ---------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.todo",
"sphinx.ext.intersphinx",
"sphinx.ext.githubpages",
"sphinx.ext.napoleon",
"sphinx_autodoc_typehints",
]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
html_theme = "furo"
html_title = "IPython Style Gruvbox"