Adding files needed to run sphinx as a pre-push hook.
[python_utils.git] / docs / conf.py
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
16 sys.path.insert(0, os.path.abspath('../..'))
17 sys.path.insert(0, os.path.abspath('../../cached'))
18 sys.path.insert(0, os.path.abspath('../../collect'))
19 sys.path.insert(0, os.path.abspath('../../dateparse'))
20 sys.path.insert(0, os.path.abspath('../../ml'))
21 sys.path.insert(0, os.path.abspath('../../music'))
22 sys.path.insert(0, os.path.abspath('../../smart_home'))
23 sys.path.insert(0, os.path.abspath('../../tests'))
24 sys.path.insert(0, os.path.abspath('../../type'))
25 sys.path.insert(0, os.path.abspath('/home/scott/py38-venv/lib/python3.8/site-packages/'))
26 sys.path.insert(0, os.path.abspath('/usr/local/lib/python3.8/site-packages/'))
27
28 # -- Project information -----------------------------------------------------
29
30 project = "Scott's Python Utils"
31 copyright = '2022, Scott Gasch'
32 author = 'Scott Gasch'
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.doctest',
42     'sphinx.ext.autodoc',
43 ]
44
45 # Add any paths that contain templates here, relative to this directory.
46 templates_path = ['_templates']
47
48 # List of patterns, relative to source directory, that match files and
49 # directories to ignore when looking for source files.
50 # This pattern also affects html_static_path and html_extra_path.
51 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
52
53
54 # -- Options for HTML output -------------------------------------------------
55
56 # The theme to use for HTML and HTML Help pages.  See the documentation for
57 # a list of builtin themes.
58 #
59 html_theme = 'sphinx_rtd_theme'
60
61 # Add any paths that contain custom static files (such as style sheets) here,
62 # relative to this directory. They are copied after the builtin static files,
63 # so a file named "default.css" will overwrite the builtin "default.css".
64 html_static_path = ['_static']