[GRASS-dev] Graphical index in manual

Hi,

in r65999 [1] I added a “graphical index”. Hopefully it is an appropriate name. Run make in man dir to get graphical_index.html.

The page itself is quite simple, just images, highlight and link title attribute (shown on hover).

The generation is quite time consuming and it won’t scale well when we add more images (which we will, right?). But if we will keep docs submitting rules [2] then it can be actually much faster.

The page itself can also to big in the future. I see three options how to solve it: lazy loading, generate thumbnails, split by some categories (probably r, v, …). Multiple approaches can be combined together to create different indexes.

There are many ways to improve it, so feel free to suggest or implement one.

Some ideas are need also for making this page more visible.

Best,

Vaclav

[1] https://trac.osgeo.org/grass/changeset/65999
https://trac.osgeo.org/grass/wiki/Submitting/Docs#Images

(attachments)

graphical_index_screenshot.png

On Mon, Aug 24, 2015 at 11:16 AM, Vaclav Petras <wenzeslaus@gmail.com>
wrote:

Hi,

in r65999 [1] I added a "graphical index". Hopefully it is an appropriate
name. Run make in man dir to get graphical_index.html.

The page itself is quite simple, just images, highlight and link title
attribute (shown on hover).

The generation is quite time consuming and it won't scale well when we add
more images (which we will, right?). But if we will keep docs submitting
rules [2] then it can be actually much faster.

The page itself can also to big in the future. I see three options how to
solve it: lazy loading, generate thumbnails, split by some categories
(probably r, v, ...). Multiple approaches can be combined together to
create different indexes.

There are many ways to improve it, so feel free to suggest or implement
one.

Some ideas are need also for making this page more visible.

Next version of Graphical index is in the repository. Still experimental
but the index now links to module family/class/category list made also with
the images. The images are individually made specifically for the index.
There are some additional links, one of them is to Manual gallery which is
the original auto-generated graphical index of all images in manual pages.

To compile, go to the man directory and run make. The dependencies in the
Makefile are not yet sorted out, so you need to remove the files which
should be updated from dist.../docs/html/.

To compare, have a look at matplotlib [1] (thumbnail) gallery [2] and
screenshot page [3] as well as non-image pages such as examples and
documentation TOC [5] and how they are linked from the main page [1]. Other
example is PCL documentation [6] or Qt Widget Gallery [7].

Vaclav

[1] http://matplotlib.org
[2] http://matplotlib.org/gallery.html
[3] http://matplotlib.org/users/screenshots.html
[4] http://matplotlib.org/examples/
[5] http://matplotlib.org/contents.html
[6] http://pointclouds.org/documentation/
[7] http://doc.qt.io/qt-5.5/gallery.html

Best,

Vaclav

[1] https://trac.osgeo.org/grass/changeset/65999
https://trac.osgeo.org/grass/wiki/Submitting/Docs#Images

(attachments)

graphical_index.jpg
raster_graphical.jpg

Hi Vaclav,

2015-08-31 5:59 GMT+02:00 Vaclav Petras <wenzeslaus@gmail.com>:

in r65999 [1] I added a "graphical index". Hopefully it is an appropriate
name. Run make in man dir to get graphical_index.html.

cool, nice improvements. Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Hi,

2015-08-31 21:15 GMT+02:00 Martin Landa <landa.martin@gmail.com>:

in r65999 [1] I added a "graphical index". Hopefully it is an appropriate
name. Run make in man dir to get graphical_index.html.

cool, nice improvements. Martin

btw, I found two small issues in wxGUI_graphical.html:

1) there is no graphical modeler, even the manual contains a screenshot
2) wxGUI introduction points to non-existing wxguiintro.html

Thanks for working on it, Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On Sun, Sep 6, 2015 at 11:39 AM, Martin Landa <landa.martin@gmail.com> wrote:

  1. there is no graphical modeler, even the manual contains a screenshot

Thanks for reporting that. There might be more issues like this. The search for pictures is not 100%, I’m using something more like a “heuristic” than an precise method. I used explicit search (all pictures in all HTML files) but it took forever (minutes, but more than you want to wait during compilation).

Please tell me if you hit something like this. I’ll try to fix it at some point.

  1. wxGUI introduction points to non-existing wxguiintro.html

Similar issues (broken intro/topic/keyword links) are all over the place (not only with the new code). Sometimes we should consider some renames, sometimes the code is wrong or naming inconsistent. Ideally this would be solved by some refactoring. Case by case fixes are possible as well.

By the way, this might be an ideal topic for beginners.

On Sun, Sep 6, 2015 at 5:03 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

> 2) wxGUI introduction points to non-existing wxguiintro.html

Similar issues (broken intro/topic/keyword links) are all over the place
(not only with the new code). Sometimes we should consider some renames,
sometimes the code is wrong or naming inconsistent. Ideally this would be
solved by some refactoring. Case by case fixes are possible as well.

Seeing r66131 and considering also what I was hitting, I think we should
write some rules somewhere. The processing description should stay in the
source code but the comments for topics and keywords should go to
Submitting/Docs page. Because: which rules do we have for keywords?

https://trac.osgeo.org/grass/changeset/66131
https://trac.osgeo.org/grass/wiki/Submitting/Docs