| 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 | # http://www.sphinx-doc.org/en/master/config |
| 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 | import helpdev |
| 18 | |
| 19 | |
| 20 | # -- Project information ----------------------------------------------------- |
| 21 | |
| 22 | project = 'HelpDev' |
| 23 | copyright = '2019, Daniel Cosmo Pizetta' |
| 24 | author = 'Daniel Cosmo Pizetta' |
| 25 | release = helpdev.__version__ |
| 26 | version = helpdev.__version__ |
| 27 | |
| 28 | # -- General configuration --------------------------------------------------- |
| 29 | |
| 30 | # Add any Sphinx extension module names here, as strings. They can be |
| 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 32 | # ones. |
| 33 | extensions = ['sphinx.ext.autodoc', |
| 34 | 'sphinx.ext.doctest', |
| 35 | 'sphinx.ext.todo', |
| 36 | 'sphinx.ext.intersphinx', |
| 37 | 'sphinx.ext.coverage', |
| 38 | 'sphinx.ext.napoleon', # Google and NumPy styles |
| 39 | 'sphinx.ext.imgconverter' # Load from SVG to PDF in Latex |
| 40 | ] |
| 41 | |
| 42 | # Napoleon settings |
| 43 | napoleon_google_docstring = True |
| 44 | napoleon_numpy_docstring = True |
| 45 | napoleon_include_private_with_doc = False |
| 46 | napoleon_include_special_with_doc = False |
| 47 | napoleon_use_admonition_for_examples = False |
| 48 | napoleon_use_admonition_for_notes = False |
| 49 | napoleon_use_admonition_for_references = False |
| 50 | napoleon_use_ivar = True |
| 51 | napoleon_use_param = True |
| 52 | napoleon_use_rtype = True |
| 53 | |
| 54 | # Add any paths that contain templates here, relative to this directory. |
| 55 | templates_path = ['_templates'] |
| 56 | source_suffix = ['.rst'] |
| 57 | master_doc = 'index' |
| 58 | source_encoding = 'utf-8' |
| 59 | |
| 60 | # List of patterns, relative to source directory, that match files and |
| 61 | # directories to ignore when looking for source files. |
| 62 | # This pattern also affects html_static_path and html_extra_path. |
| 63 | exclude_patterns = ['_build', 'build', 'dist'] |
| 64 | |
| 65 | |
| 66 | # -- Options for HTML output ------------------------------------------------- |
| 67 | |
| 68 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 69 | # a list of builtin themes. |
| 70 | # |
| 71 | html_theme = "sphinx_rtd_theme" |
| 72 | |
| 73 | # Add any paths that contain custom static files (such as style sheets) here, |
| 74 | # relative to this directory. They are copied after the builtin static files, |
| 75 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 76 | html_static_path = ['_static'] |