[Qgis-community-team] Icon replacement QGIS docs

Alexandre Neto senhor.neto at gmail.com
Thu Jul 12 06:52:22 PDT 2018


Hi Matteo,

For brand new icons, you need to add their definitions at the
substitutions.txt file:

https://github.com/qgis/QGIS-Documentation/blob/master/source/substitutions.txt

Add the icon file (.png) to the static/common folder:

https://github.com/qgis/QGIS-Documentation/tree/master/static/common

Add the inline substituition text in the rst file.

Then, from the scripts/ folder run:

python3 find_set_subst.py

Check if any of your substitutions is missing from the substitutions.txt
file.

I have tested now, and it worked. I am on linux.

Alex

Matteo Ghetta <matteo.ghetta at faunalia.eu> escreveu no dia quinta,
12/07/2018 às 14:31:

> Hi all (Alexandre),
>
> I'm starting to work on the Training Manual and I needed to update some
> icons and screenshots.
>
> For the screenshots no problem while I'm a little bit confused with the
> icons.
>
> I thought that we can simply call in the rst file the new icon as we
> always did e.g. |addRasterLayer|) and during the make fasthtml (or
> whatever) the awesome scripts created by Alexandre would update the rst
> at the end of the file (where needed) with the correct sphinx replacement.
>
> But it is not working for me, nothing is added at the end of the file
> and the html still cannot draw the icon.
>
> So I tried to manually run the find_Set_subs.py script, but it is taking
> so much time that I've to kill if (after > 20 minutes).
>
> Am I missing something in this procedure?
>
> BTW: the only thing I did always when building locally is uncommenting
> the strings of the unwanted resources in the conf.py
>
> Thanks for any hint
>
> Cheers
>
> Matteo
>
>
> --
> Matteo Ghetta - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis
>
-- 
Alexandre Neto
---------------------
@AlexNetoGeo
http://sigsemgrilhetas.wordpress.com
http://gisunchained.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-community-team/attachments/20180712/01d7e056/attachment.html>


More information about the Qgis-community-team mailing list