helphelp 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/output.rb +7 -3
  2. data/lib/version.rb +1 -1
  3. metadata +4 -4
data/lib/output.rb CHANGED
@@ -104,7 +104,7 @@ extension."
104
104
  cmd = "cp #{input_path}/#{entry} #{output_path}/#{entry}"
105
105
  system cmd
106
106
  cmd = "mogrify -resize #{@content_width}x5000 #{output_path}/#{entry}"
107
- STDERR.puts "MOGRIFY: #{cmd}"
107
+ STDERR.puts "Resize picture: #{cmd}"
108
108
  system cmd
109
109
  end
110
110
  end
@@ -128,7 +128,7 @@ extension."
128
128
  end
129
129
 
130
130
  def create_page page
131
- puts "CREATE PAGE #{page.path} #{page.output_file}"
131
+ STDERR.puts "Create page: #{page.path} -> #{page.output_file}"
132
132
  @page = page
133
133
  create_file "_view/template.haml", page.output_file
134
134
  end
@@ -172,7 +172,11 @@ extension."
172
172
  def render_toc_section parent_page
173
173
  on "<ul>"
174
174
  parent_page.children.each do |page|
175
- o "<li>"
175
+ if parent_page == @root_page
176
+ o "<li>"
177
+ else
178
+ o "<li class=\"sub-item\">"
179
+ end
176
180
  title = page.title
177
181
  if page.has_children?
178
182
  title += " >"
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Helphelp
2
2
 
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helphelp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cornelius Schumacher
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-08 00:00:00 +02:00
18
+ date: 2012-07-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency