brite 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
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,76 +0,0 @@
1
- body {
2
- line-height:1.5;
3
- font-family:"Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
4
- color:#000;
5
- background:none;
6
- font-size:10pt;
7
- }
8
-
9
- .container {
10
- background:none;
11
- }
12
-
13
- h1,h2,h3,h4,h5,h6 {
14
- font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;
15
- }
16
-
17
- code {
18
- font:.9em "Courier New", Monaco, Courier, monospace;
19
- }
20
-
21
- img {
22
- float:left;
23
- margin:1.5em 1.5em 1.5em 0;
24
- }
25
-
26
- a img {
27
- border:none;
28
- }
29
-
30
- p img.top {
31
- margin-top:0;
32
- }
33
-
34
- hr {
35
- background:#ccc;
36
- color:#ccc;
37
- width:100%;
38
- height:2px;
39
- border:none;
40
- margin:2em 0;
41
- padding:0;
42
- }
43
-
44
- blockquote {
45
- font-style:italic;
46
- font-size:.9em;
47
- margin:1.5em;
48
- padding:1em;
49
- }
50
-
51
- .small {
52
- font-size:.9em;
53
- }
54
-
55
- .large {
56
- font-size:1.1em;
57
- }
58
-
59
- .quiet {
60
- color:#999;
61
- }
62
-
63
- .hide {
64
- display:none;
65
- }
66
-
67
- a:link,a:visited {
68
- background:transparent;
69
- font-weight:700;
70
- text-decoration:underline;
71
- }
72
-
73
- a:link:after,a:visited:after {
74
- content:" (" attr(href) ") ";
75
- font-size:90%;
76
- }
@@ -1,77 +0,0 @@
1
- /* --------------------------------------------------------------
2
-
3
- reset.css
4
- * Resets default browser CSS.
5
-
6
- Based on work by Eric Meyer:
7
- * meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
8
-
9
- -------------------------------------------------------------- */
10
-
11
- html, body, div, span, object, iframe,
12
- h1, h2, h3, h4, h5, h6,
13
- a, img, form, label, legend,
14
- table, caption, tbody, tfoot, thead, tr, th, td {
15
- margin: 0; padding: 0; border: 0;
16
- font-weight: inherit; font-style: inherit;
17
- font-family: inherit; font-size: 100%;
18
- /* vertical-align: baseline; */
19
- }
20
-
21
- body {
22
- line-height: 1.5;
23
- background: #fff;
24
- }
25
-
26
- table {
27
- border-collapse: separate;
28
- border-spacing: 0;
29
- }
30
-
31
- caption, th, td {
32
- text-align: left;
33
- }
34
-
35
- q:before, q:after {
36
- content:'';
37
- }
38
-
39
- p {
40
- text-align: justify;
41
- padding: 0.2em 0;
42
- }
43
-
44
- pre {
45
- font-family: monospace;
46
- font-size: 0.9em;
47
-
48
- }
49
-
50
- blockquote {
51
- font-style: italic;
52
- }
53
-
54
- /*
55
- body {
56
- text-align: center;
57
- font-family: sans-serif;
58
- font-size: 10pt;
59
- }
60
-
61
- h1 {
62
- margin-top: 30px;
63
- }
64
-
65
- a {
66
- color: #ff7000;
67
- font-weight: bold;
68
- }
69
-
70
- td {
71
- font-size: 10pt;
72
- padding: 5px;
73
- vertical-align: top;
74
- }
75
-
76
- */
77
-
@@ -1,68 +0,0 @@
1
- /* TAG STYLES */
2
-
3
- /* LAYOUT */
4
-
5
- body {
6
- margin: 0;
7
- padding: 0;
8
- }
9
-
10
- a {
11
- text-decoration: none;
12
- }
13
-
14
- h1, h2 {
15
- padding-top: 30px;
16
- }
17
-
18
- h1:first-child {
19
- padding-top: 5px;
20
- }
21
-
22
-
23
- /* FONT */
24
-
25
- body {
26
- font-size: 80%;
27
- font-family: sans-serif, Arial;
28
- }
29
-
30
- h1,h2,h3,h4,h5,h6 {
31
- font-family: sans-serif, Arial;
32
- font-weight: bold;
33
- }
34
-
35
- h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
36
- text-decoration: none;
37
- }
38
-
39
- h1 { font-size: 1.9em; line-height: 1; margin: 0.50em 0; }
40
- h2 { font-size: 1.5em; margin: 0.75em 0; }
41
- h3 { font-size: 1.3em; line-height: 1; margin: 1.00em 0; }
42
- h4 { font-size: 1.2em; line-height: 1.25; margin: 1.25em 0; }
43
- h5 { font-size: 1.0em; font-weight: bold; margin: 0 0 1.5em 0; }
44
- h6 { font-size: 1.0em; font-weight: bold; }
45
-
46
- p {
47
- line-height: 1.6em;
48
- }
49
-
50
-
51
- /* COLOR */
52
-
53
- a {
54
- color: #ff4455;
55
- }
56
-
57
- a:hover {
58
- color: #ff4455;
59
- }
60
-
61
- p {
62
- color: #222;
63
- }
64
-
65
- h1,h2 {
66
- color: #44ff44;
67
- }
68
-
@@ -1,3 +0,0 @@
1
- ---
2
- url : http://___URL___.com
3
- stencil: liquid
@@ -1,23 +0,0 @@
1
- ---
2
- title : My First Brite Blog!
3
- layout : page
4
- stencil : liquid
5
-
6
- --- html
7
-
8
- <div class="page">
9
-
10
- {% for post in site.posts %}
11
- <div class="post">
12
- <div class="heading">
13
- <span class="date">{{ post.date | date_to_string }}</span>
14
- <a class="title" href="{{ post.url }}">{{ post.title }}</a>
15
- </div>
16
- {{ post.content }}
17
- <!-- <small>Written by {{ post.author }}</small> -->
18
- </div>
19
- <br/>
20
- {% endfor %}
21
-
22
- </div>
23
-
@@ -1,88 +0,0 @@
1
- ---
2
- stencil: liquid
3
-
4
- ---
5
-
6
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7
-
8
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
9
-
10
- <head>
11
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
12
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
13
-
14
- <title>Brite Template</title>
15
-
16
- <meta name="DESCRIPTION" content="Brite is a KISS website builder" />
17
-
18
- <link rel="icon" href="{{root}}assets/images/icon.jpg" type="image/x-icon" />
19
-
20
- <link href="atom.xml" rel="alternate" title="blog.webrite.rubyforge.org" type="application/atom+xml" />
21
-
22
- <!-- STYLESHEETS -->
23
-
24
- <link href="{{root}}assets/styles/reset.css" rel="stylesheet" type="text/css" />
25
-
26
- <link href="{{root}}assets/styles/screen.css" rel="stylesheet" type="text/css" media="screen, projection" />
27
- <link href="{{root}}assets/styles/print.css" rel="stylesheet" type="text/css" media="print" />
28
-
29
- <!--[if IE]>
30
- <link href="{{root}}assets/styles/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
31
- <![endif]-->
32
-
33
- <link href="{{root}}assets/styles/tag.css" rel="stylesheet" type="text/css" />
34
- <link href="{{root}}assets/styles/id.css" rel="stylesheet" type="text/css" />
35
- <link href="{{root}}assets/styles/class.css" rel="stylesheet" type="text/css" />
36
- <!-- <link href="{{root}}assets/styles/syntax.css" rel="stylesheet" type="text/css" /> -->
37
- </head>
38
-
39
- </body>
40
- </html>
41
-
42
- <body>
43
-
44
- <div id="menu">
45
- <ul>
46
- <li><a href="{{root}}index.html">Home</a></li>
47
- <li><a href="{{root}}about.html">About</a></li>
48
- <li><a href="http://proutils.rubyforge.org/brite/">Brite</a></li>
49
- <li><a href="http://proutils.rubforge.org/">ProUtils</a></li>
50
- </ul>
51
- </div>
52
-
53
- <div id="header">
54
- <div class="title">
55
- Y O U
56
- </div>
57
- </div>
58
-
59
- <div id="main">
60
- <div class="content">
61
- {{ yield }}
62
- </div>
63
- </div>
64
-
65
- <br style="clear: both;"/><br/><br/>
66
-
67
- <div id="footer">
68
- <img src="assets/images/abc1.png"/>
69
-
70
- <br/><br/>
71
-
72
- Copyright (c) 2005-2008 Yser the Ab'user <br/><br/>
73
-
74
- Brite were created by Thomas Sawyer (7rans).<br/>
75
-
76
- Brite is released under the terms of the GPLv3 license.<br/>
77
-
78
- <br/><br/>
79
-
80
- THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
81
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
82
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
83
- PURPOSE.
84
- </div>
85
-
86
- </body>
87
- </html>
88
-
@@ -1,25 +0,0 @@
1
- ---
2
- stencil: liquid
3
- layout: page
4
-
5
- --- html
6
-
7
- <div class="page">
8
-
9
- <h1>{{ page.title }}</h1>
10
-
11
- {{ content }}
12
-
13
- <small>Written by {{ page.author }}, {{ page.date | date_to_string }}</small>
14
-
15
- <ul class="posts">
16
- {% assign p = page.previous %}{% if p %}
17
- <li><span>Previous: {{ p.date | date_to_string }}</span> &raquo; <a href="{{ p.url }}">{{ p.title }}</a></li>
18
- {% endif %}
19
- {% assign p = page.next %}{% if p %}
20
- <li><span> Next: {{ p.date | date_to_string }}</span> &raquo; <a href="{{ p.url }}">{{ p.title }}</a></li>
21
- {% endif %}
22
- </ul>
23
-
24
- </div>
25
-
@@ -1,26 +0,0 @@
1
- module Brite
2
-
3
- def self.package
4
- @package ||= (
5
- require 'yaml'
6
- YAML.load(File.new(File.dirname(__FILE__) + '/package'))
7
- )
8
- end
9
-
10
- def self.profile
11
- @profile ||= (
12
- require 'yaml'
13
- YAML.load(File.new(File.dirname(__FILE__) + '/profile'))
14
- )
15
- end
16
-
17
- def self.const_missing(name)
18
- key = name.to_s.downcase
19
- package[key] || profile[key] || super(name)
20
- end
21
-
22
- end
23
-
24
- # becuase Ruby 1.8~ gets in the way
25
- Object.__send__(:remove_const, :VERSION) if Object.const_defined?(:VERSION)
26
-
@@ -1,8 +0,0 @@
1
- ---
2
- name : brite
3
- date : 2010-11-12
4
- version : 0.6.0
5
-
6
- requires:
7
- - neapolitan 0.3.0+
8
-
@@ -1,19 +0,0 @@
1
- ---
2
- title : Brite
3
- subtitle : Light Up Your Site
4
- summary : Super Simple Static Site Generation
5
- copyright: Copyright (c) 2006,2009 Thomas Sawyer
6
- license : Apache v2.0
7
- suite : proutils
8
- contact : http://googlegroups.com/group/proutils
9
- authors : Thomas Sawyer
10
-
11
- description:
12
- Brite is a remarkably easy to use, light-weight website
13
- generator. It supports a variety of backend rendering engines
14
- including rhtml via eruby, textile via redcloth, markdown
15
- via rdiscount, with others on the way.
16
-
17
- resources:
18
- homepage: http://proutils.github.com/brite
19
- repository: git://github.com/proutils/brite.git