File tree Expand file tree Collapse file tree 5 files changed +109
-2
lines changed Expand file tree Collapse file tree 5 files changed +109
-2
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ htmlcov/*
21
21
22
22
# docs related
23
23
docs /_build /
24
+ docs /source /_autosummary /
Original file line number Diff line number Diff line change
1
+ {{ fullname | escape | underline}}
2
+
3
+ .. currentmodule :: {{ module }}
4
+
5
+ .. autoclass :: {{ objname }}
6
+ :members:
7
+ :show-inheritance:
8
+ :inherited-members:
9
+ :special-members: __call__, __add__, __mul__
10
+
11
+ {% block methods %}
12
+ {% if methods %}
13
+ .. rubric :: {{ _('Methods') }}
14
+
15
+ .. autosummary ::
16
+ :nosignatures:
17
+ {% for item in methods %}
18
+ {%- if not item.startswith('_') %}
19
+ ~{{ name }}.{{ item }}
20
+ {%- endif -%}
21
+ {%- endfor %}
22
+ {% endif %}
23
+ {% endblock %}
24
+
25
+ {% block attributes %}
26
+ {% if attributes %}
27
+ .. rubric :: {{ _('Attributes') }}
28
+
29
+ .. autosummary ::
30
+ {% for item in attributes %}
31
+ ~{{ name }}.{{ item }}
32
+ {%- endfor %}
33
+ {% endif %}
34
+ {% endblock %}
Original file line number Diff line number Diff line change
1
+ {{ fullname | escape | underline}}
2
+
3
+ .. automodule :: {{ fullname }}
4
+
5
+ {% block attributes %}
6
+ {% if attributes %}
7
+ .. rubric :: Module attributes
8
+
9
+ .. autosummary ::
10
+ :toctree:
11
+ {% for item in attributes %}
12
+ {{ item }}
13
+ {%- endfor %}
14
+ {% endif %}
15
+ {% endblock %}
16
+
17
+ {% block functions %}
18
+ {% if functions %}
19
+ .. rubric :: {{ _('Functions') }}
20
+
21
+ .. autosummary ::
22
+ :toctree:
23
+ :nosignatures:
24
+ {% for item in functions %}
25
+ {{ item }}
26
+ {%- endfor %}
27
+ {% endif %}
28
+ {% endblock %}
29
+
30
+ {% block classes %}
31
+ {% if classes %}
32
+ .. rubric :: {{ _('Classes') }}
33
+
34
+ .. autosummary ::
35
+ :toctree:
36
+ :template: custom-class-template.rst
37
+ :nosignatures:
38
+ {% for item in classes %}
39
+ {{ item }}
40
+ {%- endfor %}
41
+ {% endif %}
42
+ {% endblock %}
43
+
44
+ {% block exceptions %}
45
+ {% if exceptions %}
46
+ .. rubric :: {{ _('Exceptions') }}
47
+
48
+ .. autosummary ::
49
+ :toctree:
50
+ {% for item in exceptions %}
51
+ {{ item }}
52
+ {%- endfor %}
53
+ {% endif %}
54
+ {% endblock %}
55
+
56
+ {% block modules %}
57
+ {% if modules %}
58
+ .. autosummary ::
59
+ :toctree:
60
+ :template: custom-module-template.rst
61
+ :recursive:
62
+ {% for item in modules %}
63
+ {{ item }}
64
+ {%- endfor %}
65
+ {% endif %}
66
+ {% endblock %}
Original file line number Diff line number Diff line change 2
2
===
3
3
4
4
.. autosummary ::
5
- :toctree: generated
5
+ :toctree: _autosummary
6
+ :template: custom-module-template.rst
7
+ :recursive:
6
8
7
9
sigmf
Original file line number Diff line number Diff line change 7
7
8
8
import datetime
9
9
import re
10
+ import sys
10
11
from pathlib import Path
11
12
12
13
# parse info from project files
16
17
init = handle .read ()
17
18
toolversion = re .search (r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]' , init ).group (1 )
18
19
specversion = re .search (r'__specification__\s*=\s*[\'"]([^\'"]*)[\'"]' , init ).group (1 )
19
- print ("DBUG" , toolversion , specversion )
20
+
21
+ # autodoc needs special pathing
22
+ sys .path .append (str (root ))
20
23
21
24
# -- Project information
22
25
35
38
"sphinx.ext.autodoc" ,
36
39
"sphinx.ext.autosummary" ,
37
40
"sphinx.ext.intersphinx" ,
41
+ "sphinx.ext.napoleon" , # allows numpy-style docstrings
38
42
]
39
43
40
44
intersphinx_mapping = {
You can’t perform that action at this time.
0 commit comments