2020-04-27 01:21:31 -06:00
|
|
|
import os, sys
|
|
|
|
sys.path.insert(0, os.path.abspath("."))
|
|
|
|
|
2021-12-09 22:39:50 -07:00
|
|
|
import amaranth
|
2020-04-27 01:21:31 -06:00
|
|
|
|
2021-12-09 22:39:50 -07:00
|
|
|
project = "Amaranth HDL toolchain"
|
|
|
|
version = amaranth.__version__
|
2020-04-27 01:21:31 -06:00
|
|
|
release = version.split("+")[0]
|
2021-12-09 22:39:50 -07:00
|
|
|
copyright = "2020—2021, Amaranth HDL developers"
|
2020-04-27 01:21:31 -06:00
|
|
|
|
|
|
|
extensions = [
|
|
|
|
"sphinx.ext.intersphinx",
|
|
|
|
"sphinx.ext.doctest",
|
|
|
|
"sphinx.ext.todo",
|
2021-12-12 22:48:31 -07:00
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinx.ext.napoleon",
|
2020-04-27 01:21:31 -06:00
|
|
|
"sphinx_rtd_theme",
|
2020-07-05 17:39:47 -06:00
|
|
|
"sphinxcontrib.platformpicker",
|
2020-04-27 01:21:31 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
with open(".gitignore") as f:
|
|
|
|
exclude_patterns = [line.strip() for line in f.readlines()]
|
|
|
|
|
2021-12-10 23:32:32 -07:00
|
|
|
root_doc = "cover"
|
2020-07-01 02:03:57 -06:00
|
|
|
|
2020-04-27 01:21:31 -06:00
|
|
|
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
|
|
|
|
|
|
|
todo_include_todos = True
|
|
|
|
|
2021-12-12 22:48:31 -07:00
|
|
|
napoleon_google_docstring = False
|
|
|
|
napoleon_numpy_docstring = True
|
|
|
|
napoleon_use_ivar = True
|
2021-12-12 23:23:12 -07:00
|
|
|
napoleon_custom_sections = ["Platform overrides"]
|
2021-12-12 22:48:31 -07:00
|
|
|
|
2020-04-27 01:21:31 -06:00
|
|
|
html_theme = "sphinx_rtd_theme"
|
|
|
|
html_static_path = ["_static"]
|
|
|
|
html_css_files = ["custom.css"]
|