articles.xml file at the root of the archive. This XML file will refer to the html articles which can be anywhere in the archive. Note that by default there should be two additional files in this archive:index.html file also at the root of the archive, which define the default page of the help content (home page)stylesheet.css Stylesheet file in the resource directory of the archive, which define the Stylesheet to be used for the articlesHelpContent zip/jar file -- articles.xml -- resources ---- stylesheet.cssHowever, these defaults can be overriden:
articles.xml database file and can be anywhere in the archive.
include elements which specify children database indexesarticle elements which specify the name and entry path for each articlechapters element which specify the chapters in the tree and which articles they containarticleID elements which specify the articles which are at the top-level of the help (not under any chapter)ref elements which specify the ids to use for the Context-sensitive HelparticleID elements which specify the articles at the top-level of the chapter, and optionnally, a list of chapter children for the sub-chapters.
index attribute which specifies the location of the index[1]
index.htmlstyleSheet attribute which specifies the location of the StyleSheet file[2]
stylesheet.cssglossary attribute which specifies the location of the glossary file if it existsfullTextSearch attribute which specifies the full text search database[3]
<database index="myIndex.html" styleSheet="myCSS.css" glossary="glossary/html" > ... <database>
article element specifies the name of an article (as it will appear in the Help tree and in the autocompletion), and the path of the entry in the corresponding archive. For example:<article name="article 1" url="article1.html" /> <article name="article 2" url="mysubdirectory/article2.html" />In the case of a Full text search, the element can also have a "header" attribute which will be presented alongside the article name in the search results.
altTitle and title children:altTitle element specifies an alternate title which will be used in the autompletion for the article. For example:
<article name="docgenerator help feature" url="docgenhelp.html" > <altTitle name="docgenhelp" /> <altTitle name="help system" /> </article>
title element specifies titles in the article which will be used in the autompletion for the article. For example:
<article name="docgenerator help feature" url="docgenhelp.html" > <title name="API usage" id="api usage" /> <title name="Overview" id="overview" /> </article>
chapters element contain the references of the articles which are under this chapter, and optionnaly its sub-chapters. For example:<chapter name="Help System" > <chapter id="Swing" /> <articleID id="Swing help" /> </chapter> <chapter id="JavaFX" /> <articleID id="JavaFX help" /> </chapter> <articleID id="overview" /> <articleID id="api usage" /> </chapter>
articleID element refer to the name of an article defined in an article element. For example the following article:<article name="article 1" url="article1.html" />Can be referred to by:
<articleID id="article 1" />
ref element specify an ID for the Context-sensitive Help, which can refer to an article or to an article title. For example:<ref id="button2" article="button 2"/> <ref id="button3" article="several components" title="button_3"/>
<database> <article name="article 1" url="article1.html" /> <article name="article 2" url="mysubdirectory/article2.html" /> <article name="article 3" url="article3.html"> <title id="the_title" name="My title" /> </article> <chapters> <chapter name="first chapter"> <chapter name="sub-chapter"> <articleID id="article 1" /> </chapter> </chapter> <articleID id="article 2" /> </chapters> <articleID id="article 3" /> </database>
<database> <article name="article 1" url="article1.html" /> <article name="article 2" url="mysubdirectory/article2.html" /> <article name="article 3" url="article3.html"> <title id="the_title" name="My title" /> </article> <chapters> <chapter name="first chapter"> <chapter name="sub-chapter"> <articleID id="article 1" /> </chapter> </chapter> <articleID id="article 2" /> </chapters> <articleID id="article 3" /> <ref id="ref1" article="article 1" /> <ref id="ref2" article="article 3" title="the_title" /> </database>
<database> <include url="subindex.xml" /> <article name="article 1" url="article1.html" /> <article name="article 2" url="mysubdirectory/article2.html" /> <article name="article 3" url="article3.html"> <title id="the_title" name="My title" /> </article> <chapters> <chapter name="first chapter"> <chapter name="sub-chapter"> <articleID id="article 1" /> </chapter> </chapter> <articleID id="article 2" /> </chapters> <articleID id="article 3" /> </database>
<database fullTextSearch="fullTextSearch.json" > <article name="article 1" url="article1.html" header="the article"/> <article name="article 2" url="mysubdirectory/article2.html" header="the article 2" /> <article name="article 3" url="article3.html" header="the article 3" > <title id="the_title" name="My title" /> </article> <chapters> <chapter name="first chapter"> <chapter name="sub-chapter"> <articleID id="article 1" /> </chapter> </chapter> <articleID id="article 2" /> </chapters> <articleID id="article 3" /> </database>
docGeneHelpChecker.jar tool allows to check the content of a Help content archive. It checks that the XML database is valid, and that the articles which are referred exist.index.htmlstylesheet.cssdocJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.