diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-06-26 15:24:48 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-06-26 22:40:12 -0400 |
commit | def544be45f5961df774b517542934b92141fc66 (patch) | |
tree | ab9f130dad2affc4ea03a6cb0e0efa11bbee1ec6 /lib/sisu/v3/sysenv.rb | |
parent | v3: html_tune, reduce loops; deal with angle-brackets (diff) |
v3: manpage (sysenv), move output; line-breaks within object
* start to honor line-breaks within objects (revisit)
* show double escape \\ (backslashes) in code blocks
* place under web server directory
* sysenv, accommodate manpage changes
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r-- | lib/sisu/v3/sysenv.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb index d0c88deb..5134b6c2 100644 --- a/lib/sisu/v3/sysenv.rb +++ b/lib/sisu/v3/sysenv.rb @@ -3457,6 +3457,15 @@ WOK end self end + def manpage + def dir + output_path.manpage.dir + '/' + base_filename.manpage + end + def rel + output_path.manpage.rel + '/' + base_filename.manpage + end + self + end def manifest def dir output_path.manifest.dir + '/' + base_filename.manifest @@ -3614,11 +3623,11 @@ WOK pdf_l + @md.fn[:pdf_l_legal] end def manpage - ft='.1' + ft='1' if @env.output_dir_structure.by_language_code? - @md.fnb + ft + @md.fnb + '.' + ft else - @md.fnb + @md.lang_code_insert + ft + @md.fnb + '.' + @md.opt.f_pth[:lng_is] + '.' + ft end end def hash_digest @@ -4224,13 +4233,7 @@ WOK set_path(ft).rcp.ab end def rel_sm - if @env.output_dir_structure.by_language_code? - '' - elsif @env.output_dir_structure.by_filetype? - '' - else - '' - end + set_path(ft).rel_sm.ab end self end |