| 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 |
import os |
| 8 |
import sys |
| 9 |
|
| 10 |
# -- Project information ----------------------------------------------------- |
| 11 |
|
| 12 |
project = "aioquic" |
| 13 |
author = "Jeremy Lainé" |
| 14 |
copyright = author |
| 15 |
|
| 16 |
|
| 17 |
# -- General configuration ------------------------------------------------ |
| 18 |
|
| 19 |
sys.path.append(os.path.abspath("./_ext")) |
| 20 |
|
| 21 |
# Add any Sphinx extension module names here, as strings. They can be |
| 22 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 23 |
# ones. |
| 24 |
extensions = [ |
| 25 |
"sphinx.ext.autodoc", |
| 26 |
"sphinx.ext.intersphinx", |
| 27 |
"sphinx.ext.viewcode", |
| 28 |
"sphinx_autodoc_typehints", |
| 29 |
"sphinxcontrib_trio", |
| 30 |
"sphinx_aioquic", |
| 31 |
] |
| 32 |
intersphinx_mapping = { |
| 33 |
"cryptography": ("https://cryptography.io/en/latest", None), |
| 34 |
"python": ("https://docs.python.org/3", None), |
| 35 |
} |
| 36 |
|
| 37 |
# Add any paths that contain templates here, relative to this directory. |
| 38 |
templates_path = ["_templates"] |
| 39 |
|
| 40 |
# The language for content autogenerated by Sphinx. Refer to documentation |
| 41 |
# for a list of supported languages. |
| 42 |
# |
| 43 |
# This is also used if you do content translation via gettext catalogs. |
| 44 |
# Usually you set "language" from the command line for these cases. |
| 45 |
language = "en" |
| 46 |
|
| 47 |
|
| 48 |
# -- Options for HTML output ---------------------------------------------- |
| 49 |
|
| 50 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
| 51 |
# a list of builtin themes. |
| 52 |
# |
| 53 |
html_theme = "alabaster" |
| 54 |
|
| 55 |
# Theme options are theme-specific and customize the look and feel of a theme |
| 56 |
# further. For a list of options available for each theme, see the |
| 57 |
# documentation. |
| 58 |
# |
| 59 |
html_theme_options = { |
| 60 |
'description': 'A library for QUIC in Python.', |
| 61 |
} |
| 62 |
|
| 63 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 64 |
# relative to this directory. They are copied after the builtin static files, |
| 65 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 66 |
html_static_path = ["_static"] |
| 67 |
|
| 68 |
# Custom sidebar templates, must be a dictionary that maps document names |
| 69 |
# to template names. |
| 70 |
# |
| 71 |
# This is required for the alabaster theme |
| 72 |
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
| 73 |
html_sidebars = { |
| 74 |
"**": [ |
| 75 |
"about.html", |
| 76 |
"navigation.html", |
| 77 |
"relations.html", |
| 78 |
"searchbox.html", |
| 79 |
] |
| 80 |
} |