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 47 48 49 50
|
"""Sphinx configuration for itango documentation."""
import sys
import os
# Extensions
sys.path.append(os.path.abspath("sphinxext"))
extensions = [
"sphinx.ext.intersphinx",
"ipython_console_highlighting",
"tango_console_highlighting",
]
# Configuration
html_theme = "sphinx_book_theme"
html_title = "ITango"
html_theme_options = {
"repository_url": "https://gitlab.com/tango-controls/itango",
"path_to_docs": "doc",
"repository_branch": "main",
"use_source_button": True,
"use_edit_page_button": True,
}
# The suffix of source filenames.
source_suffix = {
".rst": "restructuredtext",
}
master_doc = "index"
rst_epilog = """\
.. _Tango: http://www.tango-controls.org/
.. _IPython: http://ipython.org/
.. _ITango: https://pypi.python.org/pypi/itango/
"""
# Data
project = "itango"
copyright = "2016, Tango Controls"
author = "Tango Controls"
intersphinx_mapping = {
"tango-controls": ("https://tango-controls.readthedocs.io/en/latest/", None),
"pytango": ("https://pytango.readthedocs.io/en/stable/", None),
"python": ("https://docs.python.org/3", None),
}
|