docubot 0.2.2 → 0.3

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 (45) hide show
  1. data/bin/docubot +4 -0
  2. data/lib/docubot.rb +5 -1
  3. data/lib/docubot/bundle.rb +10 -5
  4. data/lib/docubot/index.rb +5 -4
  5. data/lib/docubot/page.rb +25 -4
  6. data/lib/docubot/templates/index.haml +20 -13
  7. data/lib/docubot/templates/toc.haml +2 -0
  8. data/lib/docubot/writers/chm.rb +5 -1
  9. data/lib/docubot/writers/html.rb +3 -0
  10. data/test/site1_html/A Slight Change of Heart/1 Ze First Page in Ze Section.html +30 -0
  11. data/test/site1_html/A Slight Change of Heart/2 Another Page in the Section.html +30 -0
  12. data/test/site1_html/A Slight Change of Heart/3_more_crap.html +42 -0
  13. data/test/site1_html/A Slight Change of Heart/3_more_crap.html#frist-post +29 -0
  14. data/test/site1_html/A Slight Change of Heart/3_more_crap.html#moar +29 -0
  15. data/test/site1_html/A Slight Change of Heart/index.html +28 -0
  16. data/test/site1_html/_index.html +17 -0
  17. data/test/site1_html/_toc.html +73 -0
  18. data/test/site1_html/appendices/gkheadftw.html +32 -0
  19. data/test/site1_html/appendices/index.html +28 -0
  20. data/test/site1_html/common.css +108 -0
  21. data/test/site1_html/glossary-terms.js +1 -0
  22. data/test/site1_html/headers.html +42 -0
  23. data/test/site1_html/preamble.html +36 -0
  24. data/test/site1_html/raw.html +33 -0
  25. data/test/site1_html/toc.css +0 -0
  26. data/test/site1_html/toc.js +0 -0
  27. metadata +38 -28
  28. data/lib/docubot/shells/nvphysx/0_License.md +0 -3
  29. data/lib/docubot/shells/nvphysx/1_Getting_Started.haml +0 -51
  30. data/lib/docubot/shells/nvphysx/Appendix/Glossary.md +0 -7
  31. data/lib/docubot/shells/nvphysx/_glossary/APEX.md +0 -1
  32. data/lib/docubot/shells/nvphysx/_glossary/NVIDIA.md +0 -1
  33. data/lib/docubot/shells/nvphysx/_glossary/PhysX.textile +0 -3
  34. data/lib/docubot/shells/nvphysx/_static/NVBadge_3D.png +0 -0
  35. data/lib/docubot/shells/nvphysx/_static/PhysXbyNV_Black.png +0 -0
  36. data/lib/docubot/shells/nvphysx/_templates/_root/bg_green_bar_revised.gif +0 -0
  37. data/lib/docubot/shells/nvphysx/_templates/_root/close.png +0 -0
  38. data/lib/docubot/shells/nvphysx/_templates/_root/common.css +0 -264
  39. data/lib/docubot/shells/nvphysx/_templates/_root/glossary.css +0 -4
  40. data/lib/docubot/shells/nvphysx/_templates/_root/glossary.js +0 -24
  41. data/lib/docubot/shells/nvphysx/_templates/_root/nvdevtools.js +0 -31
  42. data/lib/docubot/shells/nvphysx/_templates/_root/nvidia-logo.gif +0 -0
  43. data/lib/docubot/shells/nvphysx/_templates/_root/right-sidebar.png +0 -0
  44. data/lib/docubot/shells/nvphysx/_templates/top.haml +0 -28
  45. data/lib/docubot/shells/nvphysx/index.txt +0 -5
@@ -0,0 +1,73 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Table of Contents</title>
5
+ <link href='toc.css' media='all' rel='stylesheet' type='text/css'>
6
+ <script src='toc.js' type='text/javascript'></script>
7
+ </head>
8
+ <body>
9
+ <ul id='toc'>
10
+ <li>
11
+ <a href='A Slight Change of Heart/index.html'>
12
+ A Slight Change of Heart
13
+ </a>
14
+ <ul>
15
+ <li>
16
+ <a href='A Slight Change of Heart/1 Ze First Page in Ze Section.html'>
17
+ Ze First Page in Ze Section
18
+ </a>
19
+ </li>
20
+ <li>
21
+ <a href='A Slight Change of Heart/2 Another Page in the Section.html'>
22
+ Another Page in the Section
23
+ </a>
24
+ </li>
25
+ <li>
26
+ <a href='A Slight Change of Heart/3_more_crap.html'>
27
+ Additional Helpful Information
28
+ </a>
29
+ <ul>
30
+ <li>
31
+ <a href='A Slight Change of Heart/3_more_crap.html#frist-post'>
32
+ Title Verification
33
+ </a>
34
+ </li>
35
+ <li>
36
+ <a href='A Slight Change of Heart/3_more_crap.html#moar'>
37
+ TOC Verification
38
+ </a>
39
+ </li>
40
+ </ul>
41
+ </li>
42
+ </ul>
43
+ </li>
44
+ <li>
45
+ <a href='appendices/index.html'>
46
+ Appendices: The final frontier?
47
+ </a>
48
+ <ul>
49
+ <li>
50
+ <a href='appendices/gkheadftw.html'>
51
+ gkheadftw
52
+ </a>
53
+ </li>
54
+ </ul>
55
+ </li>
56
+ <li>
57
+ <a href='headers.html'>
58
+ headers
59
+ </a>
60
+ </li>
61
+ <li>
62
+ <a href='preamble.html'>
63
+ preamble
64
+ </a>
65
+ </li>
66
+ <li>
67
+ <a href='raw.html'>
68
+ raw
69
+ </a>
70
+ </li>
71
+ </ul>
72
+ </body>
73
+ </html>
@@ -0,0 +1,32 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
5
+ <link href='../common.css' media='all' rel='stylesheet' type='text/css'>
6
+ <title>gkheadftw</title>
7
+ </head>
8
+ <body>
9
+ <div id='content'>
10
+ <div id='pagetop'>
11
+ <div id='breadcrumb'>
12
+ Table of Contents
13
+ <span class='sep'>&gt;</span>
14
+ <a href='../appendices/index.html'>Appendices: The final frontier?</a>
15
+ <span class='sep'>&gt;</span>
16
+ gkheadftw
17
+ </div>
18
+ <h1 id='title'>gkheadftw</h1>
19
+ </div>
20
+ <div id='pagebody'>
21
+ <div id='mainbody'><p>Yo ho ho! It's <strong>GK Head</strong> time!</p>
22
+ <p><img src="http://phrogz.net/tmp/gkhead.jpg"></p>
23
+
24
+ </div>
25
+ <div id='pagefooter'>
26
+ Copyright ©2010.
27
+ All Rights Reserved.
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </body>
32
+ </html>
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
5
+ <link href='../common.css' media='all' rel='stylesheet' type='text/css'>
6
+ <title>Appendices: The final frontier?</title>
7
+ </head>
8
+ <body>
9
+ <div id='content'>
10
+ <div id='pagetop'>
11
+ <div id='breadcrumb'>
12
+ Table of Contents
13
+ <span class='sep'>&gt;</span>
14
+ Appendices: The final frontier?
15
+ </div>
16
+ <h1 id='title'>Appendices: The final frontier?</h1>
17
+ </div>
18
+ <div id='pagebody'>
19
+ <div id='mainbody'>
20
+ </div>
21
+ <div id='pagefooter'>
22
+ Copyright ©2010.
23
+ All Rights Reserved.
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </body>
28
+ </html>
@@ -0,0 +1,108 @@
1
+ html, body
2
+ {
3
+ margin:0;
4
+ padding:0;
5
+ background:white;
6
+ }
7
+
8
+ #breadcrumb
9
+ {
10
+ margin:0;
11
+ background:black;
12
+ padding-left:1em;
13
+ font-family: 'Arial', sans-serif;
14
+ font-size:14px; font-weight:bold;
15
+ white-space:nowrap;
16
+ height:40px; line-height:40px; color:white; overflow:hidden;
17
+ color:#fff;
18
+ }
19
+
20
+ #breadcrumb a
21
+ {
22
+ color:#fff; text-decoration:none
23
+ }
24
+
25
+ #breadcrumb a:hover
26
+ {
27
+ color:#74b71b
28
+ }
29
+ #breadcrumb .sep
30
+ {
31
+ color:#999; font-weight:normal; padding:0 0.2em
32
+ }
33
+
34
+ div#mainbody
35
+ {
36
+ padding-right:0 ! important; padding-bottom:2em;
37
+ }
38
+
39
+ div.section
40
+ {
41
+ margin-left:2em
42
+ }
43
+
44
+ a:link, a:visited { white-space:nowrap; color:#6e8e34 }
45
+ a:hover { color:#74b71b }
46
+
47
+ h1 {
48
+ margin:0;
49
+ padding-left:14px;
50
+ padding-right:50px;
51
+ font-family: 'Arial', sans-serif;
52
+ white-space:nowrap;
53
+ font-size:18px;
54
+ background:#6eb103 url(images/bg_green_bar_revised.gif) repeat-x;
55
+ height:30px; line-height:30px; color:white; overflow:hidden;
56
+ border-bottom:1px solid #999
57
+ }
58
+
59
+ h2
60
+ {
61
+ clear:both;
62
+ margin-top:4em;
63
+ }
64
+ h2, h3, h4
65
+ {
66
+ border-bottom:1px solid #dddddd;
67
+ margin-right:350px;
68
+ font-size:100%
69
+ }
70
+ h2.first-child, h3.first-child, h4.first-child
71
+ {
72
+ margin-top:0
73
+ }
74
+ h3, h4
75
+ {
76
+ margin-top:2em;
77
+ font-style:italic
78
+ }
79
+
80
+ .moreinfo
81
+ {
82
+ font-style:italic;
83
+ color:#666;
84
+ }
85
+
86
+ .moreinfo a
87
+ {
88
+ color: #6e8e34
89
+ }
90
+ .moreinfo a:hover
91
+ {
92
+ color: #76b900
93
+ }
94
+
95
+ sup
96
+ {
97
+ font-size:85%
98
+ }
99
+ #pagebody { margin:1em 2em }
100
+ #pagebody h1 {
101
+ background:#666; color:#ccc; border:1px solid #333; font-size:100%; padding:0.2em 1em; line-height:1em ! important;
102
+ height:auto ! important; margin-top:1.5em
103
+ }
104
+
105
+ div#pagefooter {
106
+ margin-top:10em ! important; margin-bottom:1em ! important; width:25em; overflow:hidden; white-space:nowrap;
107
+ background:#eee; border:1px solid #ccc; border-left:none; color:#999; font-size:7pt ! important; padding:0.1em 1em
108
+ }
@@ -0,0 +1 @@
1
+ $glossaryTerms = {};
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
5
+ <link href='common.css' media='all' rel='stylesheet' type='text/css'>
6
+ <title>headers</title>
7
+ </head>
8
+ <body>
9
+ <div id='content'>
10
+ <div id='pagetop'>
11
+ <div id='breadcrumb'>
12
+ Table of Contents
13
+ <span class='sep'>&gt;</span>
14
+ headers
15
+ </div>
16
+ <h1 id='title'>headers</h1>
17
+ </div>
18
+ <div id='pagebody'>
19
+ <div id='mainbody'><h1>I like Chicken, I like Liver</h1>
20
+
21
+ <p>MeowMix MeowMix, please deliver.</p>
22
+
23
+ <h2>Delivery Options</h2>
24
+
25
+ <p>You could just put it in my bowl. Or you could:</p>
26
+
27
+ <ul>
28
+ <li>Put it on a fancy plate.</li>
29
+ <li>Let me eat it out of your hand.</li>
30
+ <li>Just dump it all over the floor and let me lick up dust
31
+ at the same time as I scarf the food.</li>
32
+ </ul>
33
+
34
+ </div>
35
+ <div id='pagefooter'>
36
+ Copyright ©2010.
37
+ All Rights Reserved.
38
+ </div>
39
+ </div>
40
+ </div>
41
+ </body>
42
+ </html>
@@ -0,0 +1,36 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
5
+ <link href='common.css' media='all' rel='stylesheet' type='text/css'>
6
+ <title>preamble</title>
7
+ </head>
8
+ <body>
9
+ <div id='content'>
10
+ <div id='pagetop'>
11
+ <div id='breadcrumb'>
12
+ Table of Contents
13
+ <span class='sep'>&gt;</span>
14
+ preamble
15
+ </div>
16
+ <h1 id='title'>preamble</h1>
17
+ </div>
18
+ <div id='pagebody'>
19
+ <div id='mainbody'><p>This page was generated by Haml!</p>
20
+ <ul>
21
+ <li>Generated Item #1</li>
22
+ <li>Generated Item #2</li>
23
+ <li>Generated Item #3</li>
24
+ <li>Generated Item #4</li>
25
+ <li>Generated Item #5</li>
26
+ </ul>
27
+
28
+ </div>
29
+ <div id='pagefooter'>
30
+ Copyright ©2010.
31
+ All Rights Reserved.
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </body>
36
+ </html>
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
5
+ <link href='common.css' media='all' rel='stylesheet' type='text/css'>
6
+ <title>raw</title>
7
+ </head>
8
+ <body>
9
+ <div id='content'>
10
+ <div id='pagetop'>
11
+ <div id='breadcrumb'>
12
+ Table of Contents
13
+ <span class='sep'>&gt;</span>
14
+ raw
15
+ </div>
16
+ <h1 id='title'>raw</h1>
17
+ </div>
18
+ <div id='pagebody'>
19
+ <div id='mainbody'><p>This is a simple two paragraph page.</p>
20
+ <p>This is the second paragraph. Click on the <span class='glossary' term='foinkle'>foinkle</span> to start the fun.</p>
21
+ <p>IMPORTANT: READ THE FOLLOWING TERMS AND CONDITIONS BEFORE USING THE ACCOMPANYING NVIDIA PHYSX SDK.<br />
22
+ BY CLICKING ON THE &quot;ACCEPT” BUTTON, YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT AND AGREE TO BE BOUND BY THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF THIS AGREEMENT, NVIDIA IS NOT WILLING TO LICENSE THE PHYSX SDK TO YOU. IF YOU DO NOT AGREE TO THESE TERMS, YOU MAY, WITHIN 15 DAYS, DESTROY THIS ENTIRE PRODUCT AND PROVIDE WRITTEN VERIFICATION OF DELETION OF ALL COPIES OF THE ENTIRE PRODUCT.</p>
23
+ <p>RedCloth&#8217;s parser is said to &#8220;sexify&#8221; English apostrophes and quotation marks&#8230;what does it do for the &#8217;80s&#8212;which should curl to the <em>left</em>&#8212;I wonder?</p>
24
+ <p>A 2&#215;4 is actually 1.5&#8243; &#215; 3.5&#8243;.</p>
25
+ </div>
26
+ <div id='pagefooter'>
27
+ Copyright ©2010.
28
+ All Rights Reserved.
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </body>
33
+ </html>
File without changes
File without changes
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.2.2
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Kistner
@@ -10,11 +10,11 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-15 00:00:00 -07:00
13
+ date: 2010-01-16 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: bluecloth
17
+ name: haml
18
18
  type: :runtime
19
19
  version_requirement:
20
20
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,7 +24,17 @@ dependencies:
24
24
  version: "0"
25
25
  version:
26
26
  - !ruby/object:Gem::Dependency
27
- name: haml
27
+ name: nokogiri
28
+ type: :runtime
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ version:
36
+ - !ruby/object:Gem::Dependency
37
+ name: bluecloth
28
38
  type: :runtime
29
39
  version_requirement:
30
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -64,11 +74,11 @@ files:
64
74
  - lib/docubot/index.rb
65
75
  - lib/docubot/page.rb
66
76
  - lib/docubot/shells/default/0_License.md
77
+ - lib/docubot/shells/default/_static/logo.png
67
78
  - lib/docubot/shells/default/Appendix/Glossary.md
68
79
  - lib/docubot/shells/default/Appendix/Index_Page.md
69
80
  - lib/docubot/shells/default/Appendix/Table of Contents.md
70
81
  - lib/docubot/shells/default/index.txt
71
- - lib/docubot/shells/default/_static/logo.png
72
82
  - lib/docubot/shells/docubot-help/0_License.md
73
83
  - lib/docubot/shells/docubot-help/1_Getting_Started.md
74
84
  - lib/docubot/shells/docubot-help/2_Basic_Concepts/0 The Metasection.md
@@ -84,39 +94,21 @@ files:
84
94
  - lib/docubot/shells/docubot-help/4_Appendix/Glossary.md
85
95
  - lib/docubot/shells/docubot-help/4_Appendix/Index_Page.md
86
96
  - lib/docubot/shells/docubot-help/4_Appendix/Table of Contents.md
87
- - lib/docubot/shells/docubot-help/index.txt
88
97
  - lib/docubot/shells/docubot-help/_glossary/Template.md
89
98
  - lib/docubot/shells/docubot-help/_static/glider.png
90
- - lib/docubot/shells/nvphysx/0_License.md
91
- - lib/docubot/shells/nvphysx/1_Getting_Started.haml
92
- - lib/docubot/shells/nvphysx/Appendix/Glossary.md
93
- - lib/docubot/shells/nvphysx/index.txt
94
- - lib/docubot/shells/nvphysx/_glossary/APEX.md
95
- - lib/docubot/shells/nvphysx/_glossary/NVIDIA.md
96
- - lib/docubot/shells/nvphysx/_glossary/PhysX.textile
97
- - lib/docubot/shells/nvphysx/_static/NVBadge_3D.png
98
- - lib/docubot/shells/nvphysx/_static/PhysXbyNV_Black.png
99
- - lib/docubot/shells/nvphysx/_templates/top.haml
100
- - lib/docubot/shells/nvphysx/_templates/_root/bg_green_bar_revised.gif
101
- - lib/docubot/shells/nvphysx/_templates/_root/close.png
102
- - lib/docubot/shells/nvphysx/_templates/_root/common.css
103
- - lib/docubot/shells/nvphysx/_templates/_root/glossary.css
104
- - lib/docubot/shells/nvphysx/_templates/_root/glossary.js
105
- - lib/docubot/shells/nvphysx/_templates/_root/nvdevtools.js
106
- - lib/docubot/shells/nvphysx/_templates/_root/nvidia-logo.gif
107
- - lib/docubot/shells/nvphysx/_templates/_root/right-sidebar.png
99
+ - lib/docubot/shells/docubot-help/index.txt
108
100
  - lib/docubot/snippet.rb
109
101
  - lib/docubot/snippets/glossary.rb
110
102
  - lib/docubot/snippets/index_entries.rb
103
+ - lib/docubot/templates/_root/common.css
104
+ - lib/docubot/templates/_root/toc.css
105
+ - lib/docubot/templates/_root/toc.js
111
106
  - lib/docubot/templates/glossary.haml
112
107
  - lib/docubot/templates/index.haml
113
108
  - lib/docubot/templates/page.haml
114
109
  - lib/docubot/templates/section.haml
115
110
  - lib/docubot/templates/toc.haml
116
111
  - lib/docubot/templates/top.haml
117
- - lib/docubot/templates/_root/common.css
118
- - lib/docubot/templates/_root/toc.css
119
- - lib/docubot/templates/_root/toc.js
120
112
  - lib/docubot/writer.rb
121
113
  - lib/docubot/writers/chm/hhc.erb
122
114
  - lib/docubot/writers/chm/hhk.erb
@@ -133,6 +125,23 @@ files:
133
125
  - test/site1/headers.md
134
126
  - test/site1/preamble.haml
135
127
  - test/site1/raw.textile
128
+ - test/site1_html/_index.html
129
+ - test/site1_html/_toc.html
130
+ - test/site1_html/A Slight Change of Heart/1 Ze First Page in Ze Section.html
131
+ - test/site1_html/A Slight Change of Heart/2 Another Page in the Section.html
132
+ - test/site1_html/A Slight Change of Heart/3_more_crap.html
133
+ - test/site1_html/A Slight Change of Heart/3_more_crap.html#frist-post
134
+ - test/site1_html/A Slight Change of Heart/3_more_crap.html#moar
135
+ - test/site1_html/A Slight Change of Heart/index.html
136
+ - test/site1_html/appendices/gkheadftw.html
137
+ - test/site1_html/appendices/index.html
138
+ - test/site1_html/common.css
139
+ - test/site1_html/glossary-terms.js
140
+ - test/site1_html/headers.html
141
+ - test/site1_html/preamble.html
142
+ - test/site1_html/raw.html
143
+ - test/site1_html/toc.css
144
+ - test/site1_html/toc.js
136
145
  has_rdoc: true
137
146
  homepage: http://github.com/Phrogz/docubot
138
147
  licenses: []
@@ -156,8 +165,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
165
  version:
157
166
  requirements:
158
167
  - Windows with HTML Help Workshop installed.
159
- - BlueCloth gem for Markdown conversion.
160
168
  - Haml gem for template interpretation.
169
+ - Nokogiri gem for parsing HTML after creation (and manipulating).
170
+ - BlueCloth gem for Markdown conversion.
161
171
  - RedCloth gem for Textile conversion.
162
172
  rubyforge_project:
163
173
  rubygems_version: 1.3.5