docubot 0.3 → 0.3.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.
Files changed (89) hide show
  1. data/bin/docubot +0 -0
  2. data/lib/docubot/bundle.rb +75 -11
  3. data/lib/docubot/glossary.rb +19 -14
  4. data/lib/docubot/page.rb +114 -56
  5. data/lib/docubot/shells/nvphysx/0_License.md +3 -0
  6. data/lib/docubot/shells/nvphysx/1_Getting_Started.haml +51 -0
  7. data/lib/docubot/shells/nvphysx/Appendix/Glossary.md +7 -0
  8. data/lib/docubot/shells/nvphysx/_glossary/APEX.md +1 -0
  9. data/lib/docubot/shells/nvphysx/_glossary/NVIDIA.md +1 -0
  10. data/lib/docubot/shells/nvphysx/_glossary/PhysX.textile +3 -0
  11. data/lib/docubot/shells/nvphysx/_static/NVBadge_3D.png +0 -0
  12. data/lib/docubot/shells/nvphysx/_static/PhysXbyNV_Black.png +0 -0
  13. data/lib/docubot/shells/nvphysx/_templates/_root/bg_green_bar_revised.gif +0 -0
  14. data/lib/docubot/shells/nvphysx/_templates/_root/close.png +0 -0
  15. data/lib/docubot/shells/nvphysx/_templates/_root/common.css +264 -0
  16. data/lib/docubot/shells/nvphysx/_templates/_root/glossary.css +4 -0
  17. data/lib/docubot/shells/nvphysx/_templates/_root/glossary.js +24 -0
  18. data/lib/docubot/shells/nvphysx/_templates/_root/nvdevtools.js +31 -0
  19. data/lib/docubot/shells/nvphysx/_templates/_root/nvidia-logo.gif +0 -0
  20. data/lib/docubot/shells/nvphysx/_templates/_root/right-sidebar.png +0 -0
  21. data/lib/docubot/shells/nvphysx/_templates/top.haml +28 -0
  22. data/lib/docubot/shells/nvphysx/index.txt +5 -0
  23. data/lib/docubot/snippet.rb +1 -0
  24. data/lib/docubot/snippets/glossary.rb +1 -0
  25. data/lib/docubot/templates/_root/glossary.css +4 -0
  26. data/lib/docubot/templates/_root/glossary.js +58 -0
  27. data/lib/docubot/templates/glossary.haml +3 -2
  28. data/lib/docubot/templates/top.haml +4 -0
  29. data/lib/docubot/writers/chm.rb +6 -3
  30. data/lib/docubot/writers/html.rb +1 -1
  31. data/spec/_all.rb +12 -0
  32. data/spec/_helper.rb +6 -0
  33. data/spec/bundle.rb +142 -0
  34. data/spec/command.rb +3 -0
  35. data/spec/converters.rb +2 -0
  36. data/spec/glossary.rb +93 -0
  37. data/spec/index.rb +2 -0
  38. data/spec/page.rb +24 -0
  39. data/spec/samples/glossary/Glossary.txt +5 -0
  40. data/spec/samples/glossary/Some Page.md +3 -0
  41. data/spec/samples/glossary/_glossary/Simple Term.md +3 -0
  42. data/spec/samples/glossary/_glossary/complex.haml +8 -0
  43. data/spec/samples/glossary/_glossary/project_x.md +4 -0
  44. data/spec/samples/link_test/index.txt +11 -0
  45. data/spec/samples/link_test/root.md +14 -0
  46. data/spec/samples/link_test/sub1/inner1.md +11 -0
  47. data/spec/samples/link_test/sub2.md +3 -0
  48. data/{test/site1_html/toc.css → spec/samples/link_test/sub2/bozo.bin} +0 -0
  49. data/spec/samples/link_test/sub2/inner2.md +7 -0
  50. data/spec/samples/simplest/HTML.html +10 -0
  51. data/spec/samples/simplest/Haml.haml +13 -0
  52. data/spec/samples/simplest/Markdown.md +10 -0
  53. data/spec/samples/simplest/Text.txt +10 -0
  54. data/spec/samples/simplest/Textile.textile +10 -0
  55. data/test/site1_html/toc.js b/data/spec/samples/titletest/1 First → One.txt +0 -0
  56. data/spec/samples/titletest/2_Second_One.txt +0 -0
  57. data/spec/samples/titletest/3_renamed.txt +2 -0
  58. data/spec/samples/titletest/4 Fourth_One.txt b/data/spec/samples/titletest/4 → Fourth_One.txt +0 -0
  59. data/spec/samples/titletest/5_Fifth One.txt b/data/spec/samples/titletest/5_Fifth → One.txt +0 -0
  60. data/spec/samples/titletest/index.txt +2 -0
  61. data/spec/templates.rb +2 -0
  62. data/spec/toc.rb +73 -0
  63. data/spec/writer/chm.rb +2 -0
  64. data/spec/writer/html.rb +2 -0
  65. metadata +74 -35
  66. data/test/all.rb +0 -8
  67. data/test/site1/A Slight Change of Heart/1 Ze First Page in Ze Section.md +0 -1
  68. data/test/site1/A Slight Change of Heart/2 Another Page in the Section.md +0 -1
  69. data/test/site1/A Slight Change of Heart/3_more_crap.haml +0 -17
  70. data/test/site1/appendices/gkheadftw.html +0 -2
  71. data/test/site1/appendices/index.md +0 -2
  72. data/test/site1/headers.md +0 -10
  73. data/test/site1/preamble.haml +0 -4
  74. data/test/site1/raw.textile +0 -10
  75. data/test/site1_html/A Slight Change of Heart/1 Ze First Page in Ze Section.html +0 -30
  76. data/test/site1_html/A Slight Change of Heart/2 Another Page in the Section.html +0 -30
  77. data/test/site1_html/A Slight Change of Heart/3_more_crap.html +0 -42
  78. data/test/site1_html/A Slight Change of Heart/3_more_crap.html#frist-post +0 -29
  79. data/test/site1_html/A Slight Change of Heart/3_more_crap.html#moar +0 -29
  80. data/test/site1_html/A Slight Change of Heart/index.html +0 -28
  81. data/test/site1_html/_index.html +0 -17
  82. data/test/site1_html/_toc.html +0 -73
  83. data/test/site1_html/appendices/gkheadftw.html +0 -32
  84. data/test/site1_html/appendices/index.html +0 -28
  85. data/test/site1_html/common.css +0 -108
  86. data/test/site1_html/glossary-terms.js +0 -1
  87. data/test/site1_html/headers.html +0 -42
  88. data/test/site1_html/preamble.html +0 -36
  89. data/test/site1_html/raw.html +0 -33
@@ -1,42 +0,0 @@
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>Additional Helpful Information</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='../A Slight Change of Heart/index.html'>A Slight Change of Heart</a>
15
- <span class='sep'>&gt;</span>
16
- Additional Helpful Information
17
- </div>
18
- <h1 id='title'>Additional Helpful Information</h1>
19
- <div id='author'>Gavin Kistner</div>
20
- </div>
21
- <div id='pagebody'>
22
- <div id='mainbody'><h2 id='frist-post'>Title Verification</h2>
23
- <p>The title of this page should be "Additional Helpful Information", not "More Crap".</p>
24
- <h2 id='moar'>TOC Verification</h2>
25
- <p>The TOC for this page should have sub-entries for the referenced headings.</p>
26
-
27
- <ul>
28
- <li>The links should be named for the headings.</li>
29
- <li>The links should link to the headings.</li>
30
- </ul>
31
- <h2 id='dumb'>Exclusivity</h2>
32
- <p>The TOC should not, however, have this last heading.</p>
33
-
34
- </div>
35
- <div id='pagefooter'>
36
- Copyright ©2010.
37
- All Rights Reserved.
38
- </div>
39
- </div>
40
- </div>
41
- </body>
42
- </html>
@@ -1,29 +0,0 @@
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>Title Verification</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='../A Slight Change of Heart/index.html'>A Slight Change of Heart</a>
15
- <span class='sep'>&gt;</span>
16
- Title Verification
17
- </div>
18
- <h1 id='title'>Title Verification</h1>
19
- </div>
20
- <div id='pagebody'>
21
- <div id='mainbody'></div>
22
- <div id='pagefooter'>
23
- Copyright ©2010.
24
- All Rights Reserved.
25
- </div>
26
- </div>
27
- </div>
28
- </body>
29
- </html>
@@ -1,29 +0,0 @@
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>TOC Verification</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='../A Slight Change of Heart/index.html'>A Slight Change of Heart</a>
15
- <span class='sep'>&gt;</span>
16
- TOC Verification
17
- </div>
18
- <h1 id='title'>TOC Verification</h1>
19
- </div>
20
- <div id='pagebody'>
21
- <div id='mainbody'></div>
22
- <div id='pagefooter'>
23
- Copyright ©2010.
24
- All Rights Reserved.
25
- </div>
26
- </div>
27
- </div>
28
- </body>
29
- </html>
@@ -1,28 +0,0 @@
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>A Slight Change of Heart</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 Slight Change of Heart
15
- </div>
16
- <h1 id='title'>A Slight Change of Heart</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>
@@ -1,17 +0,0 @@
1
- <ul id='index'>
2
- <li>
3
- <a href='headers.html'>Delivery Options</a>
4
- </li>
5
- <li>
6
- <a href='A Slight Change of Heart/3_more_crap.html'>Exclusivity</a>
7
- </li>
8
- <li>
9
- <a href='headers.html'>I like Chicken, I like Liver</a>
10
- </li>
11
- <li>
12
- <a href='A Slight Change of Heart/3_more_crap.html'>Title Verification</a>
13
- </li>
14
- <li>
15
- <a href='A Slight Change of Heart/3_more_crap.html'>TOC Verification</a>
16
- </li>
17
- </ul>
@@ -1,73 +0,0 @@
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>
@@ -1,32 +0,0 @@
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>
@@ -1,28 +0,0 @@
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>
@@ -1,108 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- $glossaryTerms = {};
@@ -1,42 +0,0 @@
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>
@@ -1,36 +0,0 @@
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>