|
12 | 12 | #
|
13 | 13 | import os
|
14 | 14 | import sys
|
15 |
| -sys.path.insert(0, os.path.abspath('../..')) |
| 15 | + |
| 16 | +sys.path.insert(0, os.path.abspath("../..")) |
16 | 17 |
|
17 | 18 |
|
18 | 19 | # -- Project information -----------------------------------------------------
|
19 | 20 |
|
20 |
| -project = 'CPP BIDS' |
21 |
| -copyright = '2020, the CPP BIDS dev team' |
22 |
| -author = 'the CPP BIDS dev team' |
| 21 | +project = "CPP BIDS" |
| 22 | +copyright = "2020, the CPP BIDS dev team" |
| 23 | +author = "the CPP BIDS dev team" |
23 | 24 |
|
24 | 25 | # The full version, including alpha/beta/rc tags
|
25 |
| -release = 'v2.1.2dev' |
| 26 | +with open("../../version.txt", encoding="utf-8") as version_file: |
| 27 | + release = version_file.read() |
26 | 28 |
|
27 | 29 |
|
28 | 30 | # -- General configuration ---------------------------------------------------
|
|
31 | 33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
32 | 34 | # ones.
|
33 | 35 | extensions = [
|
34 |
| - 'sphinxcontrib.matlab', |
35 |
| - 'sphinx.ext.autodoc'] |
36 |
| -matlab_src_dir = os.path.dirname(os.path.abspath('../../src')) |
37 |
| -primary_domain = 'mat' |
| 36 | + "sphinxcontrib.matlab", |
| 37 | + "sphinx.ext.autodoc", |
| 38 | + "myst_parser", |
| 39 | + "sphinx_copybutton", |
| 40 | +] |
| 41 | +matlab_src_dir = os.path.dirname(os.path.abspath("../../src")) |
| 42 | +primary_domain = "mat" |
38 | 43 |
|
39 | 44 | # Add any paths that contain templates here, relative to this directory.
|
40 |
| -templates_path = ['_templates'] |
| 45 | +templates_path = ["_templates"] |
41 | 46 |
|
42 | 47 | # List of patterns, relative to source directory, that match files and
|
43 | 48 | # directories to ignore when looking for source files.
|
44 | 49 | # This pattern also affects html_static_path and html_extra_path.
|
45 | 50 | exclude_patterns = []
|
46 | 51 |
|
47 | 52 | # The name of the Pygments (syntax highlighting) style to use.
|
48 |
| -pygments_style = 'sphinx' |
| 53 | +pygments_style = "sphinx" |
49 | 54 |
|
50 | 55 | # The master toctree document.
|
51 |
| -master_doc = 'index' |
| 56 | +master_doc = "index" |
52 | 57 |
|
53 | 58 | # source_suffix = ['.rst', '.md']
|
54 |
| -source_suffix = '.rst' |
| 59 | +source_suffix = ".rst" |
55 | 60 |
|
56 | 61 |
|
57 | 62 | # -- Options for HTML output -------------------------------------------------
|
58 | 63 |
|
59 | 64 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
60 | 65 | # a list of builtin themes.
|
61 | 66 | #
|
62 |
| -html_theme = 'sphinx_rtd_theme' |
| 67 | +html_theme = "sphinx_rtd_theme" |
63 | 68 |
|
64 | 69 | # Add any paths that contain custom static files (such as style sheets) here,
|
65 | 70 | # relative to this directory. They are copied after the builtin static files,
|
66 | 71 | # so a file named "default.css" will overwrite the builtin "default.css".
|
67 |
| -html_static_path = ['_static'] |
| 72 | +html_static_path = ["_static"] |
68 | 73 |
|
69 |
| -html_logo = '_static/cpp_lab_logo.png' |
| 74 | +html_logo = "_static/cpp_lab_logo.png" |
70 | 75 |
|
71 | 76 | # html_theme_options = {
|
72 | 77 | # 'github_user': 'cpp-lln-lab',
|
|
81 | 86 | # }
|
82 | 87 |
|
83 | 88 | 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', |
| 89 | + "**": [ |
| 90 | + "about.html", |
| 91 | + "navigation.html", |
| 92 | + "relations.html", # needs 'show_related': True theme option to display |
| 93 | + "searchbox.html", |
| 94 | + "donate.html", |
90 | 95 | ]
|
91 | 96 | }
|
0 commit comments