1492 Commits

Author SHA1 Message Date
Nyall Dawson
343709f48a Always use correct \since annotation for enum values 2024-09-01 02:29:17 +10:00
Nyall Dawson
d318cdb992 Standardise some since annotations 2024-09-01 02:29:17 +10:00
Nyall Dawson
2af54ad057 Fix malformed python docstrings when enum value has \since annotation 2024-09-01 02:29:17 +10:00
Nyall Dawson
ef00e77537 [sipify] Die if copydoc is used in exposed method documentation
Sipify cannot handle this

Refs #54429
2024-08-30 10:07:04 +10:00
Nyall Dawson
a540dceae2 Move doxygen processing logic from unify_includes to doxygen_space 2024-08-30 05:47:31 +10:00
Nyall Dawson
cd60bb8f2d Port doxygen_space to python 2024-08-30 05:47:31 +10:00
Nyall Dawson
e38d577980 Catch raw bold/italic tags in docs 2024-08-30 05:47:07 +10:00
Nyall Dawson
482311b668 Don't use raw html lists in documentation 2024-08-30 05:47:07 +10:00
Nyall Dawson
a44d7419a5 No dl 2024-08-30 05:47:07 +10:00
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
1885f36c36 Move old deprecated perl script 2024-08-13 20:28:55 +10:00
Nyall Dawson
849ff14dc8 Misc updates 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