Skip to content

Commit 8334de1

Browse files
committed
update doc
1 parent 8bf435f commit 8334de1

File tree

4 files changed

+35
-26
lines changed

4 files changed

+35
-26
lines changed

.all-contributorsrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"contributors": [
88
{
99
"login": "CerenB",
10-
"name": "CerenB",
10+
"name": "Ceren Battal",
1111
"avatar_url": "https://avatars1.githubusercontent.com/u/10451654?v=4",
1212
"profile": "https://github.com/CerenB",
1313
"contributions": [
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"login": "marcobarilari",
24-
"name": "marcobarilari",
24+
"name": "Marco Barilari",
2525
"avatar_url": "https://avatars3.githubusercontent.com/u/38101692?v=4",
2626
"profile": "https://github.com/marcobarilari",
2727
"contributions": [
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"login": "iqrashahzad14",
67-
"name": "iqrashahzad14",
67+
"name": "Iqra Shahzad",
6868
"avatar_url": "https://avatars.githubusercontent.com/u/75671348?v=4",
6969
"profile": "https://github.com/iqrashahzad14",
7070
"contributions": [

docs/source/conf.py

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212
#
1313
import os
1414
import sys
15-
sys.path.insert(0, os.path.abspath('../..'))
15+
16+
sys.path.insert(0, os.path.abspath("../.."))
1617

1718

1819
# -- Project information -----------------------------------------------------
1920

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"
2324

2425
# 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()
2628

2729

2830
# -- General configuration ---------------------------------------------------
@@ -31,42 +33,45 @@
3133
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3234
# ones.
3335
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"
3843

3944
# Add any paths that contain templates here, relative to this directory.
40-
templates_path = ['_templates']
45+
templates_path = ["_templates"]
4146

4247
# List of patterns, relative to source directory, that match files and
4348
# directories to ignore when looking for source files.
4449
# This pattern also affects html_static_path and html_extra_path.
4550
exclude_patterns = []
4651

4752
# The name of the Pygments (syntax highlighting) style to use.
48-
pygments_style = 'sphinx'
53+
pygments_style = "sphinx"
4954

5055
# The master toctree document.
51-
master_doc = 'index'
56+
master_doc = "index"
5257

5358
# source_suffix = ['.rst', '.md']
54-
source_suffix = '.rst'
59+
source_suffix = ".rst"
5560

5661

5762
# -- Options for HTML output -------------------------------------------------
5863

5964
# The theme to use for HTML and HTML Help pages. See the documentation for
6065
# a list of builtin themes.
6166
#
62-
html_theme = 'sphinx_rtd_theme'
67+
html_theme = "sphinx_rtd_theme"
6368

6469
# Add any paths that contain custom static files (such as style sheets) here,
6570
# relative to this directory. They are copied after the builtin static files,
6671
# so a file named "default.css" will overwrite the builtin "default.css".
67-
html_static_path = ['_static']
72+
html_static_path = ["_static"]
6873

69-
html_logo = '_static/cpp_lab_logo.png'
74+
html_logo = "_static/cpp_lab_logo.png"
7075

7176
# html_theme_options = {
7277
# 'github_user': 'cpp-lln-lab',
@@ -81,11 +86,11 @@
8186
# }
8287

8388
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",
9095
]
9196
}

miss_hit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
project_root
33

44
line_length: 100
5-
regex_function_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
5+
regex_function_name: "[a-z]+(_*[a-zA-Z0-9]+[a-z]*)*"
66
regex_parameter_name: "[a-z0-9]+(([A-Z]){1}[A-Za-z]+)*"
77

88
exclude_dir: "lib"

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ Sphinx
22
sphinxcontrib-matlabdomain
33
sphinxcontrib-napoleon
44
sphinx_rtd_theme
5+
myst-parser
6+
57
miss_hit==0.9.29
8+
pre-commit
9+
610
notebook
711
octave_kernel

0 commit comments

Comments
 (0)