aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/hub_options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-07-14 07:04:18 -0400
committerRalph Amissah <ralph@amissah.com>2017-07-14 07:04:21 -0400
commit90e27c85d9054799e071cb6f601c8dbc3236272d (patch)
tree903541de6be900c45c631c85c0873738e49ae192 /lib/sisu/hub_options.rb
parentversion & changelog, open commit window (diff)
html, minitoc, default off
* default where no instruction given changed to false (requested, as minitoc is sub-optimal for viewing with smaller devices (when present minitoc is placed on left part of screen together with content to its right))
Diffstat (limited to 'lib/sisu/hub_options.rb')
-rw-r--r--lib/sisu/hub_options.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/hub_options.rb b/lib/sisu/hub_options.rb
index e0832553..fe371bd1 100644
--- a/lib/sisu/hub_options.rb
+++ b/lib/sisu/hub_options.rb
@@ -871,13 +871,13 @@ module SiSU_Commandline
else { bool: true, set: :na }
end
act[:minitoc]=if select_arr.inspect \
- =~/"--inc-minitoc"/
+ =~/"--minitoc"|"--inc-minitoc"/
{ bool: true, set: :on }
elsif select_arr.inspect \
=~/"--(?:exc|no)-minitoc"/ \
|| act[:switch][:off].inspect =~/"minitoc"/
{ bool: false, set: :off }
- else { bool: true, set: :na }
+ else { bool: false, set: :na }
end
act[:links_to_manifest]=if select_arr.inspect \
=~/"--inc-links-to-manifest"|"--inc-manifest-links"/
@@ -902,7 +902,7 @@ module SiSU_Commandline
=~/"--(?:exc|no)-manifest-minitoc"|"--(?:exc|no)-minitoc"/ \
|| act[:switch][:off].inspect =~/"manifest_minitoc"|"minitoc"/
{ bool: false, set: :off }
- else { bool: true, set: :na }
+ else { bool: false, set: :na }
end
act[:metadata]=if select_arr.inspect \
=~/"--inc-metadata"/
@@ -920,7 +920,7 @@ module SiSU_Commandline
=~/"--(?:exc|no)-html-minitoc"|"--(?:exc|no)-minitoc"/ \
|| act[:switch][:off].inspect =~/"html_minitoc"|"minitoc"/
{ bool: false, set: :off }
- else { bool: true, set: :na }
+ else { bool: false, set: :na }
end
act[:html_navigation]=if select_arr.inspect \
=~/"--inc-html-navigation"|"--inc-navigation"/