java -jar docGenerator.jar -input=wiki/input -output=wiki/output
index.html
file. To specify the index article, creates a index file.<index> This is the index. </index>
<article desc="an article"> This is a very simple article. </article>
<article desc="an article"> This is a very simple article. </article>
The <ref id="the article" />To reference an article title or anchor:
The <ref id="the article#the title" />To use an alternate text for the link:
The <ref id="the article#the title" desc="the description"/>
<ul> <li>first element</li> <li>second element</li> </ul>
pre
element allows to show pre-formatted text, which is text where the formatting is specified in the source. For example:<pre> first line second line </pre>Result:
first line second line
pre
element s also used to show syntax highlighted content, for example for source code. For example:<pre syntax="java"> public void toto(int i) { _ System.out.println(i); } </pre>will have the following result:
public void toto(int i) { System.out.println(i); }
This is a sentence on the first line and the second linewill produce:
br
element allows to add a line break. You can also put an empty line in the content to achieve the same thingempty
element allows to add an empty linetab
element allows to specify a tabThis is a sentence on the first line <br/> and the second linewill produce:
b
elementi
elementu
elementThis is a sentence with <i>a text in italic</i>Result:
font
element:This is a sentence with <font color="red" format="bold">a bold text in red</font> This is another sentence with <font background="yellow">a text on yellow background</font> This is another sentence with <font color="blue" background="yellow">a blue text on yellow background</font> This is a sentence with <font format="bold italic">a bold and italic text</font>Result:
<article desc="the article"> text before all chapters (article header) <title title="first chapter"/> text inside the first chapter <title level="2" title="sub chapter"/> text inside the sub-chapter <title title="second chapter"/> text inside the second chapter </article>Note that if you don't define the level, it will be assumed to be 1.
images
root, which will contain a list of image definitions<images> <image id="image1" url="hand.png" /> <image id="image2" url="crocodile.png" /> </images>We can for example have the following
img
declaration:<article desc="article1"> <img id="image1" width="20%" /> </article>
<table caption="table caption"> <tableHeader> <column>first column</column> <column>second column</column> </tableHeader> <row> <cell>name</cell> <cell>value</cell> </row> <row> <cell color="#00FF00">name2</cell> <cell>value2</cell> </row> </table>Result:
first column | second column |
---|---|
name | value |
name2 | value2 |
<todo reason="this is the reason"/>The todolist element allows to add a list of all TODOs found in the wiki (which is a list of all the
todo
elements found in the wiki with their associated article.
<article desc="an article"> This is a very simple article. <cat id="syntax" /> <cat id="structure" /> </article>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.