Repository navigation
Commit 217f102
committed
docs: render Google-style docstrings and document datetime scale classes
The documentation build reported 3 errors and 1 warning: the docstrings
of the qwt.qtdesigner module follow the Google style (Args/Returns), which
Sphinx does not understand without the napoleon extension. Besides,
QwtDateTimeScaleDraw and QwtDateTimeScaleEngine were missing from the
reference documentation.
- doc/conf.py: enable sphinx.ext.napoleon.
- Add QwtDateTimeScaleDraw and QwtDateTimeScaleEngine to the module
documentation of qwt.scale_draw and qwt.scale_engine.
- QwtDateTimeScaleDraw.get_format/label: drop the return types from the
Returns sections (already in the signatures), as "QwtText" was an
ambiguous cross-reference.
- QwtPlotLayout.expandLineBreaks: move its "Returns:" list into the
`:return:` field, which napoleon would otherwise misinterpret.
- Changelog entry.
`sphinx -b html doc ... -W` now succeeds without any warning. Compared
with a build without napoleon, only the qtdesigner, scale and plot_layout
reference pages change.
Refs #115
Assisted-by: Claude Opus 5.51 parent b8ecfea commit 217f102
5 files changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
750 | | - | |
751 | | - | |
| 749 | + | |
752 | 750 | | |
753 | 751 | | |
754 | 752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
1294 | 1300 | | |
1295 | 1301 | | |
1296 | 1302 | | |
1297 | | - | |
| 1303 | + | |
1298 | 1304 | | |
1299 | 1305 | | |
1300 | 1306 | | |
| |||
1313 | 1319 | | |
1314 | 1320 | | |
1315 | 1321 | | |
1316 | | - | |
| 1322 | + | |
1317 | 1323 | | |
1318 | 1324 | | |
1319 | 1325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
0 commit comments