|
| 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 | +sys.path.insert(0, os.path.abspath('..')) |
| 17 | +#sys.path.insert(0, os.path.abspath('../pyCallBy')) |
| 18 | +#sys.path.insert(0, os.path.abspath('_extensions')) |
| 19 | +#sys.path.insert(0, os.path.abspath('_themes/sphinx_rtd_theme')) |
| 20 | + |
| 21 | + |
| 22 | +# -- Project information ----------------------------------------------------- |
| 23 | + |
| 24 | +project = 'pyTerminalUI' |
| 25 | +copyright = '2007-2019, Patrick Lehmann' |
| 26 | +author = 'Patrick Lehmann' |
| 27 | + |
| 28 | +# The full version, including alpha/beta/rc tags |
| 29 | +release = 'v1.0' |
| 30 | + |
| 31 | + |
| 32 | +# -- General configuration --------------------------------------------------- |
| 33 | + |
| 34 | +# Add any Sphinx extension module names here, as strings. They can be |
| 35 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 36 | +# ones. |
| 37 | +extensions = [ |
| 38 | +# Sphinx theme |
| 39 | + "sphinx_rtd_theme", |
| 40 | +# Standard Sphinx extensions |
| 41 | + "sphinx.ext.autodoc", |
| 42 | + 'sphinx.ext.extlinks', |
| 43 | + 'sphinx.ext.intersphinx', |
| 44 | + 'sphinx.ext.inheritance_diagram', |
| 45 | + 'sphinx.ext.todo', |
| 46 | + 'sphinx.ext.graphviz', |
| 47 | + 'sphinx.ext.mathjax', |
| 48 | + 'sphinx.ext.ifconfig', |
| 49 | + 'sphinx.ext.viewcode', |
| 50 | +# SphinxContrib extensions |
| 51 | + |
| 52 | +# Other extensions |
| 53 | +# 'DocumentMember', |
| 54 | +# local extensions (patched) |
| 55 | + |
| 56 | +# local extensions |
| 57 | +] |
| 58 | + |
| 59 | +# Add any paths that contain templates here, relative to this directory. |
| 60 | +templates_path = ['_templates'] |
| 61 | + |
| 62 | +# List of patterns, relative to source directory, that match files and |
| 63 | +# directories to ignore when looking for source files. |
| 64 | +# This pattern also affects html_static_path and html_extra_path. |
| 65 | +exclude_patterns = [ |
| 66 | + "_build", |
| 67 | + "Thumbs.db", |
| 68 | + ".DS_Store" |
| 69 | +] |
| 70 | + |
| 71 | + |
| 72 | +# -- Options for HTML output ------------------------------------------------- |
| 73 | + |
| 74 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 75 | +# a list of builtin themes. |
| 76 | +# |
| 77 | +# html_theme = 'alabaster' |
| 78 | +html_theme = 'sphinx_rtd_theme' |
| 79 | + |
| 80 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 81 | +# relative to this directory. They are copied after the builtin static files, |
| 82 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 83 | +html_static_path = ['_static'] |
| 84 | + |
| 85 | +# ============================================================================== |
| 86 | +# Sphinx.Ext.InterSphinx |
| 87 | +# ============================================================================== |
| 88 | +intersphinx_mapping = { |
| 89 | + 'python': ('https://docs.python.org/3', None), |
| 90 | +} |
| 91 | + |
| 92 | + |
| 93 | +# ============================================================================== |
| 94 | +# Sphinx.Ext.ExtLinks |
| 95 | +# ============================================================================== |
| 96 | +extlinks = { |
| 97 | + 'issue': ('https://github.com/Paebbels/pyTerminalUI/issues/%s', 'issue #'), |
| 98 | + 'pull': ('https://github.com/Paebbels/pyTerminalUI/pull/%s', 'pull request #'), |
| 99 | + 'src': ('https://github.com/Paebbels/pyTerminalUI/blob/master/pyTerminalUI/%s?ts=2', None), |
| 100 | +# 'test': ('https://github.com/Paebbels/pyCallBy/blob/master/test/%s?ts=2', None) |
| 101 | +} |
| 102 | + |
| 103 | + |
| 104 | +# ============================================================================== |
| 105 | +# Sphinx.Ext.Graphviz |
| 106 | +# ============================================================================== |
| 107 | +graphviz_output_format = "svg" |
0 commit comments