webby 0.8.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +19 -0
- data/Manifest.txt +104 -91
- data/README.txt +27 -45
- data/Rakefile +4 -5
- data/bin/webby +2 -1
- data/bin/webby-gen +8 -0
- data/{data/Rakefile → examples/blog/Sitefile} +0 -2
- data/examples/{webby → blog}/tasks/blog.rake +5 -4
- data/{data → examples/blog}/templates/atom_feed.erb +10 -11
- data/{data → examples/blog}/templates/blog/month.erb +1 -1
- data/{data → examples/blog}/templates/blog/post.erb +1 -0
- data/{data → examples/blog}/templates/blog/year.erb +1 -1
- data/examples/presentation/{Rakefile → Sitefile} +0 -4
- data/examples/presentation/content/{_sample_code.txt → presentation/_sample_code.txt} +0 -0
- data/examples/presentation/content/{index.txt → presentation/index.txt} +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/blank.gif +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/bodybg.gif +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/framing.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/iepngfix.htc +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/opera.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/outline.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/pretty.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/print.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/s5-core.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/slides.css +0 -0
- data/{data/content → examples/presentation/content/presentation}/s5/slides.js +0 -0
- data/examples/presentation/layouts/{presentation.rhtml → presentation.txt} +3 -3
- data/examples/presentation/templates/{_partial.erb → _code_partial.erb} +0 -0
- data/examples/tumblog/Sitefile +9 -0
- data/examples/tumblog/content/css/tumblog.css +308 -0
- data/examples/tumblog/content/images/tumblog/permalink.gif +0 -0
- data/examples/tumblog/content/images/tumblog/rss.gif +0 -0
- data/examples/tumblog/content/tumblog/200806/the-noble-chicken/index.txt +12 -0
- data/examples/tumblog/content/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +12 -0
- data/examples/tumblog/content/tumblog/200807/mad-city-chickens/index.txt +10 -0
- data/examples/tumblog/content/tumblog/200807/the-wisdom-of-the-dutch/index.txt +11 -0
- data/examples/tumblog/content/tumblog/200807/up-a-tree/index.txt +13 -0
- data/examples/tumblog/content/tumblog/index.txt +37 -0
- data/examples/tumblog/content/tumblog/rss.txt +37 -0
- data/examples/tumblog/layouts/tumblog/default.txt +44 -0
- data/examples/tumblog/layouts/tumblog/post.txt +15 -0
- data/examples/tumblog/lib/tumblog_helper.rb +32 -0
- data/examples/tumblog/tasks/tumblog.rake +30 -0
- data/examples/tumblog/templates/atom_feed.erb +40 -0
- data/examples/tumblog/templates/tumblog/conversation.erb +12 -0
- data/examples/tumblog/templates/tumblog/link.erb +10 -0
- data/examples/tumblog/templates/tumblog/photo.erb +13 -0
- data/examples/tumblog/templates/tumblog/post.erb +12 -0
- data/examples/tumblog/templates/tumblog/quote.erb +11 -0
- data/examples/webby/{Rakefile → Sitefile} +2 -2
- data/examples/webby/content/communicate/index.txt +28 -0
- data/examples/webby/content/css/background.gif +0 -0
- data/examples/webby/content/css/site.css +52 -20
- data/examples/webby/content/index.txt +7 -8
- data/examples/webby/content/learn/index.txt +28 -0
- data/examples/webby/content/reference/index.txt +3 -1
- data/examples/webby/content/release-notes/rel-0-9-0/index.txt +73 -0
- data/examples/webby/content/sitemap.txt +31 -0
- data/examples/webby/content/tips_and_tricks/index.txt +1 -1
- data/examples/webby/content/tutorial/index.txt +17 -17
- data/examples/webby/content/{manual → user-manual}/index.txt +53 -50
- data/examples/webby/layouts/{default.rhtml → default.txt} +8 -15
- data/examples/webby/templates/page.erb +1 -1
- data/examples/website/Sitefile +7 -0
- data/{data → examples/website}/content/css/blueprint/License.txt +0 -0
- data/{data → examples/website}/content/css/blueprint/Readme.txt +0 -0
- data/{data → examples/website}/content/css/blueprint/compressed/print.css +0 -0
- data/{data → examples/website}/content/css/blueprint/compressed/screen.css +0 -0
- data/{data → examples/website}/content/css/blueprint/lib/forms.css +0 -0
- data/{data → examples/website}/content/css/blueprint/lib/grid.css +0 -0
- data/{data → examples/website}/content/css/blueprint/lib/grid.png +0 -0
- data/{data → examples/website}/content/css/blueprint/lib/ie.css +0 -0
- data/{data → examples/website}/content/css/blueprint/lib/reset.css +0 -0
- data/{data → examples/website}/content/css/blueprint/lib/typography.css +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/buttons/Readme +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/buttons/buttons.css +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/css-classes/Readme +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/css-classes/css-classes.css +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/Readme +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css +0 -0
- data/{data → examples/website}/content/css/blueprint/plugins/fancy-type/fancy-type.css +0 -0
- data/{data → examples/website}/content/css/blueprint/print.css +0 -0
- data/{data → examples/website}/content/css/blueprint/screen.css +0 -0
- data/{data → examples/website}/content/css/coderay.css +0 -0
- data/{data → examples/website}/content/css/site.css +0 -0
- data/{data → examples/website}/content/index.txt +2 -1
- data/{data/layouts/default.rhtml → examples/website/layouts/default.txt} +1 -1
- data/{data → examples/website}/lib/breadcrumbs.rb +0 -0
- data/{data → examples/website}/templates/_partial.erb +0 -0
- data/{data → examples/website}/templates/page.erb +0 -0
- data/{data → examples/website}/templates/presentation.erb +0 -0
- data/lib/webby/apps/generator.rb +283 -0
- data/lib/webby/apps/main.rb +221 -0
- data/lib/webby/apps.rb +12 -0
- data/lib/webby/builder.rb +8 -10
- data/lib/webby/core_ext/enumerable.rb +11 -0
- data/lib/webby/{utils.rb → core_ext/hash.rb} +2 -26
- data/lib/webby/core_ext/kernel.rb +21 -0
- data/lib/webby/core_ext/string.rb +163 -0
- data/lib/webby/core_ext/time.rb +9 -0
- data/lib/webby/filters/haml.rb +13 -5
- data/lib/webby/filters/markdown.rb +12 -4
- data/lib/webby/filters/outline.rb +3 -2
- data/lib/webby/filters/sass.rb +12 -4
- data/lib/webby/filters/textile.rb +12 -4
- data/lib/webby/filters/tidy.rb +10 -8
- data/lib/webby/filters.rb +2 -0
- data/lib/webby/helpers/graphviz_helper.rb +1 -2
- data/lib/webby/helpers/tex_img_helper.rb +6 -10
- data/lib/webby/renderer.rb +5 -3
- data/lib/webby/resources/layout.rb +1 -1
- data/lib/webby/resources/page.rb +1 -1
- data/lib/webby/resources/resource.rb +13 -3
- data/lib/webby/resources.rb +16 -0
- data/{data → lib/webby}/tasks/build.rake +0 -0
- data/{examples/presentation → lib/webby}/tasks/create.rake +1 -1
- data/{data → lib/webby}/tasks/deploy.rake +0 -0
- data/{examples → lib}/webby/tasks/growl.rake +4 -1
- data/{data → lib/webby}/tasks/heel.rake +0 -0
- data/{data → lib/webby}/tasks/validate.rake +0 -0
- data/lib/webby.rb +11 -5
- data/spec/core_ext/hash_spec.rb +47 -0
- data/spec/core_ext/string_spec.rb +110 -0
- data/spec/core_ext/time_spec.rb +19 -0
- data/spec/webby/apps/generator_spec.rb +111 -0
- data/spec/webby/apps/main_spec.rb +75 -0
- data/spec/webby/helpers/capture_helper_spec.rb +1 -1
- data/spec/webby/resources_spec.rb +17 -0
- data/tasks/gem.rake +10 -2
- data/tasks/git.rake +41 -0
- data/tasks/rubyforge.rake +2 -2
- data/tasks/website.rake +38 -38
- metadata +125 -98
- data/data/tasks/blog.rake +0 -71
- data/data/tasks/create.rake +0 -22
- data/data/tasks/growl.rake +0 -12
- data/data/tasks/setup.rb +0 -17
- data/examples/presentation/content/s5/blank.gif +0 -0
- data/examples/presentation/content/s5/bodybg.gif +0 -0
- data/examples/presentation/content/s5/framing.css +0 -23
- data/examples/presentation/content/s5/iepngfix.htc +0 -42
- data/examples/presentation/content/s5/opera.css +0 -7
- data/examples/presentation/content/s5/outline.css +0 -15
- data/examples/presentation/content/s5/pretty.css +0 -86
- data/examples/presentation/content/s5/print.css +0 -1
- data/examples/presentation/content/s5/s5-core.css +0 -9
- data/examples/presentation/content/s5/slides.css +0 -3
- data/examples/presentation/content/s5/slides.js +0 -553
- data/examples/presentation/tasks/blog.rake +0 -71
- data/examples/presentation/tasks/build.rake +0 -27
- data/examples/presentation/tasks/deploy.rake +0 -22
- data/examples/presentation/tasks/growl.rake +0 -12
- data/examples/presentation/tasks/heel.rake +0 -28
- data/examples/presentation/tasks/setup.rb +0 -17
- data/examples/presentation/tasks/validate.rake +0 -19
- data/examples/webby/tasks/build.rake +0 -27
- data/examples/webby/tasks/create.rake +0 -22
- data/examples/webby/tasks/deploy.rake +0 -22
- data/examples/webby/tasks/heel.rake +0 -28
- data/examples/webby/tasks/setup.rb +0 -17
- data/examples/webby/tasks/validate.rake +0 -19
- 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,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;}
|