docgenerator 2.1.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docgenerator.rb +18 -18
- data/lib/docgenerator/characters.rb +1 -0
- data/lib/docgenerator/css.rb +5 -0
- data/lib/docgenerator/document.rb +7 -2
- data/lib/docgenerator/element.rb +2 -2
- data/lib/docgenerator/elements.rb +69 -2
- data/lib/docgenerator/index.rb +1 -1
- data/lib/docgenerator/packages/listings.rb +94 -94
- data/lib/docgenerator/packages/multicol.rb +1 -1
- data/lib/docgenerator/packages/pdfpages.rb +2 -1
- data/lib/docgenerator/packages/rubycode4doc.rb +173 -172
- data/lib/docgenerator/packages/struktex.rb +395 -379
- data/lib/docgenerator/packages/todonotes.rb +2 -2
- data/lib/docgenerator/packages/url.rb +4 -0
- data/lib/docgenerator/sections.rb +24 -2
- data/lib/docgenerator/tabular.rb +59 -14
- data/lib/docgenerator/templates/docgenerator_template.rb +1 -0
- data/lib/docgenerator/templates/docgenerator_template.yaml +30 -1
- data/lib/docgenerator/version.rb +13 -1
- data/meta_test_and_doc/build__meta.rb +3 -10
- data/meta_test_and_doc/build_doc.rb +4 -2
- data/meta_test_and_doc/build_test.rb +21 -17
- data/meta_test_and_doc/manpages/images.rb +152 -0
- data/unittest/expected/test_document_toc_article.latex +6 -6
- data/unittest/expected_struktex/test_struktex_krug.creole +5 -5
- data/unittest/expected_struktex/test_struktex_krug.wiki +5 -5
- data/unittest/expected_struktex/test_struktex_statement.creole +4 -4
- data/unittest/expected_struktex/test_struktex_statement.wiki +4 -4
- data/unittest/expected_templates/test_report_utf8.tex +34 -0
- data/unittest/expected_templates/test_standalone.tex +2 -1
- data/unittest/unittest_docgenerator.rb +37 -30
- data/unittest/unittest_docgenerator_characters.rb +113 -60
- data/unittest/unittest_docgenerator_runtex.rb +16 -12
- data/unittest/unittest_packages_multicol.rb +4 -9
- data/unittest/unittest_packages_struktex.rb +66 -90
- data/unittest/unittest_rubycode4doc.rb +38 -241
- data/unittest/unittest_templates.rb +4 -8
- metadata +23 -560
- data/examples/creole_example.rb +0 -81
- data/examples/creole_example_footnote.rb +0 -67
- data/examples/creole_example_new_plugin.rb +0 -51
- data/examples/creole_example_placeholder.rb +0 -77
- data/examples/creole_example_rail.rb +0 -154
- data/examples/creole_example_rubycode.rb +0 -144
- data/examples/creole_example_struktex.rb +0 -169
- data/examples/creole_example_tabular.rb +0 -97
- data/examples/wiki2docgenerator_example.rb +0 -299
- data/lib/creole/creole2doc.rb +0 -954
- data/lib/creole/creole_characters.rb +0 -120
- data/lib/creole/creole_inclusion_and_plugins.rb +0 -96
- data/lib/creole/creole_inclusions.rb +0 -154
- data/lib/creole/creole_placeholder.rb +0 -171
- data/lib/creole/creole_plugins.rb +0 -230
- data/lib/creole/creole_tabular.rb +0 -401
- data/lib/creole/plugins/rail.rb +0 -181
- data/lib/creole/plugins/rubycode4creole.rb +0 -136
- data/lib/creole/plugins/struktex.rb +0 -59
- data/lib/creole/plugins/todonotes.rb +0 -77
- data/lib/wiki2doc/plugins/rubycode4wiki.rb +0 -53
- data/lib/wiki2doc/plugins/struktex.rb +0 -12
- data/lib/wiki2doc/wiki2docgenerator.rb +0 -1276
- data/lib/wiki2doc/wikimedia_document.rb +0 -24
- data/meta_test_and_doc/manpages/packages.rb +0 -13
- data/unittest/Red_Flower.jpg +0 -0
- data/unittest/creole1.0test.txt +0 -128
- data/unittest/creole_testtext.creole +0 -11
- data/unittest/expected_creole/test_creole.html +0 -3
- data/unittest/expected_creole/test_creole_characters_all.creole +0 -28
- data/unittest/expected_creole/test_creole_characters_all.html +0 -18
- data/unittest/expected_creole/test_creole_characters_all.latex +0 -36
- data/unittest/expected_creole/test_creole_characters_special.html +0 -10
- data/unittest/expected_creole/test_creole_characters_special.latex +0 -18
- data/unittest/expected_creole/test_creole_comment.context +0 -11
- data/unittest/expected_creole/test_creole_comment.creole +0 -12
- data/unittest/expected_creole/test_creole_comment.html +0 -9
- data/unittest/expected_creole/test_creole_comment.latex +0 -11
- data/unittest/expected_creole/test_creole_countdown.html +0 -3
- data/unittest/expected_creole/test_creole_countdown.latex +0 -4
- data/unittest/expected_creole/test_creole_creole1.0test.html +0 -182
- data/unittest/expected_creole/test_creole_creole1.0test.latex +0 -253
- data/unittest/expected_creole/test_creole_creole1.0test.text +0 -160
- data/unittest/expected_creole/test_creole_footnotes.html +0 -9
- data/unittest/expected_creole/test_creole_footnotes.latex +0 -14
- data/unittest/expected_creole/test_creole_footnotes_groupid.html +0 -15
- data/unittest/expected_creole/test_creole_footnotes_label.html +0 -9
- data/unittest/expected_creole/test_creole_headings.html +0 -17
- data/unittest/expected_creole/test_creole_headings.latex +0 -19
- data/unittest/expected_creole/test_creole_headings.text +0 -48
- data/unittest/expected_creole/test_creole_headings.wiki +0 -37
- data/unittest/expected_creole/test_creole_hr.html +0 -7
- data/unittest/expected_creole/test_creole_hr.latex +0 -9
- data/unittest/expected_creole/test_creole_hr.text +0 -4
- data/unittest/expected_creole/test_creole_ignore.html +0 -3
- data/unittest/expected_creole/test_creole_ignore.latex +0 -4
- data/unittest/expected_creole/test_creole_ignore.text +0 -2
- data/unittest/expected_creole/test_creole_inline.html +0 -3
- data/unittest/expected_creole/test_creole_inline.latex +0 -4
- data/unittest/expected_creole/test_creole_inline.text +0 -2
- data/unittest/expected_creole/test_creole_inline_apostroph.html +0 -6
- data/unittest/expected_creole/test_creole_inline_apostroph.latex +0 -8
- data/unittest/expected_creole/test_creole_inline_apostroph.text +0 -4
- data/unittest/expected_creole/test_creole_inline_ruby.html +0 -12
- data/unittest/expected_creole/test_creole_inline_ruby.latex +0 -20
- data/unittest/expected_creole/test_creole_inline_ruby_raw.html +0 -6
- data/unittest/expected_creole/test_creole_inline_ruby_raw.latex +0 -8
- data/unittest/expected_creole/test_creole_input.normsource +0 -25
- data/unittest/expected_creole/test_creole_input.normsource_1.8 +0 -23
- data/unittest/expected_creole/test_creole_input_file_simple.html +0 -15
- data/unittest/expected_creole/test_creole_input_file_simple_readlines.html +0 -15
- data/unittest/expected_creole/test_creole_label.html +0 -12
- data/unittest/expected_creole/test_creole_label.latex +0 -15
- data/unittest/expected_creole/test_creole_line_break.html +0 -6
- data/unittest/expected_creole/test_creole_line_break.latex +0 -8
- data/unittest/expected_creole/test_creole_links_explicit_internal.html +0 -6
- data/unittest/expected_creole/test_creole_links_explicit_internal.text +0 -4
- data/unittest/expected_creole/test_creole_links_explicit_with_em.html +0 -3
- data/unittest/expected_creole/test_creole_links_explicit_with_em.latex +0 -4
- data/unittest/expected_creole/test_creole_links_explicit_with_em.text +0 -2
- data/unittest/expected_creole/test_creole_links_external.html +0 -6
- data/unittest/expected_creole/test_creole_links_external.latex +0 -8
- data/unittest/expected_creole/test_creole_links_external.text +0 -4
- data/unittest/expected_creole/test_creole_links_external_implicit.html +0 -9
- data/unittest/expected_creole/test_creole_links_external_implicit.latex +0 -12
- data/unittest/expected_creole/test_creole_links_external_implicit.text +0 -6
- data/unittest/expected_creole/test_creole_links_file.html +0 -6
- data/unittest/expected_creole/test_creole_links_file.latex +0 -8
- data/unittest/expected_creole/test_creole_links_file.text +0 -4
- data/unittest/expected_creole/test_creole_links_implicit_end.creole +0 -4
- data/unittest/expected_creole/test_creole_links_implicit_end.html +0 -3
- data/unittest/expected_creole/test_creole_links_implicit_end.latex +0 -4
- data/unittest/expected_creole/test_creole_list_ol.html +0 -12
- data/unittest/expected_creole/test_creole_list_ol.latex +0 -22
- data/unittest/expected_creole/test_creole_list_ol_after_ul.html +0 -12
- data/unittest/expected_creole/test_creole_list_ol_after_ul.latex +0 -20
- data/unittest/expected_creole/test_creole_list_ol_after_ul.text +0 -6
- data/unittest/expected_creole/test_creole_list_ol_ul.html +0 -15
- data/unittest/expected_creole/test_creole_list_ol_ul.latex +0 -26
- data/unittest/expected_creole/test_creole_list_ul.html +0 -22
- data/unittest/expected_creole/test_creole_list_ul.latex +0 -40
- data/unittest/expected_creole/test_creole_list_ul.normsource +0 -89
- data/unittest/expected_creole/test_creole_list_ul.normsource_1.8 +0 -83
- data/unittest/expected_creole/test_creole_list_ul_too_much.html +0 -24
- data/unittest/expected_creole/test_creole_list_ul_too_much.latex +0 -44
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.html +0 -6
- data/unittest/expected_creole/test_creole_list_ulul_without_ul.latex +0 -12
- data/unittest/expected_creole/test_creole_mix_titles_list.html +0 -10
- data/unittest/expected_creole/test_creole_mix_titles_list.latex +0 -18
- data/unittest/expected_creole/test_creole_mix_titles_list.text +0 -12
- data/unittest/expected_creole/test_creole_newline.html +0 -9
- data/unittest/expected_creole/test_creole_newline.latex +0 -11
- data/unittest/expected_creole/test_creole_newline.text +0 -7
- data/unittest/expected_creole/test_creole_paragraphs.html +0 -6
- data/unittest/expected_creole/test_creole_paragraphs.latex +0 -8
- data/unittest/expected_creole/test_creole_paragraphs.normsource +0 -29
- data/unittest/expected_creole/test_creole_paragraphs.normsource_1.8 +0 -27
- data/unittest/expected_creole/test_creole_paragraphs.text +0 -4
- data/unittest/expected_creole/test_creole_paragraphs.wiki +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap.html +0 -5
- data/unittest/expected_creole/test_creole_paragraphs_wrap.latex +0 -6
- data/unittest/expected_creole/test_creole_paragraphs_wrap.text +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap.wiki +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.html +0 -9
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.latex +0 -11
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.text +0 -7
- data/unittest/expected_creole/test_creole_paragraphs_wrap0.wiki +0 -7
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.html +0 -5
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.latex +0 -6
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.text +0 -4
- data/unittest/expected_creole/test_creole_paragraphs_wrap60.wiki +0 -4
- data/unittest/expected_creole/test_creole_picture_link.html +0 -6
- data/unittest/expected_creole/test_creole_pictures.html +0 -10
- data/unittest/expected_creole/test_creole_pictures.latex +0 -13
- data/unittest/expected_creole/test_creole_pictures_css.html +0 -6
- data/unittest/expected_creole/test_creole_pictures_css.latex +0 -8
- data/unittest/expected_creole/test_creole_pictures_imgclass.html +0 -6
- data/unittest/expected_creole/test_creole_pictures_imgclass.latex +0 -8
- data/unittest/expected_creole/test_creole_pictures_longdesc.html +0 -3
- data/unittest/expected_creole/test_creole_pictures_width.html +0 -3
- data/unittest/expected_creole/test_creole_pictures_width.latex +0 -4
- data/unittest/expected_creole/test_creole_placeholders_html.html +0 -7
- data/unittest/expected_creole/test_creole_placeholders_html.latex +0 -8
- data/unittest/expected_creole/test_creole_placeholders_html.text +0 -4
- data/unittest/expected_creole/test_creole_placeholders_latex.html +0 -6
- data/unittest/expected_creole/test_creole_placeholders_latex.latex +0 -9
- data/unittest/expected_creole/test_creole_placeholders_latex.text +0 -4
- data/unittest/expected_creole/test_creole_short_html.html +0 -3
- data/unittest/expected_creole/test_creole_short_html.latex +0 -4
- data/unittest/expected_creole/test_creole_short_html.text +0 -2
- data/unittest/expected_creole/test_creole_shy.creole +0 -6
- data/unittest/expected_creole/test_creole_shy.html +0 -6
- data/unittest/expected_creole/test_creole_shy.latex +0 -8
- data/unittest/expected_creole/test_creole_shy.text +0 -4
- data/unittest/expected_creole/test_creole_tabular.creole +0 -22
- data/unittest/expected_creole/test_creole_tabular.html +0 -20
- data/unittest/expected_creole/test_creole_tabular.latex +0 -22
- data/unittest/expected_creole/test_creole_tabular_creole.creole +0 -19
- data/unittest/expected_creole/test_creole_tabular_creole.html +0 -18
- data/unittest/expected_creole/test_creole_tabular_creole.latex +0 -19
- data/unittest/expected_creole/test_creole_tabular_css.creole +0 -24
- data/unittest/expected_creole/test_creole_tabular_css.html +0 -20
- data/unittest/expected_creole/test_creole_tabular_css.latex +0 -22
- data/unittest/expected_creole/test_creole_tabular_multicols.creole +0 -16
- data/unittest/expected_creole/test_creole_tabular_multicols.html +0 -14
- data/unittest/expected_creole/test_creole_tabular_multicols.latex +0 -16
- data/unittest/expected_creole/test_creole_tabular_row_parameters.latex +0 -22
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.creole +0 -21
- data/unittest/expected_creole/test_creole_tabular_with_cell_option.html +0 -20
- data/unittest/expected_creole/test_creole_toc.html +0 -13
- data/unittest/expected_creole/test_creole_toc.latex +0 -22
- data/unittest/expected_creole/test_creole_toc.text +0 -4
- data/unittest/expected_creole/test_creole_toc_level.html +0 -7
- data/unittest/expected_creole/test_creole_toc_level.latex +0 -10
- data/unittest/expected_creole/test_creole_toc_level.text +0 -3
- data/unittest/expected_creole/test_creole_toc_level_text.html +0 -8
- data/unittest/expected_creole/test_creole_toc_level_text.latex +0 -9
- data/unittest/expected_creole/test_creole_toc_text.html +0 -5
- data/unittest/expected_creole/test_creole_toc_text.latex +0 -5
- data/unittest/expected_creole/test_creole_ul_multiple_line.html +0 -7
- data/unittest/expected_creole/test_creole_ul_multiple_line.latex +0 -14
- data/unittest/expected_creole/test_creole_ul_with_blank.html +0 -11
- data/unittest/expected_creole/test_creole_ul_with_blank.latex +0 -20
- data/unittest/expected_creole/test_creole_ul_with_bold.creole +0 -0
- data/unittest/expected_creole/test_creole_ul_with_bold.html +0 -11
- data/unittest/expected_creole/test_creole_ul_with_bold.latex +0 -18
- data/unittest/expected_creole/test_creole_ul_with_bold.text +0 -7
- data/unittest/expected_creole/test_creole_verbatim.html +0 -25
- data/unittest/expected_creole/test_creole_verbatim.latex +0 -33
- data/unittest/expected_creole/test_creole_verbatim.text +0 -17
- data/unittest/expected_creole/test_creole_verbatim_inline.html +0 -6
- data/unittest/expected_creole/test_creole_verbatim_inline.latex +0 -8
- data/unittest/expected_creole/test_creole_verbatim_inline_at_start.html +0 -6
- data/unittest/expected_creole/test_creole_verbatim_inline_at_start.latex +0 -8
- data/unittest/expected_creole_rail/test_rail_creole_object.tex +0 -33
- data/unittest/expected_creole_rail/test_rail_creole_placeholder.tex +0 -40
- data/unittest/expected_rubycode4doc/creole_complete.html +0 -26
- data/unittest/expected_rubycode4doc/creole_complete.tex +0 -40
- data/unittest/expected_rubycode4doc/creole_in_tab.html +0 -4
- data/unittest/expected_rubycode4doc/creole_in_tab.tex +0 -6
- data/unittest/expected_rubycode4doc/creole_inline_ruby.html +0 -7
- data/unittest/expected_rubycode4doc/creole_output.html +0 -2
- data/unittest/expected_rubycode4doc/creole_output.tex +0 -4
- data/unittest/expected_rubycode4doc/creole_rubycode.html +0 -1
- data/unittest/expected_rubycode4doc/creole_rubycode.tex +0 -3
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.html +0 -1
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated.tex +0 -3
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.html +0 -3
- data/unittest/expected_rubycode4doc/creole_rubycode_evaluated_listings.tex +0 -5
- data/unittest/expected_rubycode4doc/wiki_1.html +0 -8
- data/unittest/expected_rubycode4doc/wiki_2.html +0 -8
- data/unittest/expected_rubycode4doc/wiki_3.html +0 -9
- data/unittest/expected_rubycode4doc/wiki_immediate_1.html +0 -5
- data/unittest/expected_rubycode4doc/wiki_immediate_2.html +0 -5
- data/unittest/expected_rubycode4doc/wiki_immediate_3.html +0 -8
- data/unittest/expected_rubycode4doc/wiki_immediate_full.html +0 -21
- data/unittest/expected_wikimedia/test_wiki.html +0 -6
- data/unittest/expected_wikimedia/test_wiki.latex +0 -12
- data/unittest/expected_wikimedia/test_wiki.text +0 -14
- data/unittest/expected_wikimedia/test_wiki.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_description.html +0 -7
- data/unittest/expected_wikimedia/test_wiki_description.latex +0 -11
- data/unittest/expected_wikimedia/test_wiki_description.text +0 -6
- data/unittest/expected_wikimedia/test_wiki_description.wiki +0 -6
- data/unittest/expected_wikimedia/test_wiki_footnote.html +0 -8
- data/unittest/expected_wikimedia/test_wiki_footnote.latex +0 -17
- data/unittest/expected_wikimedia/test_wiki_footnote.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_footnote.wiki +0 -10
- data/unittest/expected_wikimedia/test_wiki_footnote_2.html +0 -8
- data/unittest/expected_wikimedia/test_wiki_footnote_groupid.html +0 -21
- data/unittest/expected_wikimedia/test_wiki_html_code.html +0 -7
- data/unittest/expected_wikimedia/test_wiki_html_code.latex +0 -10
- data/unittest/expected_wikimedia/test_wiki_html_code.text +0 -6
- data/unittest/expected_wikimedia/test_wiki_html_code.wiki +0 -6
- data/unittest/expected_wikimedia/test_wiki_inline.html +0 -6
- data/unittest/expected_wikimedia/test_wiki_inline.latex +0 -12
- data/unittest/expected_wikimedia/test_wiki_inline.text +0 -8
- data/unittest/expected_wikimedia/test_wiki_inline.wiki +0 -8
- data/unittest/expected_wikimedia/test_wiki_label.html +0 -6
- data/unittest/expected_wikimedia/test_wiki_link.html +0 -8
- data/unittest/expected_wikimedia/test_wiki_link.latex +0 -17
- data/unittest/expected_wikimedia/test_wiki_link.wiki +0 -11
- data/unittest/expected_wikimedia/test_wiki_list_ol.html +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ol.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_list_ol.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ol.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.html +0 -16
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.latex +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.text +0 -8
- data/unittest/expected_wikimedia/test_wiki_list_ol_after_ul.wiki +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.html +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ol_ul.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_list_ul.html +0 -24
- data/unittest/expected_wikimedia/test_wiki_list_ul.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_list_ul.text +0 -10
- data/unittest/expected_wikimedia/test_wiki_list_ul.wiki +0 -12
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.html +0 -39
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.latex +0 -51
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.text +0 -11
- data/unittest/expected_wikimedia/test_wiki_list_ul_too_much.wiki +0 -15
- data/unittest/expected_wikimedia/test_wiki_picture.html +0 -55
- data/unittest/expected_wikimedia/test_wiki_picture.latex +0 -76
- data/unittest/expected_wikimedia/test_wiki_picture_thumb.html +0 -5
- data/unittest/expected_wikimedia/test_wiki_tab1.html +0 -30
- data/unittest/expected_wikimedia/test_wiki_tab1.latex +0 -30
- data/unittest/expected_wikimedia/test_wiki_tab1.wiki +0 -29
- data/unittest/expected_wikimedia/test_wiki_textformatting.html +0 -7
- data/unittest/expected_wikimedia/test_wiki_textformatting.latex +0 -16
- data/unittest/expected_wikimedia/test_wiki_textformatting.text +0 -11
- data/unittest/expected_wikimedia/test_wiki_textformatting.wiki +0 -9
- data/unittest/expected_wikimedia/test_wiki_toc.html +0 -9
- data/unittest/expected_wikimedia/test_wiki_toc.latex +0 -18
- data/unittest/expected_wikimedia/test_wiki_toc.text +0 -21
- data/unittest/expected_wikimedia/test_wiki_toc.wiki +0 -18
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.html +0 -18
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.latex +0 -19
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.text +0 -6
- data/unittest/expected_wikimedia/test_wiki_ul_multiple_line.wiki +0 -7
- data/unittest/unittest_creole.rb +0 -1361
- data/unittest/unittest_creole_placeholders.rb +0 -150
- data/unittest/unittest_creole_plugin_rail.rb +0 -147
- data/unittest/unittest_creole_tabular.rb +0 -207
- data/unittest/unittest_wikimedia.rb +0 -479
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'wiki2doc/wiki2docgenerator'
|
2
|
-
|
3
|
-
module Docgenerator
|
4
|
-
module Wikimedia
|
5
|
-
=begin rdoc
|
6
|
-
Shortcut to create wikimedia based documents.
|
7
|
-
=end
|
8
|
-
class Wikidoc < Document
|
9
|
-
def initialize()
|
10
|
-
super()
|
11
|
-
#~ @wiki = Wikitext.new( )
|
12
|
-
@wiki = Wikitext.new( WIKI_INLINE_REPLACEMENTS )
|
13
|
-
end
|
14
|
-
attr_reader :wiki
|
15
|
-
def << (content)
|
16
|
-
@wiki << content
|
17
|
-
end
|
18
|
-
def save(filename, options => { :overwrite => false })
|
19
|
-
@body << @wiki.to_element
|
20
|
-
super
|
21
|
-
end
|
22
|
-
end #Wikidoc
|
23
|
-
end #module Wikimedia
|
24
|
-
end #module Docgenerator
|
@@ -1,13 +0,0 @@
|
|
1
|
-
=begin rdoc
|
2
|
-
Generated manpages for elements.
|
3
|
-
|
4
|
-
This document does not contain the implementation od code documentation.
|
5
|
-
|
6
|
-
This document is the source for a manpage for usage of Docgenerator elements.
|
7
|
-
|
8
|
-
The following Element are documented in this document:
|
9
|
-
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
#
|
data/unittest/Red_Flower.jpg
DELETED
Binary file
|
data/unittest/creole1.0test.txt
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
= Top-level heading (1)
|
2
|
-
== This a test for creole 0.1 (2)
|
3
|
-
=== This is a Subheading (3)
|
4
|
-
==== Subsub (4)
|
5
|
-
===== Subsubsub (5)
|
6
|
-
|
7
|
-
The ending equal signs should not be displayed:
|
8
|
-
|
9
|
-
= Top-level heading (1) =
|
10
|
-
== This a test for creole 0.1 (2) ==
|
11
|
-
=== This is a Subheading (3) ===
|
12
|
-
==== Subsub (4) ====
|
13
|
-
===== Subsubsub (5) =====
|
14
|
-
|
15
|
-
|
16
|
-
You can make things **bold** or //italic// or **//both//** or //**both**//.
|
17
|
-
|
18
|
-
Character formatting extends across line breaks: **bold,
|
19
|
-
this is still bold. This line deliberately does not end in star-star.
|
20
|
-
|
21
|
-
Not bold. Character formatting does not cross paragraph boundaries.
|
22
|
-
|
23
|
-
You can use [[internal links]] or [[http://www.wikicreole.org|external links]],
|
24
|
-
give the link a [[internal links|different]] name.
|
25
|
-
|
26
|
-
Here's another sentence: This wisdom is taken from [[Ward Cunningham's]]
|
27
|
-
[[http://www.c2.com/doc/wikisym/WikiSym2006.pdf|Presentation at the Wikisym 06]].
|
28
|
-
|
29
|
-
Here's a external link without a description: [[http://www.wikicreole.org]]
|
30
|
-
|
31
|
-
Be careful that italic links are rendered properly: //[[http://my.book.example/|My Book Title]]//
|
32
|
-
|
33
|
-
Free links without braces should be rendered as well, like http://www.wikicreole.org/ and http://www.wikicreole.org/users/~example.
|
34
|
-
|
35
|
-
Creole1.0 specifies that http://bar and ftp://bar should not render italic,
|
36
|
-
something like foo://bar should render as italic.
|
37
|
-
|
38
|
-
You can use this to draw a line to separate the page:
|
39
|
-
----
|
40
|
-
|
41
|
-
You can use lists, start it at the first column for now, please...
|
42
|
-
|
43
|
-
unnumbered lists are like
|
44
|
-
* item a
|
45
|
-
* item b
|
46
|
-
* **bold item c**
|
47
|
-
|
48
|
-
blank space is also permitted before lists like:
|
49
|
-
* item a
|
50
|
-
* item b
|
51
|
-
* item c
|
52
|
-
** item c.a
|
53
|
-
|
54
|
-
or you can number them
|
55
|
-
# [[item 1]]
|
56
|
-
# item 2
|
57
|
-
# // italic item 3 //
|
58
|
-
## item 3.1
|
59
|
-
## item 3.2
|
60
|
-
|
61
|
-
up to five levels
|
62
|
-
* 1
|
63
|
-
** 2
|
64
|
-
*** 3
|
65
|
-
**** 4
|
66
|
-
***** 5
|
67
|
-
|
68
|
-
* You can have
|
69
|
-
multiline list items
|
70
|
-
* this is a second multiline
|
71
|
-
list item
|
72
|
-
|
73
|
-
You can use nowiki syntax if you would like do stuff like this:
|
74
|
-
|
75
|
-
{{{
|
76
|
-
Guitar Chord C:
|
77
|
-
|
78
|
-
||---|---|---|
|
79
|
-
||-0-|---|---|
|
80
|
-
||---|---|---|
|
81
|
-
||---|-0-|---|
|
82
|
-
||---|---|-0-|
|
83
|
-
||---|---|---|
|
84
|
-
}}}
|
85
|
-
|
86
|
-
You can also use it inline nowiki {{{ in a sentence }}} like this.
|
87
|
-
|
88
|
-
= Escapes =
|
89
|
-
Normal Link: http://wikicreole.org/ - now same link, but escaped: ~http://wikicreole.org/
|
90
|
-
|
91
|
-
Normal asterisks: ~**not bold~**
|
92
|
-
|
93
|
-
a tilde alone: ~
|
94
|
-
|
95
|
-
a tilde escapes itself: ~~xxx
|
96
|
-
|
97
|
-
=== Creole 0.2 ===
|
98
|
-
|
99
|
-
This should be a flower with the ALT text "this is a flower" if your wiki supports ALT text on images:
|
100
|
-
|
101
|
-
{{Red_Flower.jpg|here is a red flower}}
|
102
|
-
|
103
|
-
=== Creole 0.4 ===
|
104
|
-
|
105
|
-
Tables are done like this:
|
106
|
-
|
107
|
-
|=header col1|=header col2|
|
108
|
-
|col1|col2|
|
109
|
-
|you |can |
|
110
|
-
|also |align\\ it. |
|
111
|
-
|
112
|
-
You can format an address by simply forcing linebreaks:
|
113
|
-
|
114
|
-
My contact dates:\\
|
115
|
-
Phone: xyz\\
|
116
|
-
Fax: +45\\
|
117
|
-
Mobile: abc
|
118
|
-
|
119
|
-
=== Creole 0.5 ===
|
120
|
-
|
121
|
-
|= Header title |= Another header title |
|
122
|
-
| {{{ //not italic text// }}} | {{{ **not bold text** }}} |
|
123
|
-
| //italic text// | ** bold text ** |
|
124
|
-
|
125
|
-
=== Creole 1.0 ===
|
126
|
-
|
127
|
-
If interwiki links are setup in your wiki, this links to the WikiCreole page about Creole 1.0 test cases: [[WikiCreole:Creole1.0TestCases]].
|
128
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
* Docgenerator::Characters::Dollar: $
|
3
|
-
* Docgenerator::Characters::Percent:
|
4
|
-
|
5
|
-
* Docgenerator::Characters::Ampersand:
|
6
|
-
|
7
|
-
* Docgenerator::Characters::Rightarrow:
|
8
|
-
|
9
|
-
* Docgenerator::Characters::Leftarrow:
|
10
|
-
|
11
|
-
* Docgenerator::Characters::LLeftarrow:
|
12
|
-
|
13
|
-
* Docgenerator::Characters::RRightarrow:
|
14
|
-
|
15
|
-
* Docgenerator::Characters::Underscore: _
|
16
|
-
* Docgenerator::Characters::Sbquo:
|
17
|
-
|
18
|
-
* Docgenerator::Characters::Bdquo:
|
19
|
-
|
20
|
-
* Docgenerator::Characters::Ldots:
|
21
|
-
|
22
|
-
* Docgenerator::Characters::Rsquo:
|
23
|
-
|
24
|
-
* Docgenerator::Characters::Ldquo:
|
25
|
-
|
26
|
-
* Docgenerator::Characters::Ndash:
|
27
|
-
|
28
|
-
* Docgenerator::Characters::Mdash:
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<ul >
|
2
|
-
<li > Docgenerator::Characters::Dollar: $ </li>
|
3
|
-
<li > Docgenerator::Characters::Percent: % </li>
|
4
|
-
<li > Docgenerator::Characters::Ampersand: & </li>
|
5
|
-
<li > Docgenerator::Characters::Rightarrow: → </li>
|
6
|
-
<li > Docgenerator::Characters::Leftarrow: ← </li>
|
7
|
-
<li > Docgenerator::Characters::LLeftarrow: ⇐ </li>
|
8
|
-
<li > Docgenerator::Characters::RRightarrow: ⇒ </li>
|
9
|
-
<li > Docgenerator::Characters::Underscore: _ </li>
|
10
|
-
<li > Docgenerator::Characters::Ndash: – </li>
|
11
|
-
<li > Docgenerator::Characters::Mdash: — </li>
|
12
|
-
<li > Docgenerator::Characters::Rightsinglequotemark: ’ </li>
|
13
|
-
<li > Docgenerator::Characters::Singlelowquotemark: ‚ </li>
|
14
|
-
<li > Docgenerator::Characters::Leftdoublequotemark: “ </li>
|
15
|
-
<li > Docgenerator::Characters::Rightdoublequotemark: ” </li>
|
16
|
-
<li > Docgenerator::Characters::Doublelowquotemark: „ </li>
|
17
|
-
<li > Docgenerator::Characters::Ldots: …</li>
|
18
|
-
</ul>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
|
2
|
-
\begin{itemize}
|
3
|
-
|
4
|
-
\item Docgenerator::Characters::Dollar: $
|
5
|
-
|
6
|
-
\item Docgenerator::Characters::Percent: \%
|
7
|
-
|
8
|
-
\item Docgenerator::Characters::Ampersand: \&
|
9
|
-
|
10
|
-
\item Docgenerator::Characters::Rightarrow: \ensuremath{\rightarrow}
|
11
|
-
|
12
|
-
\item Docgenerator::Characters::Leftarrow: \ensuremath{\leftarrow}
|
13
|
-
|
14
|
-
\item Docgenerator::Characters::LLeftarrow: \ensuremath{\Leftarrow}
|
15
|
-
|
16
|
-
\item Docgenerator::Characters::RRightarrow: \ensuremath{\Rightarrow}
|
17
|
-
|
18
|
-
\item Docgenerator::Characters::Underscore: \_
|
19
|
-
|
20
|
-
\item Docgenerator::Characters::Ndash: --
|
21
|
-
|
22
|
-
\item Docgenerator::Characters::Mdash: ---
|
23
|
-
|
24
|
-
\item Docgenerator::Characters::Rightsinglequotemark: \rq
|
25
|
-
|
26
|
-
\item Docgenerator::Characters::Singlelowquotemark: \glq
|
27
|
-
|
28
|
-
\item Docgenerator::Characters::Leftdoublequotemark: \lq\lq{}
|
29
|
-
|
30
|
-
\item Docgenerator::Characters::Rightdoublequotemark: \grqq
|
31
|
-
|
32
|
-
\item Docgenerator::Characters::Doublelowquotemark: \glqq
|
33
|
-
|
34
|
-
\item Docgenerator::Characters::Ldots: \ldots
|
35
|
-
\end{itemize}
|
36
|
-
|
@@ -1,182 +0,0 @@
|
|
1
|
-
<h1 > Top-level heading (1)</h1>
|
2
|
-
<h2 > This a test for creole 0.1 (2)</h2>
|
3
|
-
<h3 > This is a Subheading (3)</h3>
|
4
|
-
<h4 > Subsub (4)</h4>
|
5
|
-
<h5 > Subsubsub (5)</h5>
|
6
|
-
<p >
|
7
|
-
The ending equal signs should not be displayed:
|
8
|
-
</p>
|
9
|
-
<h1 > Top-level heading (1) </h1>
|
10
|
-
<h2 > This a test for creole 0.1 (2) </h2>
|
11
|
-
<h3 > This is a Subheading (3) </h3>
|
12
|
-
<h4 > Subsub (4) </h4>
|
13
|
-
<h5 > Subsubsub (5) </h5>
|
14
|
-
<p >
|
15
|
-
You can make things <strong >bold</strong> or <em >italic</em> or <strong ><em >both</em></strong> or <em ><strong >both</strong></em>.
|
16
|
-
</p>
|
17
|
-
<p >
|
18
|
-
Character formatting extends across line breaks: <strong >bold,this is still bold. This line deliberately does not end in star-star. </strong>
|
19
|
-
</p>
|
20
|
-
<p >
|
21
|
-
Not bold. Character formatting does not cross paragraph boundaries.
|
22
|
-
</p>
|
23
|
-
<p >
|
24
|
-
You can use <a href = "internal links" >internal links</a> or <a href = "http://www.wikicreole.org" >external links</a>, give the link a <a href = "internal links" >different</a> name.
|
25
|
-
</p>
|
26
|
-
<p >
|
27
|
-
Here's another sentence: This wisdom is taken from <a href = "Ward Cunningham's" >Ward Cunningham's</a> <a href = "http://www.c2.com/doc/wikisym/WikiSym2006.pdf" >Presentation at the Wikisym 06</a>.
|
28
|
-
</p>
|
29
|
-
<p >
|
30
|
-
Here's a external link without a description: <a href = "http://www.wikicreole.org" >http://www.wikicreole.org</a>
|
31
|
-
</p>
|
32
|
-
<p >
|
33
|
-
Be careful that italic links are rendered properly: <em ><a href = "http://my.book.example/" >My Book Title</a></em>
|
34
|
-
</p>
|
35
|
-
<p >
|
36
|
-
Free links without braces should be rendered as well, like <a href = "http://www.wikicreole.org/">http://www.wikicreole.org/</a> and <a href = "http://www.wikicreole.org/users/~example.">http://www.wikicreole.org/users/~example.</a>
|
37
|
-
</p>
|
38
|
-
<p >
|
39
|
-
Creole1.0 specifies that <a href = "http://bar">http://bar</a> and ftp:<em >bar should not render italic,something like foo:</em>bar should render as italic.
|
40
|
-
</p>
|
41
|
-
<p >
|
42
|
-
You can use this to draw a line to separate the page:
|
43
|
-
</p>
|
44
|
-
<hr />
|
45
|
-
<p >
|
46
|
-
You can use lists, start it at the first column for now, please...
|
47
|
-
</p>
|
48
|
-
<p >
|
49
|
-
unnumbered lists are like
|
50
|
-
</p>
|
51
|
-
<ul >
|
52
|
-
<li > item a </li>
|
53
|
-
<li > item b </li>
|
54
|
-
<li > <strong >bold item c</strong> </li>
|
55
|
-
</ul>
|
56
|
-
<p >
|
57
|
-
blank space is also permitted before lists like:
|
58
|
-
</p>
|
59
|
-
<ul >
|
60
|
-
<li > item a </li>
|
61
|
-
<li > item b </li>
|
62
|
-
<li > item c <ul >
|
63
|
-
<li > item c.a </li>
|
64
|
-
</ul>
|
65
|
-
</li>
|
66
|
-
</ul>
|
67
|
-
<p >
|
68
|
-
or you can number them
|
69
|
-
</p>
|
70
|
-
<ol >
|
71
|
-
<li > <a href = "item 1" >item 1</a> </li>
|
72
|
-
<li > item 2 </li>
|
73
|
-
<li > <em >italic item 3 </em> <ol >
|
74
|
-
<li > item 3.1 </li>
|
75
|
-
<li > item 3.2 </li>
|
76
|
-
</ol>
|
77
|
-
</li>
|
78
|
-
</ol>
|
79
|
-
<p >
|
80
|
-
up to five levels
|
81
|
-
</p>
|
82
|
-
<ul >
|
83
|
-
<li > 1 <ul >
|
84
|
-
<li > 2 <ul >
|
85
|
-
<li > 3 <ul >
|
86
|
-
<li > 4 <ul >
|
87
|
-
<li > 5 </li>
|
88
|
-
</ul>
|
89
|
-
</li>
|
90
|
-
</ul>
|
91
|
-
</li>
|
92
|
-
</ul>
|
93
|
-
</li>
|
94
|
-
</ul>
|
95
|
-
</li>
|
96
|
-
</ul>
|
97
|
-
<ul >
|
98
|
-
<li > You can have multiline list items </li>
|
99
|
-
<li > this is a second multiline list item </li>
|
100
|
-
</ul>
|
101
|
-
<p >
|
102
|
-
You can use nowiki syntax if you would like do stuff like this:
|
103
|
-
</p>
|
104
|
-
<pre>
|
105
|
-
Guitar Chord C:
|
106
|
-
|
107
|
-
||---|---|---|
|
108
|
-
||-0-|---|---|
|
109
|
-
||---|---|---|
|
110
|
-
||---|-0-|---|
|
111
|
-
||---|---|-0-|
|
112
|
-
||---|---|---|
|
113
|
-
</pre>
|
114
|
-
<p >
|
115
|
-
You can also use it inline nowiki <span style = "display: inline;white-space:pre;font-family:monospace"> in a sentence </span> like this.
|
116
|
-
</p>
|
117
|
-
<h1 > Escapes </h1>
|
118
|
-
<p >
|
119
|
-
Normal Link: <a href = "http://wikicreole.org/">http://wikicreole.org/</a> - now same link, but escaped: ~<a href = "http://wikicreole.org/">http://wikicreole.org/</a>
|
120
|
-
</p>
|
121
|
-
<p >
|
122
|
-
Normal asterisks: ~<strong >not bold~</strong>
|
123
|
-
</p>
|
124
|
-
<p >
|
125
|
-
a tilde alone: ~
|
126
|
-
</p>
|
127
|
-
<p >
|
128
|
-
a tilde escapes itself: ~~xxx
|
129
|
-
</p>
|
130
|
-
<h3 > Creole 0.2 </h3>
|
131
|
-
<p >
|
132
|
-
This should be a flower with the ALT text "this is a flower" if your wiki
|
133
|
-
supports ALT text on images:
|
134
|
-
</p>
|
135
|
-
<p >
|
136
|
-
<img src = "Red_Flower.jpg" alt = "here is a red flower" />
|
137
|
-
</p>
|
138
|
-
<h3 > Creole 0.4 </h3>
|
139
|
-
<p >
|
140
|
-
Tables are done like this:
|
141
|
-
</p>
|
142
|
-
<table >
|
143
|
-
<tr ><th >header col1</th>
|
144
|
-
<th >header col2</th>
|
145
|
-
</tr>
|
146
|
-
<tr ><td >col1</td>
|
147
|
-
<td >col2</td>
|
148
|
-
</tr>
|
149
|
-
<tr ><td >you</td>
|
150
|
-
<td >can</td>
|
151
|
-
</tr>
|
152
|
-
<tr ><td >also</td>
|
153
|
-
<td >align<br />
|
154
|
-
it.</td>
|
155
|
-
</tr>
|
156
|
-
</table>
|
157
|
-
<p >
|
158
|
-
You can format an address by simply forcing linebreaks:
|
159
|
-
</p>
|
160
|
-
<p >
|
161
|
-
My contact dates:<br />
|
162
|
-
Phone: xyz<br />
|
163
|
-
Fax: +45<br />
|
164
|
-
Mobile: abc
|
165
|
-
</p>
|
166
|
-
<h3 > Creole 0.5 </h3>
|
167
|
-
<table >
|
168
|
-
<tr ><th >Header title</th>
|
169
|
-
<th >Another header title</th>
|
170
|
-
</tr>
|
171
|
-
<tr ><td ><span style = "display: inline;white-space:pre;font-family:monospace"> //not italic text// </span></td>
|
172
|
-
<td ><span style = "display: inline;white-space:pre;font-family:monospace"> **not bold text** </span></td>
|
173
|
-
</tr>
|
174
|
-
<tr ><td ><em >italic text</em></td>
|
175
|
-
<td ><strong >bold text </strong></td>
|
176
|
-
</tr>
|
177
|
-
</table>
|
178
|
-
<h3 > Creole 1.0 </h3>
|
179
|
-
<p >
|
180
|
-
If interwiki links are setup in your wiki, this links to the WikiCreole
|
181
|
-
page about Creole 1.0 test cases: <a href = "WikiCreole:Creole1.0TestCases" >WikiCreole:Creole1.0TestCases</a>.
|
182
|
-
</p>
|