Help documentation is deployed as a set of files zipped up in module jar files. Help content can be any MIME typed file. The primary content types are:
In addition to help content, the Niagara Framework also supports delivering navigation data using JavaHelp files. Niagara help system is loosely compliant with version 1.0 of JavaHelp specification from Sun Microsystems. By the term "loosely"; we mean that it is compliant with some of its requirements as of version 1.0.
There are three steps in help content creation:
BPlugins designed for use by BComponents.
This documentation is standard HTML files located in the "doc" directory using a naming convention of "module-TypeName.html".help.guide.base is not defined in its lexicon. You can supply this key to point to another module.
As an example, most core modules point to docUser:help.guide.base=module://docUser/doc
build /docs/docDeveloper clean build /docs/docDeveloper build /docs/docDeveloper htmldoc build /docs/docDeveloper index
The same help content can be presented in many different ways. Each way of presenting help content is called view in JavaHelp lingo.
Three most typical views are: Table of Contents, API and Search.
We have added our own "standard" view - BajaDoc view. This is a way of presenting reference documentation for the module classes.
As a general rule, you should provide a rough TOC with your help content. This should be an XML file, named toc.xml, located in the doc/ directory. This file is required for a module to appear in the help table of contents. Here's the DTD for this file:
<!ELEMENT toc (tocitem*)> <!ATTLIST toc version CDATA #FIXED "1.0"> <!ATTLIST toc xml:lang CDATA #IMPLIED> <!-- an item --> <!ELEMENT tocitem (#PCDATA | tocitem)*> <!ATTLIST tocitem xml:lang CDATA #IMPLIED> <!ATTLIST tocitem text CDATA #IMPLIED> <!ATTLIST tocitem image CDATA #IMPLIED> <!ATTLIST tocitem target CDATA #IMPLIED>It should have <toc> as its root element, and a list of files that you want to include in the final TOC, in the logical order. Although TOC structure can be many levels deep, the most likely case will be a flat list of files.
<toc version="1.0">
<tocitem text="Overview" target="overview.html" />
<tocitem text="User Guide" target="userGuide.html" />
<tocitem text="Developer Guide" target="devGuide.html" />
</toc>
This is a list of modules with bajadoc.
This is a search view to search text.
Every module should include reference documentation. Reference documentation is built using the Niagara build tool:
build [moduleDir] bajadoc
The module must already have been built using the build [moduleDir] command.
The .bajadoc files are compiled from the Javadoc found in the source code and placed in the "libJar" directory.
Then the module is re-jarred using the new .bajadoc files.
For more information on building BajaDoc,
see build.xml in build.html.
htmldoc tool is invoked using the Niagara build tool:
build [moduleDir] htmldocThe module must already have been built using the
build [moduleDir] command.
This tool enhances HTML files. Every HTML file will be enhanced with the following:
htmldoc.copyright=Copyright © 2000-%year% Tridium Inc. All rights reserved.If your document has <p class="copyright"> tag, empty or not, the auto-generated copyright notice will not be inserted in it.
Index tool is invoked using the Niagara build tool:
build [moduleDir] indexThe module must already have been built using the
build [moduleDir] command.
Building search indices out of help content.
If you want the .bajadoc documentation to also be indexed, you should run the bajadoc command before running the index command.
During this step, all visible text inside the help content files will be broken into word tokens and stored in the binary files documents.dat, postings.dat, worddocs.dat and words.dat.
The entire module is then re-jarred, and the enhanced help content is included in the JAR produced.
Copyright © 2000-2014 Tridium Inc. All rights reserved.