[Qgis-psc] PyQGIS documentation improvements - report

Marco Bernasocchi marco at qgis.org
Sun Sep 15 23:18:32 PDT 2024


Thanks a lot Nyall for the great work

Cheers Marco

On Mon, 16 Sept 2024, 01:56 Nyall Dawson via QGIS-PSC, <
qgis-psc at lists.osgeo.org> wrote:

> Hi PSC,
>
> Thanks for the opportunity to do further work on the PyQGIS
> documentation and further improve this vital resource. Here's a quick
> summary of the improvements made during this round:
>
> 1. Correct documentation is now shown for signals. Previously, we'd
> just get a generic useless string for all signals (see eg
>
> https://qgis.org/pyqgis/3.34/core/QgsBookmarkManager.html#qgis.core.QgsBookmarkManager.bookmarkAboutToBeAdded
> ). Now, the site shows the proper documentation and signature for all
> signals. (Partially visible at
>
> https://qgis.org/pyqgis/master/core/QgsBookmarkManager.html#qgis.core.QgsBookmarkManager.bookmarkAboutToBeAdded
> ,
> with the signature display pending the next scheduled weekly update of
> the documentation site)
>
> 2. Overloaded method documentation is now correctly displayed. Compare
> before (eg
> https://web.archive.org/web/20230202072455/https://qgis.org/pyqgis/master/core/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.exportToPdf
> )
> where the two exportToPdf methods are confusingly displayed, vs now:
>
> https://qgis.org/pyqgis/master/core/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.exportToPdf
> . This fix also ensures that the full parameters and return type
> documentation are visible for all overloads.
>
> 3. Qt classes in the "base class" list and inheritance diagrams now
> link across to the Qt docs. See eg
> https://qgis.org/pyqgis/master/core/QgsFieldModel.html
>
> 4. Function objects are now properly documented, see eg
> https://qgis.org/pyqgis/master/processing/createAlgorithmDialog.html
>
> 5. Attributes in structs are now correctly documented. See eg missing
> documentation in
>
> https://qgis.org/pyqgis/3.38/core/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.ImageExportSettings
> . (The fixed documentation is pending the next weekly update)
>
> Thanks again!
> Nyall
> _______________________________________________
> QGIS-PSC mailing list
> QGIS-PSC at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-psc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-psc/attachments/20240916/fd8fbcd8/attachment.htm>


More information about the QGIS-PSC mailing list