Project

General

Profile

Documentation Strategy » History » Version 20

Detlef Hühnlein, 10/17/2012 12:55 PM

1 12 Detlef Hühnlein
h1. Document Creation Process
2 1 Detlef Hühnlein
3 18 Tobias Wich
In order to allow distributed and convenient editing using the wiki *AND* producing documents with high quality typesetting, the document creation process as depicted in the following figure is implemented. 
4 1 Detlef Hühnlein
5 13 Detlef Hühnlein
!process.png(Document Creation Process)!
6 1 Detlef Hühnlein
7
h2. Editing in Wiki 
8 13 Detlef Hühnlein
9 18 Tobias Wich
The primary editing is performed in the present Wiki, which uses the "Textile":http://en.wikipedia.org/wiki/Textile_%28markup_language%29 markup as explained "here":http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting.
10 13 Detlef Hühnlein
11 1 Detlef Hühnlein
In order to allow an automated conversion to and processing with LaTeX, the following issues MUST be considered:
12 13 Detlef Hühnlein
13
# Each Wiki-page is converted to a corresponding .tex file 
14
# h1.-h3. correspond to \section{ }-\subsubsection{ } 
15 18 Tobias Wich
# References to literature MAY be included, but they MUST be included as link with brackets [ ] around the "LABEL" (e.g. "[BSI-TR-03112-7]":http://docs.ecsec.de/BSI-TR-03112-7), where the LABEL SHOULD be defined in an appropriate BibTeX-file. 
16 1 Detlef Hühnlein
17 14 Detlef Hühnlein
h2. Export
18 1 Detlef Hühnlein
19 14 Detlef Hühnlein
The export of the Textile source to an appropriate .tex file and the provision of embedded pictures MAY be performed manually.
20
In the long turn there SHOULD be an automated export of the Wiki-pages as explained "here":http://stbuehler.de/blog/article/2011/06/04/exporting_redmine_wiki_pages.html for example.
21 1 Detlef Hühnlein
22 14 Detlef Hühnlein
23
h2. Textile to LaTeX conversion
24
25
The Textile-markup from the Wiki can be converted to LaTeX using "RedCloth":http://redcloth.org/.
26 1 Detlef Hühnlein
27 14 Detlef Hühnlein
h2. LaTeX-Post-Processing
28 17 Detlef Hühnlein
29 18 Tobias Wich
In order to support references to documents (e.g. "[BSI-TR-03112-7]":http://docs.ecsec.de/BSI-TR-03112-7), intra-Wiki-Links and the inclusion of pretty-printed XML- or Java-code, the raw LaTeX document needs to be cleaned up with "awk":https://de.wikipedia.org/wiki/Awk for example.  
30 14 Detlef Hühnlein
31 10 Detlef Hühnlein
This includes the following replacements: 
32 11 Detlef Hühnlein
33 15 Detlef Hühnlein
<pre><code>1. <pre><code class="XXX"> --> \begin{minted}[bgcolor=bg]{XXX}
34 1 Detlef Hühnlein
2. </code></pre>           --> \end{minted}
35
3. "[LABEL]":http://url    --> \cite{LABEL}
36 17 Detlef Hühnlein
4. [[WikiRef]]             --> Inserting canonical labels {file+headline} and converting Intra-Wiki-links to \ref{ } 
37 15 Detlef Hühnlein
</code></pre>
38 1 Detlef Hühnlein
39 15 Detlef Hühnlein
h2. Document Compilation
40
41
Finally the LaTeX sources are compiled to produce a nice pdf-document for example.
42 16 Detlef Hühnlein
43
h1. Document Landscape
44
45
The following documents are envisioned:
46
47 20 Detlef Hühnlein
* [[Software Architecture]] - contains a description of the software architecture of the Open eCard App
48
* [[Developer Guide]] - contains everything a developer needs to know
49
* [[Build Management System]] - contains a description of the Open eCard build management system
50
* [[Quality Manual]] - specifies all quality related aspects
51
* [[User Guide]] - contains everything a user of the Open eCard App needs to know
52
* [[Integrator Guide]] - contains everything an integrator needs to know