conf.py
Go to the documentation of this file.
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,sys,inspect
14 currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
15 parentdir = os.path.dirname(os.path.dirname(currentdir))
16 sys.path.insert(0,parentdir)
17 # -- Project information -----------------------------------------------------
18 
19 project = 'larnd-sim'
20 copyright = '2020, DUNE collaboration'
21 author = 'DUNE collaboration'
22 
23 # The full version, including alpha/beta/rc tags
24 release = '0.0.1'
25 
26 
27 # -- General configuration ---------------------------------------------------
28 
29 # Add any Sphinx extension module names here, as strings. They can be
30 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31 # ones.
32 extensions = ['sphinx.ext.autodoc',
33  'sphinx.ext.coverage',
34  'sphinx.ext.napoleon',
35  'sphinx.ext.intersphinx',
36  'sphinx_rtd_theme']
37 # Add any paths that contain templates here, relative to this directory.
38 templates_path = ['_templates']
39 
40 # List of patterns, relative to source directory, that match files and
41 # directories to ignore when looking for source files.
42 # This pattern also affects html_static_path and html_extra_path.
43 exclude_patterns = ['tests/*']
44 intersphinx_mapping = {'numpy': ('http://docs.scipy.org/doc/numpy/', None),
45  'numba': ('https://numba.pydata.org/numba-doc/latest', None)}
46 napoleon_use_param = False
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 = 'sphinx_rtd_theme'
54 
55 # Add any paths that contain custom static files (such as style sheets) here,
56 # relative to this directory. They are copied after the builtin static files,
57 # so a file named "default.css" will overwrite the builtin "default.css".
58 html_static_path = []