53 Commits

Author SHA1 Message Date
Nyall Dawson
bc52832b47 Lazily hack around markdown title underline not being long enough
Causes a bunch of warnings when building the PyQGIS docs
2024-08-28 11:58:21 +10:00
Nyall Dawson
f90a7c04b1 Raw code block should use 'text', not 'raw'
'raw' gives an error when building the PyQGIS docs
2024-08-23 09:26:18 +10:00
Nyall Dawson
3f481b568e Record header subfolders as __group__ attribute in PyQGIS classes
This will allow us to logically create subgroups for PyQGIS modules
in the API reference guide
2024-08-17 20:13:12 +10:00
Nyall Dawson
989e62a80f Handle docstrings for c++ structs
sip doesn't support the docstring directive for structs (only classes),
so patch these back in via sipify magic
2024-08-16 07:28:29 +10:00
Nyall Dawson
c23e35bb08 calculateStatistics is not unambiguously static 2024-08-14 22:08:41 +10:00
Nyall Dawson
1f27fc627a [pyqgis] Wrap unambiguously static methods in staticmethod
sip doesn't use the standard Python staticmethod type for defining
static methods, which means that standard means of testing
for a static method (like `isinstance(..., staticmethod)`) fail
with any PyQGIS static methods.

This causes issues with lint tools, which incorrectly flag
calls to QGIS static methods as missing self arguments. It also
breaks detection of static methods in the sphinx PyQGIS docs,
so all static methods are shown as non-static.

Work around this in sipify, by wrapping unambiguously static
methods in staticmethod wrappers.
2024-08-14 22:08:41 +10:00
Nyall Dawson
dc68f03f88 Be tolerant against optional sip modules 2024-08-14 13:05:46 +10:00
Nyall Dawson
8b04562ba7 Avoid fragile reg for argument removal 2024-08-14 13:05:46 +10:00
Nyall Dawson
854b474dab Simplify regex 2024-08-14 13:05:46 +10:00
Nyall Dawson
7939bcddf4 Minor cleanups 2024-08-14 13:05:46 +10:00
Nyall Dawson
5a58c9912d Lint 2024-08-14 13:05:46 +10:00
Nyall Dawson
ed19d996b2 Collect attribute docstrings for PyQGIS documentation 2024-08-14 13:05:46 +10:00
Nyall Dawson
a33c97db40 Another enum 2024-08-13 20:28:55 +10:00
Nyall Dawson
d72f69f89e Move current line to context 2024-08-13 20:28:55 +10:00
Nyall Dawson
c2f0848725 Move state to a single global context class 2024-08-13 20:28:55 +10:00
Nyall Dawson
cc8bf97092 Use Enum for visibility 2024-08-13 20:28:55 +10:00
Nyall Dawson
a87a1a8418 Indentation 2024-08-13 20:28:55 +10:00
Nyall Dawson
25b12294a2 Fix SIP_PYALTERNATIVETYPE handling 2024-08-13 20:28:55 +10:00
Nyall Dawson
60d632a400 Remove temporary hack 2024-08-13 20:28:55 +10:00
Nyall Dawson
a2048773e7 Fix test 2024-08-13 20:28:55 +10:00
Nyall Dawson
182e30ab61 Simplify regex to avoid catastrophic backtracking 2024-08-13 20:28:55 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
95df571ea7 Fix seealso handling 2024-08-13 20:28:55 +10:00
Nyall Dawson
69e3eafd16 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
52ef640901 Indentation 2024-08-13 20:28:55 +10:00
Nyall Dawson
526b89d205 Fix regex 2024-08-13 20:28:55 +10:00
Nyall Dawson
f523c3429e Fix horrible regex 2024-08-13 20:28:55 +10:00
Nyall Dawson
5f6611a47c fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
2c92b52018 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
76f95779de Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
d990de3369 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
c636f63230 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
1ca00235d6 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
c30e6abdad Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
0d2f14e10b Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
f0f9afb53e Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
5c9640ab79 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
7c65b1b85f Fix catastrophic regex 2024-08-13 20:28:55 +10:00
Nyall Dawson
7ddea7c9ca Fix 2024-08-13 20:28:55 +10:00
Nyall Dawson
6c19f6285d Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
cfde91f023 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
8b306026f1 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
9680751031 Use original quotes 2024-08-13 20:28:55 +10:00
Nyall Dawson
1ec1b6aa52 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
de3f0ff2b7 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
3b48d058b0 Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
ca40c616ed Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
13a166a74f Fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
9419f3dbfb More fixes 2024-08-13 20:28:55 +10:00
Nyall Dawson
d12e6a82de Additional fixes 2024-08-13 20:28:55 +10:00