TwP-webby 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/History.txt +8 -0
  2. data/Manifest.txt +35 -29
  3. data/{README.txt → README.rdoc} +9 -9
  4. data/Rakefile +9 -2
  5. data/examples/webby/content/communicate/index.txt +2 -2
  6. data/examples/webby/content/index.txt +1 -1
  7. data/examples/website/content/css/blueprint/ie.css +26 -0
  8. data/examples/website/content/css/blueprint/plugins/buttons/{Readme → readme.txt} +3 -2
  9. data/examples/website/content/css/blueprint/plugins/buttons/{buttons.css → screen.css} +1 -1
  10. data/examples/website/content/css/blueprint/plugins/fancy-type/readme.txt +14 -0
  11. data/examples/website/content/css/blueprint/plugins/fancy-type/{fancy-type.css → screen.css} +71 -74
  12. data/examples/website/content/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
  13. data/examples/website/content/css/blueprint/plugins/link-icons/icons/email.png +0 -0
  14. data/examples/website/content/css/blueprint/plugins/link-icons/icons/external.png +0 -0
  15. data/examples/website/content/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
  16. data/examples/website/content/css/blueprint/plugins/link-icons/icons/im.png +0 -0
  17. data/examples/website/content/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  18. data/examples/website/content/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
  19. data/examples/website/content/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
  20. data/examples/website/content/css/blueprint/plugins/link-icons/readme.txt +18 -0
  21. data/examples/website/content/css/blueprint/plugins/link-icons/screen.css +40 -0
  22. data/examples/website/content/css/blueprint/plugins/rtl/readme.txt +10 -0
  23. data/examples/website/content/css/blueprint/plugins/rtl/screen.css +109 -0
  24. data/examples/website/content/css/blueprint/print.css +30 -68
  25. data/examples/website/content/css/blueprint/screen.css +251 -22
  26. data/examples/website/content/css/blueprint/src/forms.css +49 -0
  27. data/examples/website/content/css/blueprint/src/grid.css +212 -0
  28. data/examples/website/content/css/blueprint/src/ie.css +59 -0
  29. data/examples/website/content/css/blueprint/src/print.css +85 -0
  30. data/examples/website/content/css/blueprint/{lib → src}/reset.css +14 -15
  31. data/examples/website/content/css/blueprint/src/typography.css +105 -0
  32. data/examples/website/layouts/default.txt +5 -2
  33. data/lib/webby/apps/main.rb +4 -1
  34. data/lib/webby/auto_builder.rb +3 -3
  35. data/lib/webby/builder.rb +5 -13
  36. data/lib/webby/filters/maruku.rb +16 -0
  37. data/lib/webby/filters/outline.rb +1 -1
  38. data/lib/webby/link_validator.rb +59 -51
  39. data/lib/webby/tasks/create.rake +4 -1
  40. data/lib/webby/tasks/validate.rake +1 -1
  41. data/lib/webby.rb +14 -3
  42. data/spec/data/html/anchor.html +11 -0
  43. data/spec/data/html/external.html +10 -0
  44. data/spec/data/html/invalid-relative.html +10 -0
  45. data/spec/data/html/relative-anchor.html +10 -0
  46. data/spec/data/html/relative-invalid-anchor.html +10 -0
  47. data/spec/data/html/relative.html +10 -0
  48. data/spec/spec_helper.rb +7 -0
  49. data/spec/webby/filters/maruku_spec.rb +31 -0
  50. data/spec/webby/filters/textile_spec.rb +15 -4
  51. data/spec/webby/link_validator_spec.rb +154 -0
  52. data/tasks/mswin32.rake +38 -0
  53. data/tasks/website.rake +0 -1
  54. metadata +52 -24
  55. data/examples/website/content/css/blueprint/License.txt +0 -21
  56. data/examples/website/content/css/blueprint/Readme.txt +0 -100
  57. data/examples/website/content/css/blueprint/compressed/print.css +0 -76
  58. data/examples/website/content/css/blueprint/compressed/screen.css +0 -696
  59. data/examples/website/content/css/blueprint/lib/forms.css +0 -45
  60. data/examples/website/content/css/blueprint/lib/grid.css +0 -193
  61. data/examples/website/content/css/blueprint/lib/ie.css +0 -30
  62. data/examples/website/content/css/blueprint/lib/typography.css +0 -116
  63. data/examples/website/content/css/blueprint/plugins/css-classes/Readme +0 -14
  64. data/examples/website/content/css/blueprint/plugins/css-classes/css-classes.css +0 -24
  65. data/examples/website/content/css/blueprint/plugins/fancy-type/Readme +0 -22
  66. data/examples/website/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css +0 -5
  67. data/tasks/ann.rake +0 -81
  68. data/tasks/bones.rake +0 -21
  69. data/tasks/gem.rake +0 -187
  70. data/tasks/git.rake +0 -41
  71. data/tasks/manifest.rake +0 -48
  72. data/tasks/notes.rake +0 -28
  73. data/tasks/post_load.rake +0 -39
  74. data/tasks/rdoc.rake +0 -51
  75. data/tasks/rubyforge.rake +0 -55
  76. data/tasks/setup.rb +0 -268
  77. data/tasks/spec.rake +0 -55
  78. /data/examples/website/content/css/blueprint/{lib → src}/grid.png +0 -0
@@ -0,0 +1,212 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ grid.css
4
+ * Sets up an easy-to-use grid of 24 columns.
5
+
6
+ By default, the grid is 950px wide, with 24 columns
7
+ spanning 30px, and a 10px margin between columns.
8
+
9
+ If you need fewer or more columns, namespaces or semantic
10
+ element names, use the compressor script (lib/compress.rb)
11
+
12
+ Note: Changes made in this file will not be applied when
13
+ using the compressor: make changes in lib/blueprint/grid.css.rb
14
+
15
+ -------------------------------------------------------------- */
16
+
17
+ /* A container should group all your columns. */
18
+ .container {
19
+ width: 950px;
20
+ margin: 0 auto;
21
+ }
22
+
23
+ /* Use this class on any .span / container to see the grid. */
24
+ .showgrid { background: url(src/grid.png); }
25
+
26
+
27
+ /* Columns
28
+ -------------------------------------------------------------- */
29
+
30
+ /* Sets up basic grid floating and margin. */
31
+ .column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5,
32
+ div.span-6, div.span-7, div.span-8, div.span-9, div.span-10,
33
+ div.span-11, div.span-12, div.span-13, div.span-14, div.span-15,
34
+ div.span-16, div.span-17, div.span-18, div.span-19, div.span-20,
35
+ div.span-21, div.span-22, div.span-23, div.span-24 {
36
+ float: left;
37
+ margin-right: 10px;
38
+ }
39
+
40
+ /* The last column in a row needs this class. */
41
+ .last, div.last { margin-right: 0; }
42
+
43
+ /* Use these classes to set the width of a column. */
44
+ .span-1 { width: 30px; }
45
+ .span-2 { width: 70px; }
46
+ .span-3 { width: 110px; }
47
+ .span-4 { width: 150px; }
48
+ .span-5 { width: 190px; }
49
+ .span-6 { width: 230px; }
50
+ .span-7 { width: 270px; }
51
+ .span-8 { width: 310px; }
52
+ .span-9 { width: 350px; }
53
+ .span-10 { width: 390px; }
54
+ .span-11 { width: 430px; }
55
+ .span-12 { width: 470px; }
56
+ .span-13 { width: 510px; }
57
+ .span-14 { width: 550px; }
58
+ .span-15 { width: 590px; }
59
+ .span-16 { width: 630px; }
60
+ .span-17 { width: 670px; }
61
+ .span-18 { width: 710px; }
62
+ .span-19 { width: 750px; }
63
+ .span-20 { width: 790px; }
64
+ .span-21 { width: 830px; }
65
+ .span-22 { width: 870px; }
66
+ .span-23 { width: 910px; }
67
+ .span-24 { width: 950px; margin: 0; }
68
+
69
+ /* Add these to a column to append empty cols. */
70
+ .append-1 { padding-right: 40px; }
71
+ .append-2 { padding-right: 80px; }
72
+ .append-3 { padding-right: 120px; }
73
+ .append-4 { padding-right: 160px; }
74
+ .append-5 { padding-right: 200px; }
75
+ .append-6 { padding-right: 240px; }
76
+ .append-7 { padding-right: 280px; }
77
+ .append-8 { padding-right: 320px; }
78
+ .append-9 { padding-right: 360px; }
79
+ .append-10 { padding-right: 400px; }
80
+ .append-11 { padding-right: 440px; }
81
+ .append-12 { padding-right: 480px; }
82
+ .append-13 { padding-right: 520px; }
83
+ .append-14 { padding-right: 560px; }
84
+ .append-15 { padding-right: 600px; }
85
+ .append-16 { padding-right: 640px; }
86
+ .append-17 { padding-right: 680px; }
87
+ .append-18 { padding-right: 720px; }
88
+ .append-19 { padding-right: 760px; }
89
+ .append-20 { padding-right: 800px; }
90
+ .append-21 { padding-right: 840px; }
91
+ .append-22 { padding-right: 880px; }
92
+ .append-23 { padding-right: 920px; }
93
+
94
+ /* Add these to a column to prepend empty cols. */
95
+ .prepend-1 { padding-left: 40px; }
96
+ .prepend-2 { padding-left: 80px; }
97
+ .prepend-3 { padding-left: 120px; }
98
+ .prepend-4 { padding-left: 160px; }
99
+ .prepend-5 { padding-left: 200px; }
100
+ .prepend-6 { padding-left: 240px; }
101
+ .prepend-7 { padding-left: 280px; }
102
+ .prepend-8 { padding-left: 320px; }
103
+ .prepend-9 { padding-left: 360px; }
104
+ .prepend-10 { padding-left: 400px; }
105
+ .prepend-11 { padding-left: 440px; }
106
+ .prepend-12 { padding-left: 480px; }
107
+ .prepend-13 { padding-left: 520px; }
108
+ .prepend-14 { padding-left: 560px; }
109
+ .prepend-15 { padding-left: 600px; }
110
+ .prepend-16 { padding-left: 640px; }
111
+ .prepend-17 { padding-left: 680px; }
112
+ .prepend-18 { padding-left: 720px; }
113
+ .prepend-19 { padding-left: 760px; }
114
+ .prepend-20 { padding-left: 800px; }
115
+ .prepend-21 { padding-left: 840px; }
116
+ .prepend-22 { padding-left: 880px; }
117
+ .prepend-23 { padding-left: 920px; }
118
+
119
+
120
+ /* Border on right hand side of a column. */
121
+ .border {
122
+ padding-right: 4px;
123
+ margin-right: 5px;
124
+ border-right: 1px solid #eee;
125
+ }
126
+
127
+ /* Border with more whitespace, spans one column. */
128
+ .colborder {
129
+ padding-right: 24px;
130
+ margin-right: 25px;
131
+ border-right: 1px solid #eee;
132
+ }
133
+
134
+
135
+ /* Use these classes on an element to push it into the
136
+ next column, or to pull it into the previous column. */
137
+
138
+ .pull-1 { margin-left: -40px; }
139
+ .pull-2 { margin-left: -80px; }
140
+ .pull-3 { margin-left: -120px; }
141
+ .pull-4 { margin-left: -160px; }
142
+ .pull-5 { margin-left: -200px; }
143
+
144
+ .pull-1, .pull-2, .pull-3, .pull-4, .pull-5 {
145
+ float:left;
146
+ position:relative;
147
+ }
148
+
149
+ .push-1 { margin: 0 -40px 1.5em 40px; }
150
+ .push-2 { margin: 0 -80px 1.5em 80px; }
151
+ .push-3 { margin: 0 -120px 1.5em 120px; }
152
+ .push-4 { margin: 0 -160px 1.5em 160px; }
153
+ .push-5 { margin: 0 -200px 1.5em 200px; }
154
+
155
+ .push-1, .push-2, .push-3, .push-4, .push-5 {
156
+ float: right;
157
+ position:relative;
158
+ }
159
+
160
+
161
+ /* Misc classes and elements
162
+ -------------------------------------------------------------- */
163
+
164
+ /* In case you need to add a gutter above/below an element */
165
+ .prepend-top {
166
+ margin-top:1.5em;
167
+ }
168
+ .append-bottom {
169
+ margin-bottom:1.5em;
170
+ }
171
+
172
+ /* Use a .box to create a padded box inside a column. */
173
+ .box {
174
+ padding: 1.5em;
175
+ margin-bottom: 1.5em;
176
+ background: #E5ECF9;
177
+ }
178
+
179
+ /* Use this to create a horizontal ruler across a column. */
180
+ hr {
181
+ background: #ddd;
182
+ color: #ddd;
183
+ clear: both;
184
+ float: none;
185
+ width: 100%;
186
+ height: .1em;
187
+ margin: 0 0 1.45em;
188
+ border: none;
189
+ }
190
+ hr.space {
191
+ background: #fff;
192
+ color: #fff;
193
+ }
194
+
195
+
196
+ /* Clearing floats without extra markup
197
+ Based on How To Clear Floats Without Structural Markup by PiE
198
+ [http://www.positioniseverything.net/easyclearing.html] */
199
+
200
+ .clearfix:after, .container:after {
201
+ content: ".";
202
+ display: block;
203
+ height: 0;
204
+ clear: both;
205
+ visibility: hidden;
206
+ }
207
+ .clearfix, .container {display: block;}
208
+
209
+ /* Regular clearing
210
+ apply to column that should drop below previous ones. */
211
+
212
+ .clear { clear:both; }
@@ -0,0 +1,59 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ ie.css
4
+
5
+ Contains every hack for Internet Explorer,
6
+ so that our core files stay sweet and nimble.
7
+
8
+ -------------------------------------------------------------- */
9
+
10
+ /* Make sure the layout is centered in IE5 */
11
+ body { text-align: center; }
12
+ .container { text-align: left; }
13
+
14
+ /* Fixes IE margin bugs */
15
+ * html .column, * html div.span-1, * html div.span-2,
16
+ * html div.span-3, * html div.span-4, * html div.span-5,
17
+ * html div.span-6, * html div.span-7, * html div.span-8,
18
+ * html div.span-9, * html div.span-10, * html div.span-11,
19
+ * html div.span-12, * html div.span-13, * html div.span-14,
20
+ * html div.span-15, * html div.span-16, * html div.span-17,
21
+ * html div.span-18, * html div.span-19, * html div.span-20,
22
+ * html div.span-21, * html div.span-22, * html div.span-23,
23
+ * html div.span-24 { overflow-x: hidden; }
24
+
25
+
26
+ /* Elements
27
+ -------------------------------------------------------------- */
28
+
29
+ /* Fixes incorrect styling of legend in IE6. */
30
+ * html legend { margin:-18px -8px 16px 0; padding:0; }
31
+
32
+ /* Fixes incorrect placement of ol numbers in IE6/7. */
33
+ ol { margin-left:2em; }
34
+
35
+ /* Fixes wrong line-height on sup/sub in IE. */
36
+ sup { vertical-align: text-top; }
37
+ sub { vertical-align: text-bottom; }
38
+
39
+ /* Fixes IE7 missing wrapping of code elements. */
40
+ html>body p code { *white-space: normal; }
41
+
42
+ /* IE 6&7 has problems with setting proper <hr> margins. */
43
+ hr { margin: -8px auto 11px; }
44
+
45
+
46
+ /* Clearing
47
+ -------------------------------------------------------------- */
48
+
49
+ /* Makes clearfix actually work in IE */
50
+ .clearfix, .container {display: inline-block;}
51
+ * html .clearfix,
52
+ * html .container {height: 1%;}
53
+
54
+
55
+ /* Forms
56
+ -------------------------------------------------------------- */
57
+
58
+ /* Fixes padding on fieldset */
59
+ fieldset {padding-top: 0;}
@@ -0,0 +1,85 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ print.css
4
+ * Gives you some sensible styles for printing pages.
5
+ * See Readme file in this directory for further instructions.
6
+
7
+ Some additions you'll want to make, customized to your markup:
8
+ #header, #footer, #navigation { display:none; }
9
+
10
+ -------------------------------------------------------------- */
11
+
12
+ body {
13
+ line-height: 1.5;
14
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
15
+ color:#000;
16
+ background: none;
17
+ font-size: 10pt;
18
+ }
19
+
20
+
21
+ /* Layout
22
+ -------------------------------------------------------------- */
23
+
24
+ .container {
25
+ background: none;
26
+ }
27
+
28
+ hr {
29
+ background:#ccc;
30
+ color:#ccc;
31
+ width:100%;
32
+ height:2px;
33
+ margin:2em 0;
34
+ padding:0;
35
+ border:none;
36
+ }
37
+ hr.space {
38
+ background: #fff;
39
+ color: #fff;
40
+ }
41
+
42
+
43
+ /* Text
44
+ -------------------------------------------------------------- */
45
+
46
+ h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; }
47
+ code { font:.9em "Courier New", Monaco, Courier, monospace; }
48
+
49
+ img { float:left; margin:1.5em 1.5em 1.5em 0; }
50
+ a img { border:none; }
51
+ p img.top { margin-top: 0; }
52
+
53
+ blockquote {
54
+ margin:1.5em;
55
+ padding:1em;
56
+ font-style:italic;
57
+ font-size:.9em;
58
+ }
59
+
60
+ .small { font-size: .9em; }
61
+ .large { font-size: 1.1em; }
62
+ .quiet { color: #999; }
63
+ .hide { display:none; }
64
+
65
+
66
+ /* Links
67
+ -------------------------------------------------------------- */
68
+
69
+ a:link, a:visited {
70
+ background: transparent;
71
+ font-weight:700;
72
+ text-decoration: underline;
73
+ }
74
+
75
+ a:link:after, a:visited:after {
76
+ content: " (" attr(href) ") ";
77
+ font-size: 90%;
78
+ }
79
+
80
+ /* If you're having trouble printing relative links, uncomment and customize this:
81
+ (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */
82
+
83
+ /* a[href^="/"]:after {
84
+ content: " (http://www.yourdomain.com" attr(href) ") ";
85
+ } */
@@ -3,9 +3,6 @@
3
3
  reset.css
4
4
  * Resets default browser CSS.
5
5
 
6
- Based on work by Eric Meyer:
7
- * meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
8
-
9
6
  -------------------------------------------------------------- */
10
7
 
11
8
  html, body, div, span, object, iframe,
@@ -14,26 +11,28 @@ a, abbr, acronym, address, code,
14
11
  del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
15
12
  fieldset, form, label, legend,
16
13
  table, caption, tbody, tfoot, thead, tr, th, td {
17
- margin: 0;
18
- padding: 0;
19
- border: 0;
20
- font-weight: inherit;
21
- font-style: inherit;
22
- font-size: 100%;
23
- font-family: inherit;
24
- vertical-align: baseline;
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-weight: inherit;
18
+ font-style: inherit;
19
+ font-size: 100%;
20
+ font-family: inherit;
21
+ vertical-align: baseline;
25
22
  }
26
23
 
27
-
28
- body { line-height: 1.5; background: #fff; margin:1.5em 0; }
24
+ body {
25
+ line-height: 1.5;
26
+ }
29
27
 
30
28
  /* Tables still need 'cellspacing="0"' in the markup. */
31
29
  table { border-collapse: separate; border-spacing: 0; }
32
- caption, th, td { text-align: left; font-weight:400; }
30
+ caption, th, td { text-align: left; font-weight: normal; }
31
+ table, td, th { vertical-align: middle; }
33
32
 
34
33
  /* Remove possible quote marks (") from <q>, <blockquote>. */
35
34
  blockquote:before, blockquote:after, q:before, q:after { content: ""; }
36
35
  blockquote, q { quotes: "" ""; }
37
36
 
37
+ /* Remove annoying border on linked images. */
38
38
  a img { border: none; }
39
-
@@ -0,0 +1,105 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ typography.css
4
+ * Sets up some sensible default typography.
5
+
6
+ -------------------------------------------------------------- */
7
+
8
+ /* Default font settings.
9
+ The font-size percentage is of 16px. (0.75 * 16px = 12px) */
10
+ body {
11
+ font-size: 75%;
12
+ color: #222;
13
+ background: #fff;
14
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
15
+ }
16
+
17
+
18
+ /* Headings
19
+ -------------------------------------------------------------- */
20
+
21
+ h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
22
+
23
+ h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
24
+ h2 { font-size: 2em; margin-bottom: 0.75em; }
25
+ h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
26
+ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
27
+ h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
28
+ h6 { font-size: 1em; font-weight: bold; }
29
+
30
+ h1 img, h2 img, h3 img,
31
+ h4 img, h5 img, h6 img {
32
+ margin: 0;
33
+ }
34
+
35
+
36
+ /* Text elements
37
+ -------------------------------------------------------------- */
38
+
39
+ p { margin: 0 0 1.5em; }
40
+ p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
41
+ p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }
42
+
43
+ a:focus,
44
+ a:hover { color: #000; }
45
+ a { color: #009; text-decoration: underline; }
46
+
47
+ blockquote { margin: 1.5em; color: #666; font-style: italic; }
48
+ strong { font-weight: bold; }
49
+ em,dfn { font-style: italic; }
50
+ dfn { font-weight: bold; }
51
+ sup, sub { line-height: 0; }
52
+
53
+ abbr,
54
+ acronym { border-bottom: 1px dotted #666; }
55
+ address { margin: 0 0 1.5em; font-style: italic; }
56
+ del { color:#666; }
57
+
58
+ pre { margin: 1.5em 0; white-space: pre; }
59
+ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
60
+
61
+
62
+ /* Lists
63
+ -------------------------------------------------------------- */
64
+
65
+ li ul,
66
+ li ol { margin:0 1.5em; }
67
+ ul, ol { margin: 0 1.5em 1.5em 1.5em; }
68
+
69
+ ul { list-style-type: disc; }
70
+ ol { list-style-type: decimal; }
71
+
72
+ dl { margin: 0 0 1.5em 0; }
73
+ dl dt { font-weight: bold; }
74
+ dd { margin-left: 1.5em;}
75
+
76
+
77
+ /* Tables
78
+ -------------------------------------------------------------- */
79
+
80
+ table { margin-bottom: 1.4em; width:100%; }
81
+ th { font-weight: bold; }
82
+ thead th { background: #c3d9ff; }
83
+ th,td,caption { padding: 4px 10px 4px 5px; }
84
+ tr.even td { background: #e5ecf9; }
85
+ tfoot { font-style: italic; }
86
+ caption { background: #eee; }
87
+
88
+
89
+ /* Misc classes
90
+ -------------------------------------------------------------- */
91
+
92
+ .small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
93
+ .large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
94
+ .hide { display: none; }
95
+
96
+ .quiet { color: #666; }
97
+ .loud { color: #000; }
98
+ .highlight { background:#ff0; }
99
+ .added { background:#060; color: #fff; }
100
+ .removed { background:#900; color: #fff; }
101
+
102
+ .first { margin-left:0; padding-left:0; }
103
+ .last { margin-right:0; padding-right:0; }
104
+ .top { margin-top:0; padding-top:0; }
105
+ .bottom { margin-bottom:0; padding-bottom:0; }
@@ -12,8 +12,11 @@ filter: erb
12
12
  <meta name="author" content="<%= @page.author %>" />
13
13
 
14
14
  <!--- Blueprint CSS Framework -->
15
- <link rel="stylesheet" href="/css/blueprint/screen.css" type="text/css" media="screen, projection" />
16
- <link rel="stylesheet" href="/css/blueprint/print.css" type="text/css" media="print" />
15
+ <link rel="stylesheet" href="/css/blueprint/screen.css" type="text/css" media="screen, projection">
16
+ <link rel="stylesheet" href="/css/blueprint/print.css" type="text/css" media="print">
17
+ <!--[if IE]>
18
+ <link rel="stylesheet" href="/css/blueprint/ie.css" type="text/css" media="screen, projection">
19
+ <![endif]-->
17
20
 
18
21
  <!-- CodeRay syntax highlighting CSS -->
19
22
  <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
@@ -155,7 +155,10 @@ class Main
155
155
  end
156
156
 
157
157
  def capture_command_line_args(args)
158
- args = OpenStruct.new(:raw => args)
158
+ args = OpenStruct.new(
159
+ :raw => args,
160
+ :rake => ARGV.dup
161
+ )
159
162
 
160
163
  if args.raw.size > 1
161
164
  ::Webby.deprecated "multiple arguments used for page title",
@@ -34,7 +34,7 @@ class AutoBuilder
34
34
  @logger = Logging::Logger[self]
35
35
 
36
36
  @builder = Builder.new
37
- @builder.load_files
37
+ ::Webby.load_files
38
38
 
39
39
  @watcher = DirectoryWatcher.new '.', :interval => 2
40
40
  @watcher.add_observer self
@@ -89,7 +89,7 @@ class AutoBuilder
89
89
  if @web_server
90
90
  @web_server.start
91
91
  sleep 0.25
92
- Launchy.open("http://localhost:#{::Webby.site.heel_port}")
92
+ Launchy.open("http://localhost:#{::Webby.site.web_port}")
93
93
  end
94
94
 
95
95
  @watcher.join
@@ -111,7 +111,7 @@ class AutoBuilder
111
111
  @running = false
112
112
  @server = WEBrick::HTTPServer.new(
113
113
  :BindAddress => 'localhost',
114
- :Port => ::Webby.site.heel_port,
114
+ :Port => ::Webby.site.web_port,
115
115
  :DocumentRoot => ::Webby.site.output_dir,
116
116
  :FancyIndexing => true,
117
117
  :Logger => logger,
data/lib/webby/builder.rb CHANGED
@@ -74,10 +74,8 @@ class Builder
74
74
  def new_page_info
75
75
  args = Webby.site.args
76
76
 
77
- if args.raw.empty?
78
- task_name = Rake.application.top_level_tasks.first
79
- raise "Usage: webby #{task_name} path"
80
- end
77
+ # TODO: maybe even get rid of this method altogether
78
+ raise "Usage: webby #{args.rake.first} 'path'" if args.raw.empty?
81
79
 
82
80
  [args.page, args.title, args.dir]
83
81
  end
@@ -131,7 +129,7 @@ class Builder
131
129
  FileUtils.mkdir output_dir
132
130
  end
133
131
 
134
- load_files if opts[:load_files]
132
+ ::Webby.load_files if opts[:load_files]
135
133
 
136
134
  Resources.pages.each do |page|
137
135
  unless page.dirty? or opts[:rebuild]
@@ -157,15 +155,9 @@ class Builder
157
155
  nil
158
156
  end
159
157
 
160
- # Scan the <code>layouts/</code> folder and the <code>content/</code>
161
- # folder and create a new Resource object for each file found there.
162
- #
163
158
  def load_files
164
- ::Find.find(layout_dir, content_dir) do |path|
165
- next unless test ?f, path
166
- next if path =~ ::Webby.exclude
167
- Resources.new path
168
- end
159
+ ::Webby.deprecated "load_files", "it is being replaced by the Webby#load() method"
160
+ ::Webby.load_files
169
161
  end
170
162
 
171
163
  %w(output_dir layout_dir content_dir).each do |key|
@@ -0,0 +1,16 @@
1
+
2
+ # Render text via markdown using the Maruku library.
3
+ if try_require('maruku', 'maruku')
4
+
5
+ Webby::Filters.register :maruku do |input|
6
+ Maruku.new(input).to_html
7
+ end
8
+
9
+ # Otherwise raise an error if the user tries to use maruku
10
+ else
11
+ Webby::Filters.register :maruku do |input|
12
+ raise Webby::Error, "'maruku' must be installed to use the maruku filter"
13
+ end
14
+ end
15
+
16
+ # EOF
@@ -175,7 +175,7 @@ class Outline
175
175
 
176
176
  lbl = label
177
177
  if numbering?
178
- elem.children.first.before {tag!(:span, lbl, :class => 'heading-num')}
178
+ elem.children.first.before %Q{<span class="heading-num">#{lbl}</span>}
179
179
  end
180
180
  elem['id'] = "h#{lbl.tr('.','_')}" if elem['id'].nil?
181
181