docubot 0.3.3 → 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 (80) hide show
  1. data/bin/docubot +5 -1
  2. data/lib/docubot.rb +4 -2
  3. data/lib/docubot/bundle.rb +109 -61
  4. data/lib/docubot/converter.rb +4 -1
  5. data/lib/docubot/converters/haml.rb +1 -1
  6. data/lib/docubot/glossary.rb +3 -0
  7. data/lib/docubot/link_tree.rb +109 -0
  8. data/lib/docubot/metasection.rb +61 -0
  9. data/lib/docubot/page.rb +40 -118
  10. data/lib/docubot/shells/docubot-help/3_Advanced_Topics/Controlling the Table of Contents.md +2 -4
  11. data/lib/docubot/shells/nvphysx/_templates/_root/common.css +10 -5
  12. data/lib/docubot/shells/nvphysx/_templates/_root/glossary.css +1 -0
  13. data/lib/docubot/shells/nvphysx/_templates/_root/glossary.js +11 -1
  14. data/lib/docubot/shells/nvphysx/_templates/section.haml +9 -0
  15. data/lib/docubot/templates/index.haml +13 -20
  16. data/lib/docubot/templates/section.haml +1 -4
  17. data/lib/docubot/templates/toc.haml +2 -11
  18. data/lib/docubot/templates/top.haml +7 -4
  19. data/lib/docubot/writers/chm.rb +6 -5
  20. data/lib/docubot/writers/chm/hhc.erb +35 -12
  21. data/lib/docubot/writers/chm/hhk.erb +1 -1
  22. data/lib/docubot/writers/chm/hhp.erb +2 -2
  23. data/lib/docubot/writers/html.rb +33 -23
  24. data/spec/_all.rb +1 -0
  25. data/spec/_helper.rb +10 -0
  26. data/spec/bundle.rb +193 -2
  27. data/spec/global.rb +28 -0
  28. data/spec/glossary.rb +13 -11
  29. data/spec/page.rb +35 -9
  30. data/spec/samples/attributes/defaults.haml +34 -0
  31. data/spec/samples/attributes/explicit1.haml +43 -0
  32. data/spec/samples/attributes/explicit2.haml +42 -0
  33. data/spec/samples/attributes/hidden.haml +40 -0
  34. data/spec/samples/attributes/index.md +8 -0
  35. data/spec/samples/collisions/page1.md +3 -0
  36. data/spec/samples/collisions/page1.textile +3 -0
  37. data/spec/samples/collisions/page2.haml +4 -0
  38. data/spec/samples/collisions/page2.html +3 -0
  39. data/spec/samples/collisions/page2.txt +3 -0
  40. data/spec/samples/collisions/page3.bin +1 -0
  41. data/spec/samples/collisions/page3.md +3 -0
  42. data/spec/samples/{link_test/sub2/bozo.bin → files/BUILDING.txt} +0 -0
  43. data/spec/samples/{titletest/1 First One.txt → files/_static/Thumbs.db} +0 -0
  44. data/spec/samples/{titletest/2_Second_One.txt → files/_static/foo.ai} +0 -0
  45. data/spec/samples/{titletest/4 Fourth_One.txt → files/_static/foo.png} +0 -0
  46. data/spec/samples/{titletest/5_Fifth One.txt → files/_static/foo.psd} +0 -0
  47. data/spec/samples/files/another.md +0 -0
  48. data/spec/samples/files/common.css +0 -0
  49. data/spec/samples/files/first.textile +0 -0
  50. data/spec/samples/files/index.md +2 -0
  51. data/spec/samples/files/section/foo.jpg +0 -0
  52. data/spec/samples/files/section/page.haml +0 -0
  53. data/spec/samples/files/section/sub section/Thumbs.db b/data/spec/samples/files/section/sub → section/Thumbs.db +0 -0
  54. data/spec/samples/files/section/sub section/foo.gif b/data/spec/samples/files/section/sub → section/foo.gif +0 -0
  55. data/spec/samples/files/section/sub section/page.txt b/data/spec/samples/files/section/sub → section/page.txt +0 -0
  56. data/spec/samples/{link_test → links}/index.txt +0 -0
  57. data/spec/samples/{link_test → links}/root.md +0 -0
  58. data/spec/samples/{link_test → links}/sub1/inner1.md +0 -0
  59. data/spec/samples/{link_test → links}/sub2.md +0 -0
  60. data/spec/samples/links/sub2/bozo.bin +0 -0
  61. data/spec/samples/{link_test → links}/sub2/inner2.md +0 -0
  62. data/spec/samples/templates/_templates/404.haml +1 -0
  63. data/spec/samples/templates/_templates/doubler.haml +7 -0
  64. data/spec/samples/templates/_templates/page.haml +2 -0
  65. data/spec/samples/templates/goaway.txt +3 -0
  66. data/spec/samples/templates/onepara_html.html +3 -0
  67. data/spec/samples/templates/onepara_md.md +5 -0
  68. data/spec/samples/templates/twopara_haml.haml +7 -0
  69. data/spec/samples/templates/twopara_textile.textile +6 -0
  70. data/spec/samples/titles/1 First One.txt b/data/spec/samples/titles/1 First → One.txt +0 -0
  71. data/spec/samples/titles/2_Second_One.txt +0 -0
  72. data/spec/samples/{titletest → titles}/3_renamed.txt +0 -0
  73. data/spec/samples/titles/4 Fourth_One.txt b/data/spec/samples/titles/4 → Fourth_One.txt +0 -0
  74. data/spec/samples/titles/5_Fifth One.txt b/data/spec/samples/titles/5_Fifth → One.txt +0 -0
  75. data/spec/samples/titles/911.txt +0 -0
  76. data/spec/samples/titles/index.txt +2 -0
  77. data/spec/templates.rb +42 -0
  78. data/spec/toc.rb +64 -30
  79. metadata +53 -14
  80. 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.3.3
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-20 00:00:00 -07:00
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/link_test/index.txt
161
- - spec/samples/link_test/root.md
162
- - spec/samples/link_test/sub1/inner1.md
163
- - spec/samples/link_test/sub2/bozo.bin
164
- - spec/samples/link_test/sub2/inner2.md
165
- - spec/samples/link_test/sub2.md
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/titletest/1 First One.txt
172
- - spec/samples/titletest/2_Second_One.txt
173
- - spec/samples/titletest/3_renamed.txt
174
- - spec/samples/titletest/4 Fourth_One.txt
175
- - spec/samples/titletest/5_Fifth One.txt
176
- - spec/samples/titletest/index.txt
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
@@ -1,2 +0,0 @@
1
- title: Title Changin'
2
- +++