webby 0.8.4 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. data/History.txt +19 -0
  2. data/Manifest.txt +104 -91
  3. data/README.txt +27 -45
  4. data/Rakefile +4 -5
  5. data/bin/webby +2 -1
  6. data/bin/webby-gen +8 -0
  7. data/{data/Rakefile → examples/blog/Sitefile} +0 -2
  8. data/examples/{webby → blog}/tasks/blog.rake +5 -4
  9. data/{data → examples/blog}/templates/atom_feed.erb +10 -11
  10. data/{data → examples/blog}/templates/blog/month.erb +1 -1
  11. data/{data → examples/blog}/templates/blog/post.erb +1 -0
  12. data/{data → examples/blog}/templates/blog/year.erb +1 -1
  13. data/examples/presentation/{Rakefile → Sitefile} +0 -4
  14. data/examples/presentation/content/{_sample_code.txt → presentation/_sample_code.txt} +0 -0
  15. data/examples/presentation/content/{index.txt → presentation/index.txt} +0 -0
  16. data/{data/content → examples/presentation/content/presentation}/s5/blank.gif +0 -0
  17. data/{data/content → examples/presentation/content/presentation}/s5/bodybg.gif +0 -0
  18. data/{data/content → examples/presentation/content/presentation}/s5/framing.css +0 -0
  19. data/{data/content → examples/presentation/content/presentation}/s5/iepngfix.htc +0 -0
  20. data/{data/content → examples/presentation/content/presentation}/s5/opera.css +0 -0
  21. data/{data/content → examples/presentation/content/presentation}/s5/outline.css +0 -0
  22. data/{data/content → examples/presentation/content/presentation}/s5/pretty.css +0 -0
  23. data/{data/content → examples/presentation/content/presentation}/s5/print.css +0 -0
  24. data/{data/content → examples/presentation/content/presentation}/s5/s5-core.css +0 -0
  25. data/{data/content → examples/presentation/content/presentation}/s5/slides.css +0 -0
  26. data/{data/content → examples/presentation/content/presentation}/s5/slides.js +0 -0
  27. data/examples/presentation/layouts/{presentation.rhtml → presentation.txt} +3 -3
  28. data/examples/presentation/templates/{_partial.erb → _code_partial.erb} +0 -0
  29. data/examples/tumblog/Sitefile +9 -0
  30. data/examples/tumblog/content/css/tumblog.css +308 -0
  31. data/examples/tumblog/content/images/tumblog/permalink.gif +0 -0
  32. data/examples/tumblog/content/images/tumblog/rss.gif +0 -0
  33. data/examples/tumblog/content/tumblog/200806/the-noble-chicken/index.txt +12 -0
  34. data/examples/tumblog/content/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +12 -0
  35. data/examples/tumblog/content/tumblog/200807/mad-city-chickens/index.txt +10 -0
  36. data/examples/tumblog/content/tumblog/200807/the-wisdom-of-the-dutch/index.txt +11 -0
  37. data/examples/tumblog/content/tumblog/200807/up-a-tree/index.txt +13 -0
  38. data/examples/tumblog/content/tumblog/index.txt +37 -0
  39. data/examples/tumblog/content/tumblog/rss.txt +37 -0
  40. data/examples/tumblog/layouts/tumblog/default.txt +44 -0
  41. data/examples/tumblog/layouts/tumblog/post.txt +15 -0
  42. data/examples/tumblog/lib/tumblog_helper.rb +32 -0
  43. data/examples/tumblog/tasks/tumblog.rake +30 -0
  44. data/examples/tumblog/templates/atom_feed.erb +40 -0
  45. data/examples/tumblog/templates/tumblog/conversation.erb +12 -0
  46. data/examples/tumblog/templates/tumblog/link.erb +10 -0
  47. data/examples/tumblog/templates/tumblog/photo.erb +13 -0
  48. data/examples/tumblog/templates/tumblog/post.erb +12 -0
  49. data/examples/tumblog/templates/tumblog/quote.erb +11 -0
  50. data/examples/webby/{Rakefile → Sitefile} +2 -2
  51. data/examples/webby/content/communicate/index.txt +28 -0
  52. data/examples/webby/content/css/background.gif +0 -0
  53. data/examples/webby/content/css/site.css +52 -20
  54. data/examples/webby/content/index.txt +7 -8
  55. data/examples/webby/content/learn/index.txt +28 -0
  56. data/examples/webby/content/reference/index.txt +3 -1
  57. data/examples/webby/content/release-notes/rel-0-9-0/index.txt +73 -0
  58. data/examples/webby/content/sitemap.txt +31 -0
  59. data/examples/webby/content/tips_and_tricks/index.txt +1 -1
  60. data/examples/webby/content/tutorial/index.txt +17 -17
  61. data/examples/webby/content/{manual → user-manual}/index.txt +53 -50
  62. data/examples/webby/layouts/{default.rhtml → default.txt} +8 -15
  63. data/examples/webby/templates/page.erb +1 -1
  64. data/examples/website/Sitefile +7 -0
  65. data/{data → examples/website}/content/css/blueprint/License.txt +0 -0
  66. data/{data → examples/website}/content/css/blueprint/Readme.txt +0 -0
  67. data/{data → examples/website}/content/css/blueprint/compressed/print.css +0 -0
  68. data/{data → examples/website}/content/css/blueprint/compressed/screen.css +0 -0
  69. data/{data → examples/website}/content/css/blueprint/lib/forms.css +0 -0
  70. data/{data → examples/website}/content/css/blueprint/lib/grid.css +0 -0
  71. data/{data → examples/website}/content/css/blueprint/lib/grid.png +0 -0
  72. data/{data → examples/website}/content/css/blueprint/lib/ie.css +0 -0
  73. data/{data → examples/website}/content/css/blueprint/lib/reset.css +0 -0
  74. data/{data → examples/website}/content/css/blueprint/lib/typography.css +0 -0
  75. data/{data → examples/website}/content/css/blueprint/plugins/buttons/Readme +0 -0
  76. data/{data → examples/website}/content/css/blueprint/plugins/buttons/buttons.css +0 -0
  77. data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  78. data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
  79. data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  80. data/{data → examples/website}/content/css/blueprint/plugins/css-classes/Readme +0 -0
  81. data/{data → examples/website}/content/css/blueprint/plugins/css-classes/css-classes.css +0 -0
  82. data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/Readme +0 -0
  83. data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css +0 -0
  84. data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/fancy-type.css +0 -0
  85. data/{data → examples/website}/content/css/blueprint/print.css +0 -0
  86. data/{data → examples/website}/content/css/blueprint/screen.css +0 -0
  87. data/{data → examples/website}/content/css/coderay.css +0 -0
  88. data/{data → examples/website}/content/css/site.css +0 -0
  89. data/{data → examples/website}/content/index.txt +2 -1
  90. data/{data/layouts/default.rhtml → examples/website/layouts/default.txt} +1 -1
  91. data/{data → examples/website}/lib/breadcrumbs.rb +0 -0
  92. data/{data → examples/website}/templates/_partial.erb +0 -0
  93. data/{data → examples/website}/templates/page.erb +0 -0
  94. data/{data → examples/website}/templates/presentation.erb +0 -0
  95. data/lib/webby/apps/generator.rb +283 -0
  96. data/lib/webby/apps/main.rb +221 -0
  97. data/lib/webby/apps.rb +12 -0
  98. data/lib/webby/builder.rb +8 -10
  99. data/lib/webby/core_ext/enumerable.rb +11 -0
  100. data/lib/webby/{utils.rb → core_ext/hash.rb} +2 -26
  101. data/lib/webby/core_ext/kernel.rb +21 -0
  102. data/lib/webby/core_ext/string.rb +163 -0
  103. data/lib/webby/core_ext/time.rb +9 -0
  104. data/lib/webby/filters/haml.rb +13 -5
  105. data/lib/webby/filters/markdown.rb +12 -4
  106. data/lib/webby/filters/outline.rb +3 -2
  107. data/lib/webby/filters/sass.rb +12 -4
  108. data/lib/webby/filters/textile.rb +12 -4
  109. data/lib/webby/filters/tidy.rb +10 -8
  110. data/lib/webby/filters.rb +2 -0
  111. data/lib/webby/helpers/graphviz_helper.rb +1 -2
  112. data/lib/webby/helpers/tex_img_helper.rb +6 -10
  113. data/lib/webby/renderer.rb +5 -3
  114. data/lib/webby/resources/layout.rb +1 -1
  115. data/lib/webby/resources/page.rb +1 -1
  116. data/lib/webby/resources/resource.rb +13 -3
  117. data/lib/webby/resources.rb +16 -0
  118. data/{data → lib/webby}/tasks/build.rake +0 -0
  119. data/{examples/presentation → lib/webby}/tasks/create.rake +1 -1
  120. data/{data → lib/webby}/tasks/deploy.rake +0 -0
  121. data/{examples → lib}/webby/tasks/growl.rake +4 -1
  122. data/{data → lib/webby}/tasks/heel.rake +0 -0
  123. data/{data → lib/webby}/tasks/validate.rake +0 -0
  124. data/lib/webby.rb +11 -5
  125. data/spec/core_ext/hash_spec.rb +47 -0
  126. data/spec/core_ext/string_spec.rb +110 -0
  127. data/spec/core_ext/time_spec.rb +19 -0
  128. data/spec/webby/apps/generator_spec.rb +111 -0
  129. data/spec/webby/apps/main_spec.rb +75 -0
  130. data/spec/webby/helpers/capture_helper_spec.rb +1 -1
  131. data/spec/webby/resources_spec.rb +17 -0
  132. data/tasks/gem.rake +10 -2
  133. data/tasks/git.rake +41 -0
  134. data/tasks/rubyforge.rake +2 -2
  135. data/tasks/website.rake +38 -38
  136. metadata +125 -98
  137. data/data/tasks/blog.rake +0 -71
  138. data/data/tasks/create.rake +0 -22
  139. data/data/tasks/growl.rake +0 -12
  140. data/data/tasks/setup.rb +0 -17
  141. data/examples/presentation/content/s5/blank.gif +0 -0
  142. data/examples/presentation/content/s5/bodybg.gif +0 -0
  143. data/examples/presentation/content/s5/framing.css +0 -23
  144. data/examples/presentation/content/s5/iepngfix.htc +0 -42
  145. data/examples/presentation/content/s5/opera.css +0 -7
  146. data/examples/presentation/content/s5/outline.css +0 -15
  147. data/examples/presentation/content/s5/pretty.css +0 -86
  148. data/examples/presentation/content/s5/print.css +0 -1
  149. data/examples/presentation/content/s5/s5-core.css +0 -9
  150. data/examples/presentation/content/s5/slides.css +0 -3
  151. data/examples/presentation/content/s5/slides.js +0 -553
  152. data/examples/presentation/tasks/blog.rake +0 -71
  153. data/examples/presentation/tasks/build.rake +0 -27
  154. data/examples/presentation/tasks/deploy.rake +0 -22
  155. data/examples/presentation/tasks/growl.rake +0 -12
  156. data/examples/presentation/tasks/heel.rake +0 -28
  157. data/examples/presentation/tasks/setup.rb +0 -17
  158. data/examples/presentation/tasks/validate.rake +0 -19
  159. data/examples/webby/tasks/build.rake +0 -27
  160. data/examples/webby/tasks/create.rake +0 -22
  161. data/examples/webby/tasks/deploy.rake +0 -22
  162. data/examples/webby/tasks/heel.rake +0 -28
  163. data/examples/webby/tasks/setup.rb +0 -17
  164. data/examples/webby/tasks/validate.rake +0 -19
  165. data/lib/webby/main.rb +0 -227
@@ -1,42 +0,0 @@
1
- <public:component>
2
- <public:attach event="onpropertychange" onevent="doFix()" />
3
-
4
- <script>
5
-
6
- // IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull http://www.twinhelix.com
7
- // Free usage permitted as long as this notice remains intact.
8
-
9
- // This must be a path to a blank image. That's all the configuration you need here.
10
- var blankImg = 'ui/default/blank.gif';
11
-
12
- var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
13
-
14
- function filt(s, m) {
15
- if (filters[f]) {
16
- filters[f].enabled = s ? true : false;
17
- if (s) with (filters[f]) { src = s; sizingMethod = m }
18
- } else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
19
- }
20
-
21
- function doFix() {
22
- if ((parseFloat(navigator.userAgent.match(/MSIE (\S+)/)[1]) < 5.5) ||
23
- (event && !/(background|src)/.test(event.propertyName))) return;
24
-
25
- if (tagName == 'IMG') {
26
- if ((/\.png$/i).test(src)) {
27
- filt(src, 'image'); // was 'scale'
28
- src = blankImg;
29
- } else if (src.indexOf(blankImg) < 0) filt();
30
- } else if (style.backgroundImage) {
31
- if (style.backgroundImage.match(/^url[("']+(.*\.png)[)"']+$/i)) {
32
- var s = RegExp.$1;
33
- style.backgroundImage = '';
34
- filt(s, 'crop');
35
- } else filt();
36
- }
37
- }
38
-
39
- doFix();
40
-
41
- </script>
42
- </public:component>
@@ -1,7 +0,0 @@
1
- /* DO NOT CHANGE THESE unless you really want to break Opera Show */
2
- .slide {
3
- visibility: visible !important;
4
- position: static !important;
5
- page-break-before: always;
6
- }
7
- #slide0 {page-break-before: avoid;}
@@ -1,15 +0,0 @@
1
- /* don't change this unless you want the layout stuff to show up in the outline view! */
2
-
3
- .layout div, #footer *, #controlForm * {display: none;}
4
- #footer, #controls, #controlForm, #navLinks, #toggle {
5
- display: block; visibility: visible; margin: 0; padding: 0;}
6
- #toggle {float: right; padding: 0.5em;}
7
- html>body #toggle {position: fixed; top: 0; right: 0;}
8
-
9
- /* making the outline look pretty-ish */
10
-
11
- #slide0 h1, #slide0 h2, #slide0 h3, #slide0 h4 {border: none; margin: 0;}
12
- #slide0 h1 {padding-top: 1.5em;}
13
- .slide h1 {margin: 1.5em 0 0; padding-top: 0.25em;
14
- border-top: 1px solid #888; border-bottom: 1px solid #AAA;}
15
- #toggle {border: 1px solid; border-width: 0 0 1px 1px; background: #FFF;}
@@ -1,86 +0,0 @@
1
- /* Following are the presentation styles -- edit away! */
2
-
3
- body {background: #FFF url(bodybg.gif) -16px 0 no-repeat; color: #000; font-size: 2em;}
4
- :link, :visited {text-decoration: none; color: #00C;}
5
- #controls :active {color: #88A !important;}
6
- #controls :focus {outline: 1px dotted #227;}
7
- h1, h2, h3, h4 {font-size: 100%; margin: 0; padding: 0; font-weight: inherit;}
8
- ul, pre {margin: 0; line-height: 1em;}
9
- html, body {margin: 0; padding: 0;}
10
-
11
- blockquote, q {font-style: italic;}
12
- blockquote {padding: 0 2em 0.5em; margin: 0 1.5em 0.5em; text-align: center; font-size: 1em;}
13
- blockquote p {margin: 0;}
14
- blockquote i {font-style: normal;}
15
- blockquote b {display: block; margin-top: 0.5em; font-weight: normal; font-size: smaller; font-style: normal;}
16
- blockquote b i {font-style: italic;}
17
-
18
- kbd {font-weight: bold; font-size: 1em;}
19
- sup {font-size: smaller; line-height: 1px;}
20
-
21
- .slide code {padding: 2px 0.25em; font-weight: bold; color: #533;}
22
- .slide code.bad, code del {color: red;}
23
- .slide code.old {color: silver;}
24
- .slide pre {padding: 0; margin: 0.25em 0 0.5em 0.5em; color: #533; font-size: 90%;}
25
- .slide pre code {display: block;}
26
- .slide ul {margin-left: 5%; margin-right: 7%; list-style: disc;}
27
- .slide li {margin-top: 0.75em; margin-right: 0;}
28
- .slide ul ul {line-height: 1;}
29
- .slide ul ul li {margin: .2em; font-size: 85%; list-style: square;}
30
- .slide img.leader {display: block; margin: 0 auto;}
31
-
32
- div#header, div#footer {background: #005; color: #AAB;
33
- font-family: Verdana, Helvetica, sans-serif;}
34
- div#header {background: #005 url(bodybg.gif) -16px 0 no-repeat;
35
- line-height: 1px;}
36
- div#footer {font-size: 0.5em; font-weight: bold; padding: 1em 0;}
37
- #footer h1, #footer h2 {display: block; padding: 0 1em;}
38
- #footer h2 {font-style: italic;}
39
-
40
- div.long {font-size: 0.75em;}
41
- .slide h1 {position: absolute; top: 0.7em; left: 87px; z-index: 1;
42
- margin: 0; padding: 0.3em 0 0 50px; white-space: nowrap;
43
- font: bold 150%/1em Helvetica, sans-serif; text-transform: capitalize;
44
- color: #DDE; background: #005;}
45
- .slide h3 {font-size: 130%;}
46
- h1 abbr {font-variant: small-caps;}
47
-
48
- div#controls {position: absolute; left: 50%; bottom: 0;
49
- width: 50%;
50
- text-align: right; font: bold 0.9em Verdana, Helvetica, sans-serif;}
51
- html>body div#controls {position: fixed; padding: 0 0 1em 0;
52
- top: auto;}
53
- div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
54
- margin: 0; padding: 0;}
55
- #controls #navLinks a {padding: 0; margin: 0 0.5em;
56
- background: #005; border: none; color: #779;
57
- cursor: pointer;}
58
- #controls #navList {height: 1em;}
59
- #controls #navList #jumplist {position: absolute; bottom: 0; right: 0; background: #DDD; color: #227;}
60
-
61
- #currentSlide {text-align: center; font-size: 0.5em; color: #449;}
62
-
63
- #slide0 {padding-top: 3.5em; font-size: 90%;}
64
- #slide0 h1 {position: static; margin: 1em 0 0; padding: 0;
65
- font: bold 2em Helvetica, sans-serif; white-space: normal;
66
- color: #000; background: transparent;}
67
- #slide0 h2 {font: bold italic 1em Helvetica, sans-serif; margin: 0.25em;}
68
- #slide0 h3 {margin-top: 1.5em; font-size: 1.5em;}
69
- #slide0 h4 {margin-top: 0; font-size: 1em;}
70
-
71
- ul.urls {list-style: none; display: inline; margin: 0;}
72
- .urls li {display: inline; margin: 0;}
73
- .note {display: none;}
74
- .external {border-bottom: 1px dotted gray;}
75
- html>body .external {border-bottom: none;}
76
- .external:after {content: " \274F"; font-size: smaller; color: #77B;}
77
-
78
- .incremental, .incremental *, .incremental *:after {color: #DDE; visibility: visible;}
79
- img.incremental {visibility: hidden;}
80
- .slide .current {color: #B02;}
81
-
82
-
83
- /* diagnostics
84
-
85
- li:after {content: " [" attr(class) "]"; color: #F88;}
86
- */
@@ -1 +0,0 @@
1
- /* The following rule is necessary to have all slides appear in print! DO NOT REMOVE IT! */
@@ -1,9 +0,0 @@
1
- /* Do not edit or override these styles! The system will likely break if you do. */
2
-
3
- div#header, div#footer, div#controls, .slide {position: absolute;}
4
- html>body div#header, html>body div#footer,
5
- html>body div#controls, html>body .slide {position: fixed;}
6
- .handout {display: none;}
7
- .layout {display: block;}
8
- .slide, .hideme, .incremental {visibility: hidden;}
9
- #slide0 {visibility: visible;}
@@ -1,3 +0,0 @@
1
- @import url(s5-core.css); /* required to make the slide show run at all */
2
- @import url(framing.css); /* sets basic placement and size of slide components */
3
- @import url(pretty.css); /* stuff that makes the slides look better than blah */