docgenerator 0.1.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/docgenerator_example.rb +76 -160
- data/examples/docgenerator_example_footnote.rb +98 -0
- data/examples/docgenerator_example_list.rb +62 -0
- data/examples/docgenerator_example_restrictions.rb +59 -0
- data/examples/docgenerator_example_tabular.rb +68 -0
- data/examples/docgenerator_example_tripfalls.rb +57 -0
- data/examples/wiki2docgenerator_example.rb +270 -0
- data/lib/docgenerator.rb +159 -0
- data/{docgenerator_attribute.rb → lib/docgenerator_attribute.rb} +32 -7
- data/{docgenerator_characters.rb → lib/docgenerator_characters.rb} +15 -0
- data/{docgenerator_css.rb → lib/docgenerator_css.rb} +6 -1
- data/{docgenerator_document.rb → lib/docgenerator_document.rb} +92 -93
- data/{docgenerator_element.rb → lib/docgenerator_element.rb} +125 -51
- data/{docgenerator_elements.rb → lib/docgenerator_elements.rb} +40 -56
- data/{docgenerator_environments.rb → lib/docgenerator_environments.rb} +16 -10
- data/{docgenerator_footnote.rb → lib/docgenerator_footnote.rb} +44 -22
- data/{docgenerator_lists.rb → lib/docgenerator_lists.rb} +44 -39
- data/{docgenerator_sections.rb → lib/docgenerator_sections.rb} +2 -2
- data/{docgenerator_tabular.rb → lib/docgenerator_tabular.rb} +71 -39
- data/{packages → lib/packages}/docgenerator_attachfile.rb +0 -0
- data/{packages → lib/packages}/docgenerator_caption.rb +0 -0
- data/{packages → lib/packages}/docgenerator_hyperref.rb +0 -0
- data/{packages → lib/packages}/docgenerator_listings.rb +1 -2
- data/{packages → lib/packages}/docgenerator_pdfpages.rb +0 -0
- data/{packages → lib/packages}/docgenerator_scrlettr2.rb +2 -2
- data/{packages → lib/packages}/docgenerator_scrpage2.rb +0 -0
- data/{packages → lib/packages}/docgenerator_url.rb +0 -0
- data/lib/templates/docgenerator_template.rb +176 -0
- data/lib/templates/docgenerator_template.yaml +105 -0
- data/lib/wiki2doc/wiki2docgenerator.rb +1161 -0
- data/self_docgenerator.rb +161 -0
- data/unittest/expected/test_beamer_note.html +1 -0
- data/unittest/expected/test_beamer_note.latex +1 -0
- data/unittest/expected/test_beamer_note.text +1 -0
- data/unittest/expected/test_beamer_note.wiki +1 -0
- data/unittest/expected/test_block.html +1 -0
- data/unittest/expected/test_block.latex +1 -0
- data/unittest/expected/test_block.text +1 -0
- data/unittest/expected/test_block.wiki +2 -0
- data/unittest/expected/test_css.css +1 -0
- data/unittest/expected/test_css2.css +1 -0
- data/unittest/expected/test_description.html +1 -0
- data/unittest/expected/test_description.latex +3 -0
- data/unittest/expected/test_description.text +3 -0
- data/unittest/expected/test_description.wiki +3 -0
- data/unittest/expected/test_document_article.latex +23 -0
- data/unittest/expected/test_document_html.html +14 -0
- data/unittest/expected/test_document_replacement_article.latex +23 -0
- data/unittest/expected/test_document_replacement_html.html +14 -0
- data/unittest/expected/test_document_replacement_text.text +5 -0
- data/unittest/expected/test_document_replacement_wiki.wiki +5 -0
- data/unittest/expected/test_document_text.text +5 -0
- data/unittest/expected/test_document_wiki.wiki +5 -0
- data/unittest/expected/test_enumerate.html +1 -0
- data/unittest/expected/test_enumerate.latex +3 -0
- data/unittest/expected/test_enumerate.text +1 -0
- data/unittest/expected/test_enumerate.wiki +2 -0
- data/unittest/expected/test_footnote.html +5 -0
- data/unittest/expected/test_footnote.latex +11 -0
- data/unittest/expected/test_footnote.text +13 -0
- data/unittest/expected/test_footnote.wiki +11 -0
- data/unittest/expected/test_footnote_group.html +8 -0
- data/unittest/expected/test_footnote_group.latex +17 -0
- data/unittest/expected/test_footnote_group.wiki +17 -0
- data/unittest/expected/test_href.html +2 -0
- data/unittest/expected/test_href.latex +8 -0
- data/unittest/expected/test_href.text +4 -0
- data/unittest/expected/test_html_css.html +1 -0
- data/unittest/expected/test_itemize.html +1 -0
- data/unittest/expected/test_itemize.latex +3 -0
- data/unittest/expected/test_itemize.text +1 -0
- data/unittest/expected/test_itemize.wiki +2 -0
- data/unittest/expected/test_section.html +8 -0
- data/unittest/expected/test_section.latex +20 -0
- data/unittest/expected/test_section.text +24 -0
- data/unittest/expected/test_section.wiki +20 -0
- data/unittest/expected/test_tabular.html +10 -0
- data/unittest/expected/test_tabular.latex +10 -0
- data/unittest/expected/test_tabular.wiki +31 -0
- data/unittest/expected/test_tabular_doc.latex +22 -0
- data/unittest/expected/test_wiki.html +6 -0
- data/unittest/expected/test_wiki.latex +12 -0
- data/unittest/expected/test_wiki.text +14 -0
- data/unittest/expected/test_wiki.wiki +12 -0
- data/unittest/expected/test_wiki_amazon.html +10 -0
- data/unittest/expected/test_wiki_description.html +7 -0
- data/unittest/expected/test_wiki_description.latex +11 -0
- data/unittest/expected/test_wiki_description.text +6 -0
- data/unittest/expected/test_wiki_description.wiki +6 -0
- data/unittest/expected/test_wiki_footnote.html +8 -0
- data/unittest/expected/test_wiki_footnote.latex +15 -0
- data/unittest/expected/test_wiki_footnote.text +12 -0
- data/unittest/expected/test_wiki_footnote.wiki +12 -0
- data/unittest/expected/test_wiki_footnote_groupid.html +21 -0
- data/unittest/expected/test_wiki_html_code.html +7 -0
- data/unittest/expected/test_wiki_html_code.latex +10 -0
- data/unittest/expected/test_wiki_html_code.text +6 -0
- data/unittest/expected/test_wiki_html_code.wiki +6 -0
- data/unittest/expected/test_wiki_inline.html +6 -0
- data/unittest/expected/test_wiki_inline.latex +12 -0
- data/unittest/expected/test_wiki_inline.text +8 -0
- data/unittest/expected/test_wiki_inline.wiki +8 -0
- data/unittest/expected/test_wiki_label.html +6 -0
- data/unittest/expected/test_wiki_link.html +8 -0
- data/unittest/expected/test_wiki_link.latex +14 -0
- data/unittest/expected/test_wiki_link.log +3 -0
- data/unittest/expected/test_wiki_link.wiki +6 -0
- data/unittest/expected/test_wiki_list_ol.html +24 -0
- data/unittest/expected/test_wiki_list_ol.latex +30 -0
- data/unittest/expected/test_wiki_list_ol.text +10 -0
- data/unittest/expected/test_wiki_list_ol.wiki +12 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.html +16 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.latex +24 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.text +8 -0
- data/unittest/expected/test_wiki_list_ol_after_ul.wiki +10 -0
- data/unittest/expected/test_wiki_list_ol_ul.html +24 -0
- data/unittest/expected/test_wiki_list_ol_ul.latex +30 -0
- data/unittest/expected/test_wiki_list_ol_ul.text +10 -0
- data/unittest/expected/test_wiki_list_ol_ul.wiki +12 -0
- data/unittest/expected/test_wiki_list_ul.html +24 -0
- data/unittest/expected/test_wiki_list_ul.latex +30 -0
- data/unittest/expected/test_wiki_list_ul.text +10 -0
- data/unittest/expected/test_wiki_list_ul.wiki +12 -0
- data/unittest/expected/test_wiki_list_ul_too_much.html +39 -0
- data/unittest/expected/test_wiki_list_ul_too_much.latex +51 -0
- data/unittest/expected/test_wiki_list_ul_too_much.text +11 -0
- data/unittest/expected/test_wiki_list_ul_too_much.wiki +15 -0
- data/unittest/expected/test_wiki_picture.html +55 -0
- data/unittest/expected/test_wiki_picture.latex +76 -0
- data/unittest/expected/test_wiki_picture_thumb.html +5 -0
- data/unittest/expected/test_wiki_tab1.html +30 -0
- data/unittest/expected/test_wiki_tab1.latex +30 -0
- data/unittest/expected/test_wiki_tab1.wiki +29 -0
- data/unittest/expected/test_wiki_textformatting.html +7 -0
- data/unittest/expected/test_wiki_textformatting.latex +16 -0
- data/unittest/expected/test_wiki_textformatting.text +11 -0
- data/unittest/expected/test_wiki_textformatting.wiki +9 -0
- data/unittest/expected/test_wiki_toc.html +9 -0
- data/unittest/expected/test_wiki_toc.latex +18 -0
- data/unittest/expected/test_wiki_toc.text +21 -0
- data/unittest/expected/test_wiki_toc.wiki +18 -0
- data/unittest/expected/test_wiki_ul_multiple_line.html +18 -0
- data/unittest/expected/test_wiki_ul_multiple_line.latex +19 -0
- data/unittest/expected/test_wiki_ul_multiple_line.text +6 -0
- data/unittest/expected/test_wiki_ul_multiple_line.wiki +7 -0
- data/unittest/test_docgenerator.rb +85 -0
- data/unittest/unittest_docgenerator.rb +454 -0
- data/unittest/unittest_wiki2doc.rb +451 -0
- metadata +155 -31
- data/docgenerator.rb +0 -137
- data/docgenerator_template.rb +0 -103
- data/packages/docgenerator_beamer.rb +0 -250
@@ -0,0 +1,3 @@
|
|
1
|
+
WARN Wikitext: Link to unexisting local file ././unexisting_file.xx (from C:/usr/Script/DocumentGenerator/unittest)
|
2
|
+
WARN Wikitext: Link to unexisting local file ././unexisting_file.xx (from C:/usr/Script/DocumentGenerator/unittest)
|
3
|
+
WARN Wikitext: Link to unexisting local file ././unexisting_file.xx (from C:/usr/Script/DocumentGenerator/unittest)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<p >Text before
|
2
|
+
</p>
|
3
|
+
|
4
|
+
<ol >
|
5
|
+
<li >
|
6
|
+
Listentry 1
|
7
|
+
</li>
|
8
|
+
<li >
|
9
|
+
Listentry 2
|
10
|
+
<ol >
|
11
|
+
<li >
|
12
|
+
Listentry 2.1
|
13
|
+
</li>
|
14
|
+
<li >
|
15
|
+
Listentry 2.2
|
16
|
+
</li>
|
17
|
+
</ol>
|
18
|
+
</li>
|
19
|
+
<li >
|
20
|
+
Listentry 3
|
21
|
+
</li>
|
22
|
+
</ol>
|
23
|
+
<p >Text afterwords
|
24
|
+
</p>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Text before
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
\begin{enumerate}
|
9
|
+
|
10
|
+
\item Listentry 1
|
11
|
+
|
12
|
+
\item Listentry 2
|
13
|
+
|
14
|
+
\begin{enumerate}
|
15
|
+
|
16
|
+
\item Listentry 2.1
|
17
|
+
|
18
|
+
\item Listentry 2.2
|
19
|
+
\end{enumerate}
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
\item Listentry 3
|
24
|
+
\end{enumerate}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Text afterwords
|
29
|
+
|
30
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<p >Text before
|
2
|
+
</p>
|
3
|
+
|
4
|
+
<ol >
|
5
|
+
<li >
|
6
|
+
Listentry 1
|
7
|
+
</li>
|
8
|
+
<li >
|
9
|
+
Listentry 2
|
10
|
+
<ul >
|
11
|
+
<li >
|
12
|
+
Listentry 2.1
|
13
|
+
</li>
|
14
|
+
<li >
|
15
|
+
Listentry 2.2
|
16
|
+
</li>
|
17
|
+
</ul>
|
18
|
+
</li>
|
19
|
+
<li >
|
20
|
+
Listentry 3
|
21
|
+
</li>
|
22
|
+
</ol>
|
23
|
+
<p >Text afterwords
|
24
|
+
</p>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Text before
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
\begin{enumerate}
|
9
|
+
|
10
|
+
\item Listentry 1
|
11
|
+
|
12
|
+
\item Listentry 2
|
13
|
+
|
14
|
+
\begin{itemize}
|
15
|
+
|
16
|
+
\item Listentry 2.1
|
17
|
+
|
18
|
+
\item Listentry 2.2
|
19
|
+
\end{itemize}
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
\item Listentry 3
|
24
|
+
\end{enumerate}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Text afterwords
|
29
|
+
|
30
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<p >Text before
|
2
|
+
</p>
|
3
|
+
|
4
|
+
<ul >
|
5
|
+
<li >
|
6
|
+
Listentry 1
|
7
|
+
</li>
|
8
|
+
<li >
|
9
|
+
Listentry 2
|
10
|
+
<ul >
|
11
|
+
<li >
|
12
|
+
Listentry 2.1
|
13
|
+
</li>
|
14
|
+
<li >
|
15
|
+
Listentry 2.2
|
16
|
+
</li>
|
17
|
+
</ul>
|
18
|
+
</li>
|
19
|
+
<li >
|
20
|
+
Listentry 3
|
21
|
+
</li>
|
22
|
+
</ul>
|
23
|
+
<p >Text afterwords
|
24
|
+
</p>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Text before
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
\begin{itemize}
|
9
|
+
|
10
|
+
\item Listentry 1
|
11
|
+
|
12
|
+
\item Listentry 2
|
13
|
+
|
14
|
+
\begin{itemize}
|
15
|
+
|
16
|
+
\item Listentry 2.1
|
17
|
+
|
18
|
+
\item Listentry 2.2
|
19
|
+
\end{itemize}
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
\item Listentry 3
|
24
|
+
\end{itemize}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Text afterwords
|
29
|
+
|
30
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<p >Text before
|
2
|
+
</p>
|
3
|
+
|
4
|
+
<ul >
|
5
|
+
<li >
|
6
|
+
Listentry 1
|
7
|
+
</li>
|
8
|
+
<li >
|
9
|
+
Listentry 2
|
10
|
+
<ul >
|
11
|
+
<li >
|
12
|
+
Listentry 2.1
|
13
|
+
</li>
|
14
|
+
<li >
|
15
|
+
Listentry 2.2
|
16
|
+
<ul >
|
17
|
+
<li >
|
18
|
+
Listentry 2.2.1
|
19
|
+
<ul >
|
20
|
+
<li >
|
21
|
+
Listentry 2.2.1.1
|
22
|
+
<ul >
|
23
|
+
<li >
|
24
|
+
Listentry 2.2.1.1.1
|
25
|
+
</li>
|
26
|
+
</ul>
|
27
|
+
</li>
|
28
|
+
</ul>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
</li>
|
32
|
+
</ul>
|
33
|
+
</li>
|
34
|
+
<li >
|
35
|
+
Listentry 3
|
36
|
+
</li>
|
37
|
+
</ul>
|
38
|
+
<p >Text afterwords
|
39
|
+
</p>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Text before
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
\begin{itemize}
|
9
|
+
|
10
|
+
\item Listentry 1
|
11
|
+
|
12
|
+
\item Listentry 2
|
13
|
+
|
14
|
+
\begin{itemize}
|
15
|
+
|
16
|
+
\item Listentry 2.1
|
17
|
+
|
18
|
+
\item Listentry 2.2
|
19
|
+
|
20
|
+
\begin{itemize}
|
21
|
+
|
22
|
+
\item Listentry 2.2.1
|
23
|
+
|
24
|
+
\begin{itemize}
|
25
|
+
|
26
|
+
\item Listentry 2.2.1.1
|
27
|
+
|
28
|
+
\begin{itemize}
|
29
|
+
|
30
|
+
\item Listentry 2.2.1.1.1
|
31
|
+
\end{itemize}
|
32
|
+
|
33
|
+
|
34
|
+
\end{itemize}
|
35
|
+
|
36
|
+
|
37
|
+
\end{itemize}
|
38
|
+
|
39
|
+
|
40
|
+
\end{itemize}
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
\item Listentry 3
|
45
|
+
\end{itemize}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
Text afterwords
|
50
|
+
|
51
|
+
|