diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-12-03 00:24:33 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-12-03 00:24:33 -0500 |
commit | 6c153f78e75df56bd7c5e04a58124a8d5427d5d7 (patch) | |
tree | 7a1b6047bf71db3db59331cfa6638410b83f2927 /lib/sisu/v5/urls.rb | |
parent | v5: plaintext, smarttext: markdown (diff) |
v5: plaintext, smarttext: rst
Diffstat (limited to 'lib/sisu/v5/urls.rb')
-rw-r--r-- | lib/sisu/v5/urls.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sisu/v5/urls.rb b/lib/sisu/v5/urls.rb index 7da71137..43ecd6cb 100644 --- a/lib/sisu/v5/urls.rb +++ b/lib/sisu/v5/urls.rb @@ -117,6 +117,7 @@ module SiSU_Urls ' --textile (textile txt)'=>@fn[:txt_textile], ' --asciidoc (asciidoc txt)'=>@fn[:txt_asciidoc], ' --markdown (markdown txt)'=>@fn[:txt_markdown], + ' --rst (rST restructured-text)'=>@fn[:txt_rst], 'x --xml-sax (XML sax type)'=>@fn[:sax], 'X --xml-dom (XML dom type)'=>@fn[:dom], ' --xml-scaffold-sisu (XML scaffold)'=>@fn[:xml_scaffold_structure_sisu], @@ -165,6 +166,9 @@ module SiSU_Urls def markdown(x) SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.markdown.dir}/#{@md.file.base_filename.markdown}").result end + def rst(x) + SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.web_browser} file://#{@md.file.output_path.rst.dir}/#{@md.file.base_filename.rst}").result + end def epub(x) SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],"[#{@opt.f_pth[:lng_is]}] -#{x}","#{@prog.epub_viewer} #{@md.file.output_path.epub.dir}/#{@md.file.base_filename.epub}").result end @@ -334,6 +338,10 @@ module SiSU_Urls and @opt.act[:txt_markdown][:set]==:on show.markdown(x) end + if x=~/--rst\b/ \ + and @opt.act[:txt_rst][:set]==:on + show.rst(x) + end if x=~/--xhtml\b/ \ and @opt.act[:xhtml][:set]==:on show.xhtml(x) |