Commit 1fa09401 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE #9] created demo help vor template.

parent c97ba239
......@@ -45,8 +45,9 @@
// one line.
description = "This module shows all loaded datesets sliced using three, orthogonally oriented slices. It allows navigation through datasets to get a first impression of them. It supports all properties a data colormap allows and respects them during rendering.";
// Help file. This should be an HTML or TXT document
help ="help/index.html";
// Help file. This should be an HTML or TXT document. Only one help file is allowed.
// We currently have no help :-/
// help ="help/index.html";
// Provide a list of authors. These authors can have further information associated with them.
author = "OpenWalnut Project";
......
......@@ -45,7 +45,7 @@
// one line.
description = "This module is intended to be THE reference module. If you would like to program your own modules, you should look at this module's source.";
// Help file. This should be an HTML or TXT document
// Help file. This should be an HTML or TXT document. Only one document allowed.
help ="help/index.html";
// Provide a list of authors. These authors can have further information associated with them.
......
<html>
<body>
This is the Template module's help file. It is empty but demonstrates how to utilize the help feature.
</body>
</html>
......@@ -110,7 +110,7 @@ std::string htmlify( WModuleMetaInformation::ConstSPtr meta )
}
// Help
if( !help.empty() )
if( !help.empty() && boost::filesystem::exists( help ) )
{
ss << " <h3>HELP</h3>"
<< " <a href='" << help.string() << "'>Module Help</a>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment