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+
17+
18+ # -- Project information -----------------------------------------------------
19+
20+ project = 'CPP BIDS'
21+ copyright = '2020, the CPP BIDS dev team'
22+ author = 'the CPP BIDS dev team'
23+
24+ # The full version, including alpha/beta/rc tags
25+ release = 'v1.0.0'
26+
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 = [
34+ 'sphinxcontrib.matlab' ,
35+ 'sphinx.ext.autodoc' ]
36+ matlab_src_dir = os .path .dirname (os .path .abspath ('../../src' ))
37+ primary_domain = 'mat'
38+
39+ # Add any paths that contain templates here, relative to this directory.
40+ templates_path = ['_templates' ]
41+
42+ # List of patterns, relative to source directory, that match files and
43+ # directories to ignore when looking for source files.
44+ # This pattern also affects html_static_path and html_extra_path.
45+ exclude_patterns = []
46+
47+ # The name of the Pygments (syntax highlighting) style to use.
48+ pygments_style = 'sphinx'
49+
50+ # The master toctree document.
51+ master_doc = 'index'
52+
53+ # source_suffix = ['.rst', '.md']
54+ source_suffix = '.rst'
55+
56+
57+ # -- Options for HTML output -------------------------------------------------
58+
59+ # The theme to use for HTML and HTML Help pages. See the documentation for
60+ # a list of builtin themes.
61+ #
62+ html_theme = 'sphinx_rtd_theme'
63+
64+ # Add any paths that contain custom static files (such as style sheets) here,
65+ # relative to this directory. They are copied after the builtin static files,
66+ # so a file named "default.css" will overwrite the builtin "default.css".
67+ html_static_path = ['_static' ]
68+
69+ html_logo = '_static/cpp_lab_logo.png'
70+
71+ # html_theme_options = {
72+ # 'github_user': 'cpp-lln-lab',
73+ # 'github_repo': 'CPP_BIDS_SPM_pipeline',
74+ # 'github_button': True,
75+ # 'github_banner': True
76+ # }
77+ # html_theme_options = {
78+ # 'collapse_navigation': False,
79+ # 'display_version': False,
80+ # 'navigation_depth': 4,
81+ # }
82+
83+ html_sidebars = {
84+ '**' : [
85+ 'about.html' ,
86+ 'navigation.html' ,
87+ 'relations.html' , # needs 'show_related': True theme option to display
88+ 'searchbox.html' ,
89+ 'donate.html' ,
90+ ]
91+ }
0 commit comments