aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-07-15 18:48:40 -0400
committerRalph Amissah <ralph@amissah.com>2014-07-15 18:48:40 -0400
commitd8917347b5dbadd17510c417bedd2fbf61dbf67c (patch)
tree1f5073254e95f8e67c872cdb160e37b8871dffce /lib/sisu/v5/sysenv.rb
parentv5 v6: docbook, images, and adjustment (diff)
v5 v6: docbook, css (needs work), also doc header, sisu processing info
Diffstat (limited to 'lib/sisu/v5/sysenv.rb')
-rw-r--r--lib/sisu/v5/sysenv.rb17
1 files changed, 14 insertions, 3 deletions
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}"
%{<?xml-stylesheet type="text/css" href="#{stylesheet}"?>}
end
+ def xml_docbook
+ stylesheet="#{@file.path_rel_links.xml_css}#{@env.path.style}/#{@css.xml_docbook}"
+ %{<?xml-stylesheet type="text/css" href="#{stylesheet}"?>}
+ 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')