<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 19, 2014 at 11:55 AM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
2014-04-19 17:45 GMT+02:00 Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>>:<br>
<div class=""><br>
> Anyway, I've tried different approach and here is my prototype:<br>
><br>
> <a href="https://googledrive.com/host/0B_7Sygt2HTPDamFPOEZpU0h1ZG8/r.mapcalc.html" target="_blank">https://googledrive.com/host/0B_7Sygt2HTPDamFPOEZpU0h1ZG8/r.mapcalc.html</a><br>
<br>
</div>I like your changes, two small notes:<br>
<br></blockquote><div>And do you agree to overall idea of solving this in JS (every time page is loaded) rather then Python (during compilation)? Or do you like just the CSS which is of course applicable to any HTML regardless how it was generated?</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
* GRASS GIS 7 label is too big ;-)<br></blockquote><div><br></div><div>That is true, there is a lot of space, so it can be either big, or small with white space or with some other info, not sure which, perhaps the name of the module stolen by JS from the NAME section, not sure what for GUI and other non-module pages.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
* link to GRASS 6 could point directly to the manual page of given module<br></blockquote><div><br></div><div>This is a great idea. Although, it will not work for modules not available in the other version, I like it and we should do something like this. What is unresolved about this when to put the box there, you don't want this to be shown for offline version since it is trying to solve the case when search engine returns 65 when user uses 64 or 7*.</div>

</div><br></div><div class="gmail_extra">Another thing which is different from the solution in trunk is that anchors are derived from headings which might not be 100% safe but it allows to link specific section nicely with a link which will not change unless you rename section:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://googledrive.com/host/0B_7Sygt2HTPDamFPOEZpU0h1ZG8/r.mapcalc.html#NULL_support">https://googledrive.com/host/0B_7Sygt2HTPDamFPOEZpU0h1ZG8/r.mapcalc.html#NULL_support</a><br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">While the numbered id changes when you add section (but is independed on special characters coming from math or localization):</div><div class="gmail_extra">

<br></div><div class="gmail_extra"><a href="http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#h3_10">http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#h3_10</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">

Also you can see that I just used every heading including the generated ones. Not sure what is better, sure is that NAME section looks even more strange in TOC then just as a heading, but I would ignore it because you want to go to SYNOPSIS.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Additionally, I would suggest to generate some anchors even for Flags and Parameters (Options?). This would allow to link a specific flag/option/parameter. I'm not at all sure about the format:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#expression">http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#expression</a><br></div><div class="gmail_extra">

<a href="http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#option-expression">http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#option-expression</a><br></div><div class="gmail_extra"><a href="http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#parameter-expression">http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#parameter-expression</a><br>

</div><div class="gmail_extra"><a href="http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#synopsis-expression">http://grass.osgeo.org/grass71/manuals/r.mapcalc.html#synopsis-expression</a><br></div><div class="gmail_extra">

...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Vaclav</div></div>