From d8917347b5dbadd17510c417bedd2fbf61dbf67c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 15 Jul 2014 18:48:40 -0400 Subject: v5 v6: docbook, css (needs work), also doc header, sisu processing info --- lib/sisu/v5/sysenv.rb | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v5/sysenv.rb') diff --git a/lib/sisu/v5/sysenv.rb b/lib/sisu/v5/sysenv.rb index 35d128f6..5c399564 100644 --- a/lib/sisu/v5/sysenv.rb +++ b/lib/sisu/v5/sysenv.rb @@ -6912,7 +6912,7 @@ WOK def xml_dom 'dom.css' end - def docbook_xml + def xml_docbook 'docbook.css' end def homepage @@ -6973,13 +6973,13 @@ WOK else SiSU_Env::CSS_Default.new.xml_dom end end - def docbook_xml + def xml_docbook if @md.doc_css \ and FileTest.file?("#{@env.path.output}/#{@env.path.style}/#{@md.doc_css}_docbook.css") "#{@md.doc_css}_xml_dom.css" elsif FileTest.file?("#{@env.path.output}/#{@env.path.style}/#{@env.path.base_markup_dir_stub}_docbook.css") "#{@env.path.base_markup_dir_stub}_docbook.css" - else SiSU_Env::CSS_Default.new.docbook_xml + else SiSU_Env::CSS_Default.new.xml_docbook end end def homepage @@ -7029,6 +7029,10 @@ WOK stylesheet="#{@file.path_rel_links.xml_css}#{@env.path.style}/#{@css.xml_dom}" %{} end + def xml_docbook + stylesheet="#{@file.path_rel_links.xml_css}#{@env.path.style}/#{@css.xml_docbook}" + %{} + end end class CreateSite < InfoEnv require_relative 'css' # css.rb @@ -7187,6 +7191,13 @@ WOK style.close end if @cmd =~/C/ \ + or (@cmd =~/[xX]/ \ + and not FileTest.file?("#{path_style}/#{fn_css.xml_docbook}")) + style=File.new("#{path_style}/#{fn_css.xml_docbook}",'w') + style << css.xml_docbook + style.close + end + if @cmd =~/C/ \ or (@cmd =~/[b]/ \ and not FileTest.file?("#{path_style}/#{fn_css.xhtml}")) style=File.new("#{path_style}/#{fn_css.xhtml}",'w') -- cgit v1.2.3