From 7ef4f9a39e2aeffd9731ac0b68caca4c1b8cf03f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 21 Aug 2007 21:34:41 +0100 Subject: small fixes to manifest and html_scroll, and adjustment to html navigation band use in concordance and manifest * manifest * use relative link by default * in absence of configured url_root (http://) use info on location on local filesystem (file://) * html outputs, navigation band/banner adjustment, in concordance and manifest * html scroll, fix to document information link in table of contents --- lib/sisu/v0/sysenv.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sisu/v0/sysenv.rb') diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb index 10ec5e33..9052ac91 100644 --- a/lib/sisu/v0/sysenv.rb +++ b/lib/sisu/v0/sysenv.rb @@ -1275,7 +1275,8 @@ module SiSU_Env end def root if defined? @rc['webserv']['url_root'] and @rc['webserv']['url_root'] =~/http:\/\//; "#{@rc['webserv']['url_root']}/#@stub_pwd" - else "http://localhost/#@stub_pwd" + elsif defined? @rc['webserv']['url_root'] and @rc['webserv']['url_root'] =~/localhost/; "http://localhost/#@stub_pwd" + else "file://#{path.output}" end end def remote -- cgit v1.2.3