qgis/pyqgis-api-docs-builder

Lighten `index.html` for faster loading time

Closed this issue · 3 comments

Currently, https://qgis.org/pyqgis/master/index.html takes a relatively long time to load (6s on my machine, chrome, fiber internet)
image

This index page list all pyqgis classes and discussed with other users on this page, we all use the search bar instead of scrolling in index page.
Replacing the listing with a nice welcome message like https://api.qgis.org/api/master/ would be a nice to have improvement.

Oh yes, I even had it freeze my browser for many more seconds recently during workshops.
This would be a great change.

https://github.com/qgis/pyqgis/blob/5ef7563c2ca5476f552d3fc19716780e52dba5b7/scripts/make_api_rst.py#L33-L43

Reducing the maxdepth ou tocdepth (don't know which influence what) to 1 (or 2) would be enough ?
5 is a bit overkill