amaranth/docs/conf.py
whitequark 76c7e70582 docs: add a crude approximation of intersphinx toctrees.
This is a pretty awful hack. We could do this properly after one of
the following issues is fixed:
  * sphinx-doc/sphinx#701
  * sphinx-doc/sphinx#1836
2020-07-01 08:03:57 +00:00

31 lines
652 B
Python

import os, sys
sys.path.insert(0, os.path.abspath("."))
import nmigen
project = "nMigen core"
version = nmigen.__version__
release = version.split("+")[0]
copyright = "2020, nMigen developers"
extensions = [
"sphinx.ext.intersphinx",
"sphinx.ext.doctest",
"sphinx.ext.todo",
"sphinxcontrib.contentui",
"sphinx_rtd_theme",
]
with open(".gitignore") as f:
exclude_patterns = [line.strip() for line in f.readlines()]
master_doc = "cover"
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
todo_include_todos = True
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
html_css_files = ["custom.css"]