amaranth/docs/conf.py
whitequark 399b8f9863 Add (heavily work in progress) documentation.
To render correctly, the docs require:
 * pygments/pygments#1441
2020-06-30 22:21:16 +00:00

28 lines
599 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",
"sphinx_rtd_theme",
]
with open(".gitignore") as f:
exclude_patterns = [line.strip() for line in f.readlines()]
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"]