Skip to content

Commit 9f33149

Browse files
committed
docfixes
1 parent 776eb39 commit 9f33149

15 files changed

+319
-40
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020
script:
2121
- mkdir docs
2222
- cd doc
23-
- sphinx-autogen *.rst
23+
# - sphinx-autogen *.rst
2424
- make html
2525
- touch _build/html/.nojekyll
2626
deploy:

doc/conf.py

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#
1313
import os
1414
import sys
15-
from numpydoc import docscrape
15+
from numpydoc import docscrape # noqa
1616
import sphinx_gallery # noqa
17-
import sphinx_bootstrap_theme
17+
import sphinx_bootstrap_theme # noqa
1818

1919
import matplotlib
2020
matplotlib.use('agg')
@@ -31,7 +31,7 @@
3131
project = 'MEEGkit'
3232
copyright = '2020, Nicolas Barascud'
3333
author = 'Nicolas Barascud'
34-
34+
version = '0.1'
3535

3636
# -- General configuration ---------------------------------------------------
3737

@@ -44,7 +44,7 @@
4444
'sphinx.ext.napoleon',
4545
'numpydoc',
4646
'sphinx_gallery.gen_gallery',
47-
]
47+
]
4848

4949
# Add any paths that contain templates here, relative to this directory.
5050
templates_path = ['_templates']
@@ -55,8 +55,14 @@
5555
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'config.py']
5656

5757
# generate autosummary even if no references
58-
autosummary_generate = True
59-
autodoc_default_flags = ['members', 'undoc-members', 'show-inheritance', 'inherited-members']
58+
# autosummary_generate = True
59+
autodoc_default_options = {
60+
'members': True,
61+
'special-members': '__init__',
62+
'undoc-members': True,
63+
'show-inheritance': True,
64+
'exclude-members': '__weakref__'
65+
}
6066
numpydoc_show_class_members = True
6167

6268
# The suffix(es) of source filenames.
@@ -80,13 +86,20 @@
8086
# so a file named "default.css" will overwrite the builtin "default.css".
8187
html_static_path = ['_static']
8288

89+
8390
html_theme_options = {
8491
# Tab name for entire site. (Default: "Site")
8592
'navbar_site_name': "MEEGkit documentation",
8693

8794
# Render the next and previous page links in navbar. (Default: true)
8895
'navbar_sidebarrel': False,
8996

97+
# Links in the navbar
98+
'navbar_links': [
99+
("Examples", "auto_examples/index"),
100+
("GitHub", "https://github.com/nbara/python-meegkit", True)
101+
],
102+
90103
# Render the current pages TOC in the navbar. (Default: true)
91104
'navbar_pagenav': True,
92105

@@ -126,7 +139,7 @@
126139
# Currently, the supported themes are:
127140
# - Bootstrap 2: https://bootswatch.com/2
128141
# - Bootstrap 3: https://bootswatch.com/3
129-
'bootswatch_theme': "simplex",
142+
'bootswatch_theme': "united",
130143

131144
# Choose Bootstrap version.
132145
# Values: "3" (default) or "2" (in quotes)

doc/modules/meegkit.asr.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
meegkit.asr
2+
===========
3+
4+
.. automodule:: meegkit.asr
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
asr_calibrate
13+
asr_process
14+
clean_windows
15+
16+
17+
18+
19+
20+
.. rubric:: Classes
21+
22+
.. autosummary::
23+
24+
ASR
25+
26+
27+
28+
29+
30+

doc/modules/meegkit.cca.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
meegkit.cca
2+
===========
3+
4+
.. automodule:: meegkit.cca
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
cca_crossvalidate
13+
mcca
14+
nt_cca
15+
whiten
16+
whiten_nt
17+
whiten_svd
18+
whiten_zca
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+

doc/modules/meegkit.detrend.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
meegkit.detrend
2+
===============
3+
4+
.. automodule:: meegkit.detrend
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
detrend
13+
reduce_ringing
14+
regress
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+

doc/modules/meegkit.dss.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
meegkit.dss
2+
===========
3+
4+
.. automodule:: meegkit.dss
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
dss0
13+
dss1
14+
dss_line
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+

doc/modules/meegkit.sns.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
meegkit.sns
2+
===========
3+
4+
.. automodule:: meegkit.sns
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
sns
13+
sns0
14+
sns1
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+

doc/modules/meegkit.star.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
meegkit.star
2+
============
3+
4+
.. automodule:: meegkit.star
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
star
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+

doc/modules/meegkit.tspca.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
meegkit.tspca
2+
=============
3+
4+
.. automodule:: meegkit.tspca
5+
6+
7+
8+
.. rubric:: Functions
9+
10+
.. autosummary::
11+
12+
tspca
13+
tsr
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+

doc/modules/meegkit.utils.rst

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
meegkit.utils
2+
=============
3+
4+
.. automodule:: meegkit.utils
5+
6+
.. autosummary::
7+
8+
covariances
9+
denoise
10+
matrix
11+
sig
12+
stats
13+
14+
|
15+
16+
----
17+
18+
Covariances
19+
-----------
20+
.. automodule:: meegkit.utils.covariances
21+
22+
.. autosummary::
23+
24+
25+
|
26+
27+
----
28+
29+
Denoising
30+
---------
31+
.. automodule:: meegkit.utils.denoise
32+
33+
.. autosummary::
34+
35+
36+
|
37+
38+
----
39+
40+
Matrix manipulation
41+
-------------------
42+
.. automodule:: meegkit.utils.matrix
43+
44+
.. autosummary::
45+
46+
47+
|
48+
49+
----
50+
51+
Signal
52+
------
53+
.. automodule:: meegkit.utils.sig
54+
55+
.. autosummary::
56+
57+
58+
|
59+
60+
----
61+
62+
63+
Statistics
64+
----------
65+
.. automodule:: meegkit.utils.stats
66+
67+
.. autosummary::

0 commit comments

Comments
 (0)