Add a Cretonne domain for Sphinx.

Include roles for documenting IL instructions and types, including
index cross references.
This commit is contained in:
Jakob Olesen
2016-01-12 16:53:43 -08:00
parent 1803df091e
commit 5638bc464f
3 changed files with 190 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ import shlex
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------
@@ -34,6 +34,7 @@ extensions = [
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'cton_domain'
]
# Add any paths that contain templates here, relative to this directory.