Add back mechanism for cross-tool hyperlinks.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 22 Sep 2013 18:11:56 +0000 (21:11 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 19 Nov 2013 04:49:27 +0000 (05:49 +0100)
commit4c15f7267192923dcbb12120863249c076ee175d
tree1ae00c0d51d0c3028825cf8890c30b577ed5e230
parente89e4c616092f85880eacf57956fd04dbc3dc6d8
Add back mechanism for cross-tool hyperlinks.

The exported HTML pages again can contain hyperlinks to other tools.
Instead of replicating the old functionality, made the links of the form
[gmx-distance] instead of recognizing plain text words.  This requires
all the output formats to be aware of them (not a big deal in the
current code layout), and makes it possible to define the appearance of
the links centrally instead of relying on all links being wrapped in,
e.g., [TT]...[tt].  The new link syntax is similar to Markdown implicit
links (at least Doxygen accepts them without the second []).

Also added support for [THISMODULE] tag in the help text, which expands
to the name of the current module, again allowing the appearance to be
defined centrally.

Only changed the help text for gmx-mindist to take advantage of the new
mechanism as a proof-of-concept.  Bulk work for other tools is better
done as a separate commit once the general approach is accepted.

Part of #685 and #1242.

Change-Id: Ibd263cc2c131dc18d2a5d9046fecc6b1c08734f9
src/gromacs/commandline/cmdlinehelpcontext.cpp
src/gromacs/commandline/cmdlinehelpcontext.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/cmdlinemodulemanager.h
src/gromacs/commandline/tests/cmdlinemodulemanager.cpp
src/gromacs/commandline/wman.cpp
src/gromacs/gmxana/gmx_mindist.c
src/gromacs/onlinehelp/helpwritercontext.cpp
src/gromacs/onlinehelp/helpwritercontext.h