<div dir="ltr"><div>Hi Matteo,</div><div><br></div><div>For brand new icons, you need to add their definitions at the substitutions.txt file:</div><div><br></div><div><a href="https://github.com/qgis/QGIS-Documentation/blob/master/source/substitutions.txt">https://github.com/qgis/QGIS-Documentation/blob/master/source/substitutions.txt</a></div><div><br></div><div>Add the icon file (.png) to the static/common folder:</div><div><br></div><div><a href="https://github.com/qgis/QGIS-Documentation/tree/master/static/common">https://github.com/qgis/QGIS-Documentation/tree/master/static/common</a></div><div><br></div><div>Add the inline substituition text in the rst file.</div><div><br></div><div>Then, from the scripts/ folder run:</div><div><br></div><div> python3 find_set_subst.py</div><div><br></div><div>Check if any of your substitutions is missing from the substitutions.txt file.</div><div><br></div><div>I have tested now, and it worked. I am on linux.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr">Matteo Ghetta <<a href="mailto:matteo.ghetta@faunalia.eu">matteo.ghetta@faunalia.eu</a>> escreveu no dia quinta, 12/07/2018 às 14:31:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all (Alexandre),<br>
<br>
I'm starting to work on the Training Manual and I needed to update some<br>
icons and screenshots.<br>
<br>
For the screenshots no problem while I'm a little bit confused with the<br>
icons.<br>
<br>
I thought that we can simply call in the rst file the new icon as we<br>
always did e.g. |addRasterLayer|) and during the make fasthtml (or<br>
whatever) the awesome scripts created by Alexandre would update the rst<br>
at the end of the file (where needed) with the correct sphinx replacement.<br>
<br>
But it is not working for me, nothing is added at the end of the file<br>
and the html still cannot draw the icon.<br>
<br>
So I tried to manually run the find_Set_subs.py script, but it is taking<br>
so much time that I've to kill if (after > 20 minutes).<br>
<br>
Am I missing something in this procedure?<br>
<br>
BTW: the only thing I did always when building locally is uncommenting<br>
the strings of the unwanted resources in the conf.py<br>
<br>
Thanks for any hint<br>
<br>
Cheers<br>
<br>
Matteo<br>
<br>
<br>
-- <br>
Matteo Ghetta - <a href="http://www.faunalia.eu" rel="noreferrer" target="_blank">www.faunalia.eu</a><br>
QGIS & PostGIS courses: <a href="http://www.faunalia.eu/training.html" rel="noreferrer" target="_blank">http://www.faunalia.eu/training.html</a><br>
<a href="https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis" rel="noreferrer" target="_blank">https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis</a><br>
</blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Alexandre Neto</div><div>---------------------</div><div>@AlexNetoGeo</div><div><a href="http://sigsemgrilhetas.wordpress.com">http://sigsemgrilhetas.wordpress.com</a></div><a href="http://gisunchained.wordpress.com">http://gisunchained.wordpress.com</a><br></div></div>