[QGIS-Developer] Building pyqgis doc locally
Denis Rouzaud
denis.rouzaud at gmail.com
Mon Dec 12 23:40:40 PST 2022
Le mar. 13 déc. 2022 à 08:35, matteo <matteo.ghetta at gmail.com> a écrit :
> Hi Denis,
>
> > The main issue is that the website is added to a branch (gh-pages) and
> > is versioned.
> > From time to time, I squash the commits and force push to avoid such a
> > large size (obviously, it's been a while since I didn't do it).
> > I am a bit reluctant at squashing / force pushing directly from the
> > workflow as any error would mean losing the pages (potentially losing
> > the older versions).
> >
> > By fetching only the master branch you should be better.
>
> got it, thanks
>
> > Then, building docs shouldn't take too long. What duration are you
> > experiencing?
>
> just reading sources it's more than 10 minutes while building the
> documentation is still running (so more or less 30 minutes). I don't
> understand if/where I can skip sources and compile just a small small
> part of the documentation since what I want to to is only theme related.
>
yes you can limit what you build
see https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh
either use --package core/gui/… or --class QgsVector (which will work as
QgsVector*)
> > Another approach is to do a PR on the repo, you will have a built
> > example at https://qgis.org/pyqgis/master_PRXX
> > <https://qgis.org/pyqgis/master_PRXX> (replace XX) when it's finished.
>
> and this can be done also to the forked repository right?
>
you would need to enable the pages on your repo, I am not sure this will
work out-of-the-box.
>
> > I believe it would require a bit of love to improve this workflow and
> > drop the gh-pages branch.
> >
> > I hope this helps a bit.
>
> Thanks Denis
>
> Matteo
>
>
> > Cheers,
> > Denis
> >
> >
> >
> > Le mar. 13 déc. 2022 à 08:14, matteo via QGIS-Developer
> > <qgis-developer at lists.osgeo.org <mailto:qgis-developer at lists.osgeo.org>>
>
> > a écrit :
> >
> > Hi devs,
> >
> > I've some small ideas to enhance the readthedocs theme of the pyqgis
> > documentation and I want make some local test before making a pull
> > request.
> >
> > I've cloned this repository (around 7GB?!):
> >
> > https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis>
> >
> > and then I followed the instruction of the Readme file. It seems
> > building but it is literally taking ages (./build-docs.sh
> > -qgis-build-dir /home/matteo/dev/qgis-master/).
> >
> > Am I doing something wrong or can I use some shortcut to build it?
> I'm
> > just playing with some css and eventually the config.py.in
> > <http://config.py.in> file.
> >
> > Cheers and thanks for any advice
> >
> > Matteo
> >
> > _______________________________________________
> > QGIS-Developer mailing list
> > QGIS-Developer at lists.osgeo.org <mailto:
> QGIS-Developer at lists.osgeo.org>
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221213/a5eb88f3/attachment-0001.htm>
More information about the QGIS-Developer
mailing list