| 1 |
# Configuration file for the Sphinx documentation builder. |
| 2 |
# |
| 3 |
# This file only contains a selection of the most common options. For a full |
| 4 |
# list see the documentation: |
| 5 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 |
|
| 7 |
# -- Path setup -------------------------------------------------------------- |
| 8 |
|
| 9 |
# If extensions (or modules to document with autodoc) are in another directory, |
| 10 |
# add these directories to sys.path here. If the directory is relative to the |
| 11 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 |
# |
| 13 |
# import os |
| 14 |
# import sys |
| 15 |
# sys.path.insert(0, os.path.abspath('.')) |
| 16 |
|
| 17 |
|
| 18 |
# -- Project information ----------------------------------------------------- |
| 19 |
|
| 20 |
import sphinx_rtd_theme |
| 21 |
from importlib.metadata import Distribution |
| 22 |
|
| 23 |
html_theme = "sphinx_rtd_theme" |
| 24 |
|
| 25 |
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 26 |
|
| 27 |
project = "Rich" |
| 28 |
copyright = "Will McGugan" |
| 29 |
author = "Will McGugan" |
| 30 |
|
| 31 |
# The full version, including alpha/beta/rc tags |
| 32 |
release = Distribution.from_name("rich").version |
| 33 |
|
| 34 |
|
| 35 |
# -- General configuration --------------------------------------------------- |
| 36 |
|
| 37 |
# Add any Sphinx extension module names here, as strings. They can be |
| 38 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 39 |
# ones. |
| 40 |
extensions = [ |
| 41 |
"sphinx.ext.autodoc", |
| 42 |
"sphinx.ext.viewcode", |
| 43 |
"sphinx.ext.napoleon", |
| 44 |
"sphinx.ext.intersphinx", |
| 45 |
"sphinx.ext.autosectionlabel", |
| 46 |
"sphinx_copybutton", |
| 47 |
"sphinx_rtd_theme", |
| 48 |
] |
| 49 |
|
| 50 |
# Add any paths that contain templates here, relative to this directory. |
| 51 |
templates_path = ["_templates"] |
| 52 |
|
| 53 |
# List of patterns, relative to source directory, that match files and |
| 54 |
# directories to ignore when looking for source files. |
| 55 |
# This pattern also affects html_static_path and html_extra_path. |
| 56 |
exclude_patterns = [] |
| 57 |
|
| 58 |
|
| 59 |
# -- Options for HTML output ------------------------------------------------- |
| 60 |
|
| 61 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 62 |
# a list of builtin themes. |
| 63 |
# |
| 64 |
# html_theme = "alabaster" |
| 65 |
|
| 66 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 67 |
# relative to this directory. They are copied after the builtin static files, |
| 68 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 69 |
html_static_path = ["_static"] |
| 70 |
|
| 71 |
intersphinx_mapping = {"python": ("http://docs.python.org/3", None)} |
| 72 |
|
| 73 |
autodoc_typehints = "description" |
| 74 |
|
| 75 |
html_css_files = [ |
| 76 |
"https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/fira_code.min.css" |
| 77 |
] |