<div dir="ltr"><div>So, is it settled for Processing algorithms help? If so, we should celebrate!!<br><br></div>Then, we need to think about the rest of the help system :D<br></div><br><div class="gmail_quote"><div dir="ltr">DelazJ <<a href="mailto:delazj@gmail.com">delazj@gmail.com</a>> escreveu no dia sexta, 9/02/2018 às 12:04:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Actually, name() does not contain spacing and I think displayName is translated. So should not work as is<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-09 13:01 GMT+01:00 DelazJ <span dir="ltr"><<a href="mailto:delazj@gmail.com" target="_blank">delazj@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>Maybe we can also fix this issue on the application side: in docs, we try to give the section title the same name as the alg ie the way it's shown to user (eg "hypsometric curves"). What Sphinx does is to concatenate it with hyphen when building the url. How about doing this concatenation in helpUrl function? this way, link from QGIS will already be "helpId/groupID/algnameconcatenatedbyhyphen" --> same thing as generated by docs!<br></div>In other words, in<br><br> <span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner">algHelp = <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">QgsHelp::helpUrl</span>( <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">QStringLiteral</span>( <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-s"><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-pds">"</span>processing_algs/%1/%2.html#%3<span class="m_7704876693015458891m_-5031710742537271739gmail-pl-pds">"</span></span> ).<span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">arg</span>( <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">provider</span>()-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1 m_7704876693015458891m_-5031710742537271739gmail-x m_7704876693015458891m_-5031710742537271739gmail-x-first m_7704876693015458891m_-5031710742537271739gmail-x-last">helpId</span>(), <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">groupId</span>(), <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">name</span>() ) );<br><br></span></div><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner">replace the <span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner"><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">name</span>()</span> by something that replaces each space between the words in name() by  a hyphen</span><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner">? </span><br></div><div><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner"></span></div><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner"><br> <span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner">algHelp = <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">QgsHelp::helpUrl</span>( <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">QStringLiteral</span>( <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-s"><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-pds">"</span>processing_algs/%1/%2.html#%3<span class="m_7704876693015458891m_-5031710742537271739gmail-pl-pds">"</span></span> ).<span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">arg</span>( <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">provider</span>()-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1 m_7704876693015458891m_-5031710742537271739gmail-x m_7704876693015458891m_-5031710742537271739gmail-x-first m_7704876693015458891m_-5031710742537271739gmail-x-last">helpId</span>(), <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">groupId</span>(), <span class="m_7704876693015458891m_-5031710742537271739gmail-pl-smi">mAlgorithm</span>-><span class="m_7704876693015458891m_-5031710742537271739gmail-pl-c1">name</span>().replace (' ', '-') ) );</span><br></span></div><div><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner"><br>Does that sound correct?<br><br></span></div><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner">my 2cts,<br></span></div><span class="m_7704876693015458891m_-5031710742537271739gmail-blob-code-inner">Harrissou<br></span><div><div><div><div><div><br></div></div></div></div></div></div><div class="m_7704876693015458891HOEnZb"><div class="m_7704876693015458891h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-02-09 12:26 GMT+01:00 matteo <span dir="ltr"><<a href="mailto:matteo.ghetta@gmail.com" target="_blank">matteo.ghetta@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> but yes, it's not an anchor that is created.<br>
<br>
</span>changing the file name works fine. I have locally<br>
<br>
file:///home/matteo/lavori/QGIS/QGIS-Documentation/QGIS-Documentation/output/html/en/docs/user_manual/processing_algs/qgis/rasterterrainanalysis.html<br>
<br>
but not for anchors that are still taken from the header<br>
<br>
file:///home/matteo/lavori/QGIS/QGIS-Documentation/QGIS-Documentation/output/html/en/docs/user_manual/processing_algs/qgis/rasterterrainanalysis.html#hypsometric-curves<br>
<br>
even if the anchor name is different:<br>
<br>
.. _bla_bla_bla:<br>
<br>
Hypsometric curves<br>
------------------<br>
<div class="m_7704876693015458891m_-5031710742537271739HOEnZb"><div class="m_7704876693015458891m_-5031710742537271739h5">_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</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>