docubot 0.3.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/docubot +5 -1
- data/lib/docubot.rb +4 -2
- data/lib/docubot/bundle.rb +109 -61
- data/lib/docubot/converter.rb +4 -1
- data/lib/docubot/converters/haml.rb +1 -1
- data/lib/docubot/glossary.rb +3 -0
- data/lib/docubot/link_tree.rb +109 -0
- data/lib/docubot/metasection.rb +61 -0
- data/lib/docubot/page.rb +40 -118
- data/lib/docubot/shells/docubot-help/3_Advanced_Topics/Controlling the Table of Contents.md +2 -4
- data/lib/docubot/shells/nvphysx/_templates/_root/common.css +10 -5
- data/lib/docubot/shells/nvphysx/_templates/_root/glossary.css +1 -0
- data/lib/docubot/shells/nvphysx/_templates/_root/glossary.js +11 -1
- data/lib/docubot/shells/nvphysx/_templates/section.haml +9 -0
- data/lib/docubot/templates/index.haml +13 -20
- data/lib/docubot/templates/section.haml +1 -4
- data/lib/docubot/templates/toc.haml +2 -11
- data/lib/docubot/templates/top.haml +7 -4
- data/lib/docubot/writers/chm.rb +6 -5
- data/lib/docubot/writers/chm/hhc.erb +35 -12
- data/lib/docubot/writers/chm/hhk.erb +1 -1
- data/lib/docubot/writers/chm/hhp.erb +2 -2
- data/lib/docubot/writers/html.rb +33 -23
- data/spec/_all.rb +1 -0
- data/spec/_helper.rb +10 -0
- data/spec/bundle.rb +193 -2
- data/spec/global.rb +28 -0
- data/spec/glossary.rb +13 -11
- data/spec/page.rb +35 -9
- data/spec/samples/attributes/defaults.haml +34 -0
- data/spec/samples/attributes/explicit1.haml +43 -0
- data/spec/samples/attributes/explicit2.haml +42 -0
- data/spec/samples/attributes/hidden.haml +40 -0
- data/spec/samples/attributes/index.md +8 -0
- data/spec/samples/collisions/page1.md +3 -0
- data/spec/samples/collisions/page1.textile +3 -0
- data/spec/samples/collisions/page2.haml +4 -0
- data/spec/samples/collisions/page2.html +3 -0
- data/spec/samples/collisions/page2.txt +3 -0
- data/spec/samples/collisions/page3.bin +1 -0
- data/spec/samples/collisions/page3.md +3 -0
- data/spec/samples/{link_test/sub2/bozo.bin → files/BUILDING.txt} +0 -0
- data/spec/samples/{titletest/1 First One.txt → files/_static/Thumbs.db} +0 -0
- data/spec/samples/{titletest/2_Second_One.txt → files/_static/foo.ai} +0 -0
- data/spec/samples/{titletest/4 Fourth_One.txt → files/_static/foo.png} +0 -0
- data/spec/samples/{titletest/5_Fifth One.txt → files/_static/foo.psd} +0 -0
- data/spec/samples/files/another.md +0 -0
- data/spec/samples/files/common.css +0 -0
- data/spec/samples/files/first.textile +0 -0
- data/spec/samples/files/index.md +2 -0
- data/spec/samples/files/section/foo.jpg +0 -0
- data/spec/samples/files/section/page.haml +0 -0
- data/spec/samples/files/section/sub section/Thumbs.db b/data/spec/samples/files/section/sub → section/Thumbs.db +0 -0
- data/spec/samples/files/section/sub section/foo.gif b/data/spec/samples/files/section/sub → section/foo.gif +0 -0
- data/spec/samples/files/section/sub section/page.txt b/data/spec/samples/files/section/sub → section/page.txt +0 -0
- data/spec/samples/{link_test → links}/index.txt +0 -0
- data/spec/samples/{link_test → links}/root.md +0 -0
- data/spec/samples/{link_test → links}/sub1/inner1.md +0 -0
- data/spec/samples/{link_test → links}/sub2.md +0 -0
- data/spec/samples/links/sub2/bozo.bin +0 -0
- data/spec/samples/{link_test → links}/sub2/inner2.md +0 -0
- data/spec/samples/templates/_templates/404.haml +1 -0
- data/spec/samples/templates/_templates/doubler.haml +7 -0
- data/spec/samples/templates/_templates/page.haml +2 -0
- data/spec/samples/templates/goaway.txt +3 -0
- data/spec/samples/templates/onepara_html.html +3 -0
- data/spec/samples/templates/onepara_md.md +5 -0
- data/spec/samples/templates/twopara_haml.haml +7 -0
- data/spec/samples/templates/twopara_textile.textile +6 -0
- data/spec/samples/titles/1 First One.txt b/data/spec/samples/titles/1 First → One.txt +0 -0
- data/spec/samples/titles/2_Second_One.txt +0 -0
- data/spec/samples/{titletest → titles}/3_renamed.txt +0 -0
- data/spec/samples/titles/4 Fourth_One.txt b/data/spec/samples/titles/4 → Fourth_One.txt +0 -0
- data/spec/samples/titles/5_Fifth One.txt b/data/spec/samples/titles/5_Fifth → One.txt +0 -0
- data/spec/samples/titles/911.txt +0 -0
- data/spec/samples/titles/index.txt +2 -0
- data/spec/templates.rb +42 -0
- data/spec/toc.rb +64 -30
- metadata +53 -14
- data/spec/samples/titletest/index.txt +0 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docubot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: "0.4"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Kistner
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-01-
|
13
|
+
date: 2010-01-26 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -82,6 +82,8 @@ files:
|
|
82
82
|
- lib/docubot/converters/textile.rb
|
83
83
|
- lib/docubot/glossary.rb
|
84
84
|
- lib/docubot/index.rb
|
85
|
+
- lib/docubot/link_tree.rb
|
86
|
+
- lib/docubot/metasection.rb
|
85
87
|
- lib/docubot/page.rb
|
86
88
|
- lib/docubot/shells/default/0_License.md
|
87
89
|
- lib/docubot/shells/default/Appendix/Glossary.md
|
@@ -116,6 +118,7 @@ files:
|
|
116
118
|
- lib/docubot/shells/nvphysx/_glossary/PhysX.textile
|
117
119
|
- lib/docubot/shells/nvphysx/_static/NVBadge_3D.png
|
118
120
|
- lib/docubot/shells/nvphysx/_static/PhysXbyNV_Black.png
|
121
|
+
- lib/docubot/shells/nvphysx/_templates/section.haml
|
119
122
|
- lib/docubot/shells/nvphysx/_templates/top.haml
|
120
123
|
- lib/docubot/shells/nvphysx/_templates/_root/bg_green_bar_revised.gif
|
121
124
|
- lib/docubot/shells/nvphysx/_templates/_root/close.png
|
@@ -149,31 +152,67 @@ files:
|
|
149
152
|
- spec/bundle.rb
|
150
153
|
- spec/command.rb
|
151
154
|
- spec/converters.rb
|
155
|
+
- spec/global.rb
|
152
156
|
- spec/glossary.rb
|
153
157
|
- spec/index.rb
|
154
158
|
- spec/page.rb
|
159
|
+
- spec/samples/attributes/defaults.haml
|
160
|
+
- spec/samples/attributes/explicit1.haml
|
161
|
+
- spec/samples/attributes/explicit2.haml
|
162
|
+
- spec/samples/attributes/hidden.haml
|
163
|
+
- spec/samples/attributes/index.md
|
164
|
+
- spec/samples/collisions/page1.md
|
165
|
+
- spec/samples/collisions/page1.textile
|
166
|
+
- spec/samples/collisions/page2.haml
|
167
|
+
- spec/samples/collisions/page2.html
|
168
|
+
- spec/samples/collisions/page2.txt
|
169
|
+
- spec/samples/collisions/page3.bin
|
170
|
+
- spec/samples/collisions/page3.md
|
171
|
+
- spec/samples/files/another.md
|
172
|
+
- spec/samples/files/BUILDING.txt
|
173
|
+
- spec/samples/files/common.css
|
174
|
+
- spec/samples/files/first.textile
|
175
|
+
- spec/samples/files/index.md
|
176
|
+
- spec/samples/files/section/foo.jpg
|
177
|
+
- spec/samples/files/section/page.haml
|
178
|
+
- spec/samples/files/section/sub section/foo.gif
|
179
|
+
- spec/samples/files/section/sub section/page.txt
|
180
|
+
- spec/samples/files/section/sub section/Thumbs.db
|
181
|
+
- spec/samples/files/_static/foo.ai
|
182
|
+
- spec/samples/files/_static/foo.png
|
183
|
+
- spec/samples/files/_static/foo.psd
|
184
|
+
- spec/samples/files/_static/Thumbs.db
|
155
185
|
- spec/samples/glossary/Glossary.txt
|
156
186
|
- spec/samples/glossary/Some Page.md
|
157
187
|
- spec/samples/glossary/_glossary/complex.haml
|
158
188
|
- spec/samples/glossary/_glossary/project_x.md
|
159
189
|
- spec/samples/glossary/_glossary/Simple Term.md
|
160
|
-
- spec/samples/
|
161
|
-
- spec/samples/
|
162
|
-
- spec/samples/
|
163
|
-
- spec/samples/
|
164
|
-
- spec/samples/
|
165
|
-
- spec/samples/
|
190
|
+
- spec/samples/links/index.txt
|
191
|
+
- spec/samples/links/root.md
|
192
|
+
- spec/samples/links/sub1/inner1.md
|
193
|
+
- spec/samples/links/sub2/bozo.bin
|
194
|
+
- spec/samples/links/sub2/inner2.md
|
195
|
+
- spec/samples/links/sub2.md
|
166
196
|
- spec/samples/simplest/Haml.haml
|
167
197
|
- spec/samples/simplest/HTML.html
|
168
198
|
- spec/samples/simplest/Markdown.md
|
169
199
|
- spec/samples/simplest/Text.txt
|
170
200
|
- spec/samples/simplest/Textile.textile
|
171
|
-
- spec/samples/
|
172
|
-
- spec/samples/
|
173
|
-
- spec/samples/
|
174
|
-
- spec/samples/
|
175
|
-
- spec/samples/
|
176
|
-
- spec/samples/
|
201
|
+
- spec/samples/templates/goaway.txt
|
202
|
+
- spec/samples/templates/onepara_html.html
|
203
|
+
- spec/samples/templates/onepara_md.md
|
204
|
+
- spec/samples/templates/twopara_haml.haml
|
205
|
+
- spec/samples/templates/twopara_textile.textile
|
206
|
+
- spec/samples/templates/_templates/404.haml
|
207
|
+
- spec/samples/templates/_templates/doubler.haml
|
208
|
+
- spec/samples/templates/_templates/page.haml
|
209
|
+
- spec/samples/titles/1 First One.txt
|
210
|
+
- spec/samples/titles/2_Second_One.txt
|
211
|
+
- spec/samples/titles/3_renamed.txt
|
212
|
+
- spec/samples/titles/4 Fourth_One.txt
|
213
|
+
- spec/samples/titles/5_Fifth One.txt
|
214
|
+
- spec/samples/titles/911.txt
|
215
|
+
- spec/samples/titles/index.txt
|
177
216
|
- spec/templates.rb
|
178
217
|
- spec/toc.rb
|
179
218
|
- spec/writer/chm.rb
|