brite 0.6.0 → 0.7.0

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 (71) hide show
  1. data/.ruby +56 -0
  2. data/COPYING.rdoc +30 -0
  3. data/HISTORY.rdoc +16 -2
  4. data/README.rdoc +35 -27
  5. data/bin/brite-server +1 -1
  6. data/lib/brite.rb +2 -1
  7. data/lib/brite.yml +56 -0
  8. data/lib/brite/command.rb +100 -55
  9. data/lib/brite/config.rb +122 -40
  10. data/lib/brite/controller.rb +46 -104
  11. data/lib/brite/layout.rb +27 -13
  12. data/lib/brite/model.rb +107 -0
  13. data/lib/brite/page.rb +229 -0
  14. data/lib/brite/part.rb +88 -0
  15. data/lib/brite/post.rb +41 -0
  16. data/lib/brite/server.rb +88 -93
  17. data/lib/brite/site.rb +150 -0
  18. data/lib/brite/version.rb +21 -0
  19. data/test/fixture/brite.yml +3 -0
  20. data/test/fixture/example-page.page +8 -0
  21. data/test/fixture/example-post.post +9 -0
  22. data/test/helper.rb +5 -0
  23. data/test/test_config.rb +23 -0
  24. data/test/test_page.rb +28 -0
  25. data/test/test_site.rb +37 -0
  26. metadata +104 -109
  27. data/LICENSE +0 -205
  28. data/Syckfile +0 -76
  29. data/lib/brite/meta/data.rb +0 -26
  30. data/lib/brite/meta/package +0 -8
  31. data/lib/brite/meta/profile +0 -19
  32. data/lib/brite/models/model.rb +0 -97
  33. data/lib/brite/models/page.rb +0 -142
  34. data/lib/brite/models/post.rb +0 -9
  35. data/lib/brite/models/site.rb +0 -46
  36. data/lib/brite/rackup.rb +0 -6
  37. data/lib/plugins/sow/brite/awesome/Sowfile +0 -11
  38. data/lib/plugins/sow/brite/awesome/about.page +0 -28
  39. data/lib/plugins/sow/brite/awesome/assets/custom.less +0 -96
  40. data/lib/plugins/sow/brite/awesome/assets/fade.png +0 -0
  41. data/lib/plugins/sow/brite/awesome/assets/highlight.css +0 -96
  42. data/lib/plugins/sow/brite/awesome/assets/highlight.js +0 -1
  43. data/lib/plugins/sow/brite/awesome/assets/jquery.js +0 -19
  44. data/lib/plugins/sow/brite/awesome/assets/jquery.tabs.js +0 -1
  45. data/lib/plugins/sow/brite/awesome/assets/reset.css +0 -57
  46. data/lib/plugins/sow/brite/awesome/assets/ruby.png +0 -0
  47. data/lib/plugins/sow/brite/awesome/brite.yaml +0 -3
  48. data/lib/plugins/sow/brite/awesome/history.page +0 -15
  49. data/lib/plugins/sow/brite/awesome/index.page +0 -18
  50. data/lib/plugins/sow/brite/awesome/legal.page +0 -28
  51. data/lib/plugins/sow/brite/awesome/logs.page +0 -14
  52. data/lib/plugins/sow/brite/awesome/page.layout +0 -75
  53. data/lib/plugins/sow/brite/blog1/.rsync-filter +0 -12
  54. data/lib/plugins/sow/brite/blog1/2011/01/sample.html +0 -293
  55. data/lib/plugins/sow/brite/blog1/2011/01/sample.post +0 -44
  56. data/lib/plugins/sow/brite/blog1/Sowfile +0 -10
  57. data/lib/plugins/sow/brite/blog1/assets/images/bg.jpg +0 -0
  58. data/lib/plugins/sow/brite/blog1/assets/images/icon.jpg +0 -0
  59. data/lib/plugins/sow/brite/blog1/assets/styles/class.css +0 -15
  60. data/lib/plugins/sow/brite/blog1/assets/styles/id.css +0 -85
  61. data/lib/plugins/sow/brite/blog1/assets/styles/misc.css +0 -0
  62. data/lib/plugins/sow/brite/blog1/assets/styles/print.css +0 -76
  63. data/lib/plugins/sow/brite/blog1/assets/styles/reset.css +0 -77
  64. data/lib/plugins/sow/brite/blog1/assets/styles/tag.css +0 -68
  65. data/lib/plugins/sow/brite/blog1/brite.yml +0 -3
  66. data/lib/plugins/sow/brite/blog1/index.page +0 -23
  67. data/lib/plugins/sow/brite/blog1/page.layout +0 -88
  68. data/lib/plugins/sow/brite/blog1/post.layout +0 -25
  69. data/meta/data.rb +0 -26
  70. data/meta/package +0 -8
  71. data/meta/profile +0 -19
@@ -1,12 +0,0 @@
1
- - *.layout
2
- - *.post
3
- - *.page
4
- - *.part
5
- - .svn
6
- - scrap
7
- P wiki
8
- P robot.txt
9
- P robots.txt
10
- P statcvs
11
- P statsvn
12
- P usage
@@ -1,293 +0,0 @@
1
-
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
6
-
7
- <head>
8
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
9
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
10
-
11
- <title>Brite Sample</title>
12
-
13
- <meta name="DESCRIPTION"
14
- content="Brite is a K.I.S.S. website builder."/>
15
-
16
- <link rel="icon" href="../../assets/images/icon.jpg" type="image/x-icon" />
17
-
18
- <link href="atom.xml" rel="alternate" title="blog.webrite.rubyforge.org" type="application/atom+xml" />
19
-
20
- <!-- STYLESHEETS -->
21
-
22
- <link href="../../assets/styles/reset.css" rel="stylesheet" type="text/css" />
23
-
24
- <link href="../../assets/styles/screen.css" rel="stylesheet" type="text/css" media="screen, projection" />
25
- <link href="../../assets/styles/print.css" rel="stylesheet" type="text/css" media="print" />
26
-
27
- <!--[if IE]>
28
- <link href="../../assets/styles/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
29
- <![endif]-->
30
-
31
- <link href="../../assets/styles/form.css" rel="stylesheet" type="text/css" />
32
- <link href="../../assets/styles/font.css" rel="stylesheet" type="text/css" />
33
- <link href="../../assets/styles/color.css" rel="stylesheet" type="text/css" />
34
- <!-- <link href="../../assets/styles/syntax.css" rel="stylesheet" type="text/css" /> -->
35
- </head>
36
-
37
- </body>
38
- </html>
39
-
40
- <body>
41
-
42
- <div class="main">
43
-
44
- <div class="header">
45
- <div class="title">
46
- Y O U
47
- </div>
48
- <div class="menu">
49
- <ul>
50
- <li><a href="../../index.html">Home</a></li>
51
- <li><a href="../../about.html">About</a></li>
52
- <li><a href="http://proutils.rubyforge.org/brite/">Brite</a></li>
53
- <li><a href="http://proutils.rubforge.org/">ProUtils</a></li>
54
- </ul>
55
- </div>
56
- </div>
57
-
58
- <!-- <div id="drop_shadow"></div> -->
59
-
60
- <br style="float: clear;"/>
61
-
62
- <div id="content">
63
-
64
- <div class="page">
65
-
66
- <h1>My First Post</h1>
67
-
68
- <p>This is a sample post. In this section you use markdown
69
- formated text b/c that is what we specified after
70
- the seciton marker '---'. You could have used <em>textile</em>,
71
- <em>rdoc</em> or <em>html</em> too. Other sections type ares supported
72
- also. For instance the following section is a <em>coderay.ruby</em>
73
- section.</p>
74
-
75
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
76
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
77
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de">
78
- <head>
79
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
80
- <title>CodeRay Output</title>
81
- <style type="text/css">
82
- .CodeRay {
83
- background-color: #f8f8f8;
84
- border: 1px solid silver;
85
- font-family: 'Courier New', 'Terminal', monospace;
86
- color: #000;
87
- }
88
- .CodeRay pre { margin: 0px }
89
-
90
- div.CodeRay { }
91
-
92
- span.CodeRay { white-space: pre; border: 0px; padding: 2px }
93
-
94
- table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
95
- table.CodeRay td { padding: 2px 4px; vertical-align: top }
96
-
97
- .CodeRay .line_numbers, .CodeRay .no {
98
- background-color: #def;
99
- color: gray;
100
- text-align: right;
101
- }
102
- .CodeRay .line_numbers tt { font-weight: bold }
103
- .CodeRay .no { padding: 0px 4px }
104
- .CodeRay .code { width: 100% }
105
-
106
- ol.CodeRay { font-size: 10pt }
107
- ol.CodeRay li { white-space: pre }
108
-
109
- .CodeRay .code pre { overflow: auto }
110
-
111
- .CodeRay .debug { color:white ! important; background:blue ! important; }
112
-
113
- .CodeRay .af { color:#00C }
114
- .CodeRay .an { color:#007 }
115
- .CodeRay .at { color:#f08 }
116
- .CodeRay .av { color:#700 }
117
- .CodeRay .aw { color:#C00 }
118
- .CodeRay .bi { color:#509; font-weight:bold }
119
- .CodeRay .c { color:#888; }
120
-
121
- .CodeRay .ch { color:#04D }
122
- .CodeRay .ch .k { color:#04D }
123
- .CodeRay .ch .dl { color:#039 }
124
-
125
- .CodeRay .cl { color:#B06; font-weight:bold }
126
- .CodeRay .co { color:#036; font-weight:bold }
127
- .CodeRay .cr { color:#0A0 }
128
- .CodeRay .cv { color:#369 }
129
- .CodeRay .df { color:#099; font-weight:bold }
130
- .CodeRay .di { color:#088; font-weight:bold }
131
- .CodeRay .dl { color:black }
132
- .CodeRay .do { color:#970 }
133
- .CodeRay .dt { color:#34b }
134
- .CodeRay .ds { color:#D42; font-weight:bold }
135
- .CodeRay .e { color:#666; font-weight:bold }
136
- .CodeRay .en { color:#800; font-weight:bold }
137
- .CodeRay .er { color:#F00; background-color:#FAA }
138
- .CodeRay .ex { color:#F00; font-weight:bold }
139
- .CodeRay .fl { color:#60E; font-weight:bold }
140
- .CodeRay .fu { color:#06B; font-weight:bold }
141
- .CodeRay .gv { color:#d70; font-weight:bold }
142
- .CodeRay .hx { color:#058; font-weight:bold }
143
- .CodeRay .i { color:#00D; font-weight:bold }
144
- .CodeRay .ic { color:#B44; font-weight:bold }
145
-
146
- .CodeRay .il { background: #eee; color: black }
147
- .CodeRay .il .il { background: #ddd }
148
- .CodeRay .il .il .il { background: #ccc }
149
- .CodeRay .il .idl { font-weight: bold; color: #777 }
150
-
151
- .CodeRay .im { color:#f00; }
152
- .CodeRay .in { color:#B2B; font-weight:bold }
153
- .CodeRay .iv { color:#33B }
154
- .CodeRay .la { color:#970; font-weight:bold }
155
- .CodeRay .lv { color:#963 }
156
- .CodeRay .oc { color:#40E; font-weight:bold }
157
- .CodeRay .of { color:#000; font-weight:bold }
158
- .CodeRay .op { }
159
- .CodeRay .pc { color:#038; font-weight:bold }
160
- .CodeRay .pd { color:#369; font-weight:bold }
161
- .CodeRay .pp { color:#579; }
162
- .CodeRay .ps { color:#00C; font-weight: bold; }
163
- .CodeRay .pt { color:#349; font-weight:bold }
164
- .CodeRay .r, .kw { color:#080; font-weight:bold }
165
-
166
- .CodeRay .ke { color: #808; }
167
- .CodeRay .ke .dl { color: #606; }
168
- .CodeRay .ke .ch { color: #80f; }
169
- .CodeRay .vl { color: #088; }
170
-
171
- .CodeRay .rx { background-color:#fff0ff }
172
- .CodeRay .rx .k { color:#808 }
173
- .CodeRay .rx .dl { color:#404 }
174
- .CodeRay .rx .mod { color:#C2C }
175
- .CodeRay .rx .fu { color:#404; font-weight: bold }
176
-
177
- .CodeRay .s { background-color:#fff0f0; color: #D20; }
178
- .CodeRay .s .s { background-color:#ffe0e0 }
179
- .CodeRay .s .s .s { background-color:#ffd0d0 }
180
- .CodeRay .s .k { }
181
- .CodeRay .s .ch { color: #b0b; }
182
- .CodeRay .s .dl { color: #710; }
183
-
184
- .CodeRay .sh { background-color:#f0fff0; color:#2B2 }
185
- .CodeRay .sh .k { }
186
- .CodeRay .sh .dl { color:#161 }
187
-
188
- .CodeRay .sy { color:#A60 }
189
- .CodeRay .sy .k { color:#A60 }
190
- .CodeRay .sy .dl { color:#630 }
191
-
192
- .CodeRay .ta { color:#070 }
193
- .CodeRay .tf { color:#070; font-weight:bold }
194
- .CodeRay .ts { color:#D70; font-weight:bold }
195
- .CodeRay .ty { color:#339; font-weight:bold }
196
- .CodeRay .v { color:#036 }
197
- .CodeRay .xt { color:#444 }
198
-
199
- .CodeRay .ins { background: #afa; }
200
- .CodeRay .del { background: #faa; }
201
- .CodeRay .chg { color: #aaf; background: #007; }
202
- .CodeRay .head { color: #f8f; background: #505 }
203
-
204
- .CodeRay .ins .ins { color: #080; font-weight:bold }
205
- .CodeRay .del .del { color: #800; font-weight:bold }
206
- .CodeRay .chg .chg { color: #66f; }
207
- .CodeRay .head .head { color: #f4f; }
208
-
209
- </style>
210
- </head>
211
- <body style="background-color: white;">
212
-
213
- <div class="CodeRay">
214
- <div class="code"><pre><span class="no">1</span>
215
- <span class="no">2</span> puts <span class="s"><span class="dl">&quot;</span><span class="k">Yea for Brite!</span><span class="dl">&quot;</span></span>
216
- <span class="no">3</span>
217
- </pre></div>
218
- </div>
219
-
220
- </body>
221
- </html>
222
-
223
- <p>You can of course editing the documents in this scaffolding
224
- to suit your needs. What's offered here is just a general
225
- layout to help get you started.</p>
226
-
227
- <p>A few things to notice:</p>
228
-
229
- <ul>
230
- <li><p> The .rsync-filter file is designed to be used with
231
- rsync when uploading your website. You will see
232
- it contains some pretty important exclusions!</p></li>
233
- <li><p> General configuration of Brite is done in the
234
- .config/brite.yaml file.</p></li>
235
- <li><p> Post do not need to be under year/month directories,
236
- they just need to end in .post. But it is a nice
237
- place to put them.</p></li>
238
- <li><p> atom.page actually generate atom.xml not atom.html
239
- becuase of a YAML front matter setting.</p></li>
240
- </ul>
241
-
242
-
243
- <p>Brite still needs development to reach it's full potential.
244
- Please consider contributing at <a href="http://github/proutils/brite/">GitHub</a></p>
245
-
246
- <p>That's it for now. Enjoy!</p>
247
-
248
-
249
- <small>Written by Anonymous, </small>
250
-
251
- <ul class="posts">
252
-
253
-
254
- </ul>
255
-
256
- </div>
257
-
258
-
259
- </div>
260
-
261
- </div>
262
-
263
- <br style="clear: both;"/><br/><br/>
264
-
265
- <div class="footer">
266
- <img src="assets/images/abc1.png"/>
267
-
268
- <br/><br/>
269
-
270
- Copyright (c) 2005-2008 Yser the Ab'user <br/><br/>
271
-
272
- Brite & ProUtils were created by Thomas Sawyer (7rans).<br/>
273
-
274
- Brite is released under the terms of the GPLv3 license.<br/>
275
-
276
- <br/><br/>
277
-
278
- THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
279
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
280
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
281
- PURPOSE.
282
- </div>
283
-
284
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
285
- </script>
286
- <script type="text/javascript">
287
- _uacct = "UA-2883355-2";
288
- urchinTracker();
289
- </script>
290
-
291
- </body>
292
- </html>
293
-
@@ -1,44 +0,0 @@
1
- ---
2
- title : My First Post
3
- layout: post
4
-
5
- --- markdown
6
-
7
- This is a sample post. In this section you use markdown
8
- formated text b/c that is what we specified after
9
- the seciton marker '---'. You could have used *textile*,
10
- *rdoc* or *html* too. Other sections type ares supported
11
- also. For instance the following section is a *coderay.ruby*
12
- section.
13
-
14
- --- coderay.ruby
15
-
16
- puts "Yea for Brite!"
17
-
18
- --- markdown
19
-
20
- You can of course editing the documents in this scaffolding
21
- to suit your needs. What's offered here is just a general
22
- layout to help get you started.
23
-
24
- A few things to notice:
25
-
26
- * The .rsync-filter file is designed to be used with
27
- rsync when uploading your website. You will see
28
- it contains some pretty important exclusions!
29
-
30
- * General configuration of Brite is done in the
31
- .config/brite.yaml file.
32
-
33
- * Post do not need to be under year/month directories,
34
- they just need to end in .post. But it is a nice
35
- place to put them.
36
-
37
- * atom.page actually generate atom.xml not atom.html
38
- becuase of a YAML front matter setting.
39
-
40
- Brite still needs development to reach it's full potential.
41
- Please consider contributing at [GitHub](http://github/proutils/brite/)
42
-
43
- That's it for now. Enjoy!
44
-
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- #use 'gemdo'
4
-
5
- argument :site
6
-
7
- site = output.glob_relative('{site,website,web,www}').first
8
- site = data.site || site || 'site'
9
-
10
- copy :to=>site, :verbatim=>true
@@ -1,15 +0,0 @@
1
- /* CLASS STYLES */
2
-
3
- .heading { font-size: 2em; }
4
-
5
- .heading .title {
6
- font-size: 1.3em;
7
- font-weight: bold;
8
- color: #ff4455;
9
- }
10
-
11
- .heading .title:hover {
12
- color: #2454ad;
13
- }
14
-
15
- .heading .date { font-size: 0.7em; }
@@ -1,85 +0,0 @@
1
- /* ID STYLES */
2
-
3
- /* LAYOUT */
4
-
5
- /* main */
6
-
7
- #main {
8
- width: 600px;
9
- margin: 0 auto;
10
- }
11
-
12
- /* header */
13
-
14
- #header {
15
- height: 210px;
16
- background: url(../images/bg.jpg) center repeat-x;
17
- position: relative;
18
- }
19
-
20
- #header .title {
21
- margin-bottom: 20px;
22
- }
23
-
24
- /* footer */
25
-
26
- #footer {
27
- width: 560px;
28
- padding: 20px;
29
- margin: 0 auto;
30
- background: url(../images/bg.jpg) center repeat-x;
31
- }
32
-
33
-
34
- /* menu */
35
-
36
- #menu {
37
- width: 100%;
38
- height: 20px;
39
- opacity: 0.9;
40
- }
41
-
42
- #menu ul {
43
- list-style: none;
44
- margin: 0 0 0 50px;
45
- }
46
-
47
- #menu li {
48
- float: left;
49
- line-height: 20px;
50
- text-align: center;
51
- width: 100px;
52
- border-left: 1px solid #ccc;
53
- border-right: 1px solid #ccc;
54
- }
55
-
56
-
57
- /* FONT */
58
-
59
- #header .title {
60
- font-size: 150px; text-align: center; font-weight: bold;
61
- line-height: 150px; letter-spacing: 10px;
62
- }
63
-
64
- #menu { font-size: 12px; font-weight: bold; }
65
-
66
- .footer { font-size: 8px; font-weight: bold; }
67
-
68
-
69
- /* COLOR */
70
-
71
-
72
- #header {
73
- color: white;
74
- }
75
-
76
- #menu {
77
- background: white;
78
- }
79
-
80
- #menu li:hover {
81
- background: #ccc;
82
- }
83
-
84
- #footer { color: white; }
85
-