docubot 0.6.1 → 0.6.2
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.
- data/bin/docubot +125 -125
- data/lib/docubot.rb +43 -43
- data/lib/docubot/bundle.rb +182 -182
- data/lib/docubot/converter.rb +28 -28
- data/lib/docubot/converters/haml.rb +9 -9
- data/lib/docubot/converters/markdown.rb +14 -14
- data/lib/docubot/index.rb +67 -67
- data/lib/docubot/link_tree.rb +111 -111
- data/lib/docubot/metasection.rb +61 -61
- data/lib/docubot/page.rb +167 -167
- data/lib/docubot/shells/default/0_License.md +59 -59
- data/lib/docubot/shells/default/Appendix/Glossary.md +4 -4
- data/lib/docubot/shells/default/Appendix/Index_Page.md +8 -8
- data/lib/docubot/shells/default/Appendix/Table of Contents.md +4 -4
- data/lib/docubot/shells/docubot-help/0_License.md +20 -20
- data/lib/docubot/shells/docubot-help/1_Getting_Started.md +47 -47
- data/lib/docubot/shells/docubot-help/2_Basic_Concepts/4 Adding Images.md +1 -1
- data/lib/docubot/shells/docubot-help/2_Basic_Concepts/index.md +5 -5
- data/lib/docubot/shells/docubot-help/3_Advanced_Topics/Controlling Glossary.md +2 -2
- data/lib/docubot/shells/docubot-help/3_Advanced_Topics/Controlling Indexing.md +9 -9
- data/lib/docubot/shells/docubot-help/3_Advanced_Topics/Controlling the Table of Contents.md +5 -5
- data/lib/docubot/shells/docubot-help/4_Appendix/Glossary.md +4 -4
- data/lib/docubot/shells/docubot-help/4_Appendix/Index_Page.md +5 -5
- data/lib/docubot/shells/docubot-help/4_Appendix/Table of Contents.md +7 -7
- data/lib/docubot/shells/docubot-help/index.txt +7 -7
- data/lib/docubot/snippet.rb +19 -19
- data/lib/docubot/snippets/glossary.rb +7 -7
- data/lib/docubot/snippets/index_entries.rb +6 -6
- data/lib/docubot/templates/_root/glossary.css +3 -3
- data/lib/docubot/templates/_root/glossary.js +57 -57
- data/lib/docubot/templates/index.haml +14 -14
- data/lib/docubot/templates/toc.haml +2 -2
- data/lib/docubot/templates/top.haml +32 -32
- data/lib/docubot/writers/chm/hhc.erb +1 -1
- data/lib/docubot/writers/chm/hhk.erb +2 -2
- data/lib/docubot/writers/html.rb +87 -87
- data/spec/_all.rb +12 -12
- data/spec/_helper.rb +16 -16
- data/spec/bundle.rb +339 -339
- data/spec/command.rb +3 -3
- data/spec/converters.rb +2 -2
- data/spec/global.rb +27 -27
- data/spec/glossary.rb +94 -94
- data/spec/index.rb +2 -2
- data/spec/page.rb +80 -80
- data/spec/samples/attributes/defaults.haml +34 -34
- data/spec/samples/attributes/explicit1.haml +42 -42
- data/spec/samples/attributes/explicit2.haml +41 -41
- data/spec/samples/attributes/hidden.haml +39 -39
- data/spec/samples/attributes/index.md +8 -8
- data/spec/samples/collisions/page1.md +2 -2
- data/spec/samples/collisions/page1.textile +2 -2
- data/spec/samples/collisions/page2.haml +3 -3
- data/spec/samples/collisions/page2.html +2 -2
- data/spec/samples/collisions/page2.txt +2 -2
- data/spec/samples/collisions/page3.md +2 -2
- data/spec/samples/files/index.md +1 -1
- data/spec/samples/glossary/Glossary.txt +4 -4
- data/spec/samples/glossary/Some Page.md +2 -2
- data/spec/samples/glossary/_glossary/Simple Term.md +2 -2
- data/spec/samples/glossary/_glossary/complex.haml +8 -8
- data/spec/samples/glossary/_glossary/project_x.md +3 -3
- data/spec/samples/hierarchy/1/1.1/1.1.1/index.haml +1 -1
- data/spec/samples/hierarchy/1/1.1/1.1.1/page.haml +3 -3
- data/spec/samples/hierarchy/1/1.1/page.haml +3 -3
- data/spec/samples/hierarchy/1/page.haml +3 -3
- data/spec/samples/hierarchy/2/2.1/2.1.1/page.haml +3 -3
- data/spec/samples/hierarchy/2/2.1/index.haml +1 -1
- data/spec/samples/hierarchy/2/2.1/page.haml +3 -3
- data/spec/samples/hierarchy/2/page.haml +3 -3
- data/spec/samples/hierarchy/main.haml +1 -1
- data/spec/samples/hierarchy/toc.md +1 -1
- data/spec/samples/links/index.txt +11 -11
- data/spec/samples/links/root.md +13 -13
- data/spec/samples/links/sub1/inner1.md +11 -11
- data/spec/samples/links/sub2.md +4 -4
- data/spec/samples/links/sub2/inner2.md +7 -7
- data/spec/samples/simplest/HTML.html +9 -9
- data/spec/samples/simplest/Haml.haml +12 -12
- data/spec/samples/simplest/Markdown.md +9 -9
- data/spec/samples/simplest/Text.txt +9 -9
- data/spec/samples/simplest/Textile.textile +9 -9
- data/spec/samples/templates/_templates/doubler.haml +6 -6
- data/spec/samples/templates/_templates/page.haml +1 -1
- data/spec/samples/templates/goaway.txt +2 -2
- data/spec/samples/templates/onepara_html.html +2 -2
- data/spec/samples/templates/onepara_md.md +4 -4
- data/spec/samples/templates/twopara_haml.haml +6 -6
- data/spec/samples/templates/twopara_textile.textile +5 -5
- data/spec/samples/titles/3_renamed.txt +1 -1
- data/spec/samples/titles/index.txt +1 -1
- data/spec/templates.rb +43 -43
- data/spec/toc.rb +128 -128
- data/spec/writer/chm.rb +2 -2
- data/spec/writer/html.rb +2 -2
- metadata +56 -25
- data/bin/docubot.bat +0 -1
data/spec/writer/chm.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#encoding: UTF-8
|
|
2
|
-
require File.join(File.dirname(__FILE__), "..", "_helper")
|
|
1
|
+
#encoding: UTF-8
|
|
2
|
+
require File.join(File.dirname(__FILE__), "..", "_helper")
|
data/spec/writer/html.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#encoding: UTF-8
|
|
2
|
-
require File.join(File.dirname(__FILE__), "..", "_helper")
|
|
1
|
+
#encoding: UTF-8
|
|
2
|
+
require File.join(File.dirname(__FILE__), "..", "_helper")
|
metadata
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: docubot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
hash: 3
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 6
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.6.2
|
|
5
11
|
platform: ruby
|
|
6
12
|
authors:
|
|
7
13
|
- Gavin Kistner
|
|
@@ -15,54 +21,74 @@ default_executable:
|
|
|
15
21
|
dependencies:
|
|
16
22
|
- !ruby/object:Gem::Dependency
|
|
17
23
|
name: haml
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
prerelease: false
|
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
21
27
|
requirements:
|
|
22
28
|
- - ">="
|
|
23
29
|
- !ruby/object:Gem::Version
|
|
30
|
+
hash: 3
|
|
31
|
+
segments:
|
|
32
|
+
- 0
|
|
24
33
|
version: "0"
|
|
25
|
-
|
|
34
|
+
type: :runtime
|
|
35
|
+
version_requirements: *id001
|
|
26
36
|
- !ruby/object:Gem::Dependency
|
|
27
37
|
name: nokogiri
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
prerelease: false
|
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
40
|
+
none: false
|
|
31
41
|
requirements:
|
|
32
42
|
- - ">="
|
|
33
43
|
- !ruby/object:Gem::Version
|
|
44
|
+
hash: 3
|
|
45
|
+
segments:
|
|
46
|
+
- 0
|
|
34
47
|
version: "0"
|
|
35
|
-
|
|
48
|
+
type: :runtime
|
|
49
|
+
version_requirements: *id002
|
|
36
50
|
- !ruby/object:Gem::Dependency
|
|
37
51
|
name: bluecloth
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
prerelease: false
|
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
54
|
+
none: false
|
|
41
55
|
requirements:
|
|
42
56
|
- - ">="
|
|
43
57
|
- !ruby/object:Gem::Version
|
|
58
|
+
hash: 3
|
|
59
|
+
segments:
|
|
60
|
+
- 0
|
|
44
61
|
version: "0"
|
|
45
|
-
|
|
62
|
+
type: :runtime
|
|
63
|
+
version_requirements: *id003
|
|
46
64
|
- !ruby/object:Gem::Dependency
|
|
47
65
|
name: RedCloth
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
prerelease: false
|
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
68
|
+
none: false
|
|
51
69
|
requirements:
|
|
52
70
|
- - ">="
|
|
53
71
|
- !ruby/object:Gem::Version
|
|
72
|
+
hash: 3
|
|
73
|
+
segments:
|
|
74
|
+
- 0
|
|
54
75
|
version: "0"
|
|
55
|
-
|
|
76
|
+
type: :runtime
|
|
77
|
+
version_requirements: *id004
|
|
56
78
|
- !ruby/object:Gem::Dependency
|
|
57
79
|
name: minitest
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
80
|
+
prerelease: false
|
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
82
|
+
none: false
|
|
61
83
|
requirements:
|
|
62
84
|
- - ">="
|
|
63
85
|
- !ruby/object:Gem::Version
|
|
86
|
+
hash: 3
|
|
87
|
+
segments:
|
|
88
|
+
- 0
|
|
64
89
|
version: "0"
|
|
65
|
-
|
|
90
|
+
type: :runtime
|
|
91
|
+
version_requirements: *id005
|
|
66
92
|
description: DocuBot creates HTML or CHM documentation from a hierarchy of files, supporting markups like Markdown, Textile, and Haml.
|
|
67
93
|
email: gavin@phrogz.net
|
|
68
94
|
executables:
|
|
@@ -73,7 +99,6 @@ extra_rdoc_files: []
|
|
|
73
99
|
|
|
74
100
|
files:
|
|
75
101
|
- bin/docubot
|
|
76
|
-
- bin/docubot.bat
|
|
77
102
|
- lib/docubot/bundle.rb
|
|
78
103
|
- lib/docubot/converter.rb
|
|
79
104
|
- lib/docubot/converters/haml.rb
|
|
@@ -231,17 +256,23 @@ rdoc_options: []
|
|
|
231
256
|
require_paths:
|
|
232
257
|
- lib
|
|
233
258
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
259
|
+
none: false
|
|
234
260
|
requirements:
|
|
235
261
|
- - ">="
|
|
236
262
|
- !ruby/object:Gem::Version
|
|
263
|
+
hash: 3
|
|
264
|
+
segments:
|
|
265
|
+
- 0
|
|
237
266
|
version: "0"
|
|
238
|
-
version:
|
|
239
267
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
|
+
none: false
|
|
240
269
|
requirements:
|
|
241
270
|
- - ">="
|
|
242
271
|
- !ruby/object:Gem::Version
|
|
272
|
+
hash: 3
|
|
273
|
+
segments:
|
|
274
|
+
- 0
|
|
243
275
|
version: "0"
|
|
244
|
-
version:
|
|
245
276
|
requirements:
|
|
246
277
|
- Windows with HTML Help Workshop installed and hhc.exe in the %PATH%.
|
|
247
278
|
- Haml gem for template interpretation.
|
|
@@ -250,7 +281,7 @@ requirements:
|
|
|
250
281
|
- RedCloth gem for Textile conversion.
|
|
251
282
|
- MiniTest gem for running specifications.
|
|
252
283
|
rubyforge_project:
|
|
253
|
-
rubygems_version: 1.3.
|
|
284
|
+
rubygems_version: 1.3.7
|
|
254
285
|
signing_key:
|
|
255
286
|
specification_version: 3
|
|
256
287
|
summary: Create documentation from a hierarchy of text files.
|
data/bin/docubot.bat
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@"ruby.exe" "%~dpn0" %*
|