webby 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Manifest.txt +6 -0
- data/README.txt +10 -9
- data/Rakefile +2 -0
- data/bin/webby +1 -0
- data/data/content/css/site.css +59 -0
- data/data/layouts/default.rhtml +9 -9
- data/data/tasks/create.rake +1 -0
- data/data/tasks/growl.rake +12 -0
- data/data/tasks/heel.rake +12 -6
- data/lib/webby.rb +35 -2
- data/lib/webby/auto_builder.rb +14 -6
- data/lib/webby/builder.rb +31 -23
- data/lib/webby/file.rb +9 -12
- data/lib/webby/main.rb +13 -7
- data/lib/webby/pages_db.rb +101 -12
- data/lib/webby/renderer.rb +94 -7
- data/lib/webby/resource.rb +46 -13
- data/lib/webby/stelan/paginator.rb +149 -0
- data/lib/webby/stelan/spawner.rb +337 -0
- data/spec/webby/file_spec.rb +1 -2
- data/website/Rakefile +2 -0
- data/website/content/css/coderay.css +111 -0
- data/website/content/css/site.css +121 -25
- data/website/content/download.txt +7 -1
- data/website/content/index.txt +7 -9
- data/website/content/manual.txt +23 -0
- data/website/content/robots.txt +6 -0
- data/website/content/tips_and_tricks.txt +2 -2
- data/website/content/tutorial.txt +8 -8
- data/website/layouts/default.rhtml +16 -13
- data/website/tasks/create.rake +2 -0
- data/website/tasks/growl.rake +12 -0
- data/website/tasks/heel.rake +12 -6
- metadata +19 -4
@@ -12,33 +12,36 @@ filter: erb
|
|
12
12
|
<meta name="author" content="<%= h(@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
|
+
|
18
|
+
<!-- Coderay -->
|
19
|
+
<link rel="stylesheet" href="/css/coderay.css" type="text/css" media="screen, projection" />
|
17
20
|
|
18
21
|
<!-- Homepage CSS -->
|
19
|
-
<link rel="stylesheet" href="css/site.css" type="text/css" media="screen, projection" />
|
22
|
+
<link rel="stylesheet" href="/css/site.css" type="text/css" media="screen, projection" />
|
20
23
|
</head>
|
21
24
|
<body>
|
22
25
|
|
23
26
|
<div class="container">
|
24
|
-
|
25
|
-
<div class="column span-
|
27
|
+
|
28
|
+
<div class="column span-18 prepend-2 append-4 first last" id="header">
|
26
29
|
<h1>Webby ☯ <%= h(@page.title) %></h1>
|
27
30
|
<hr />
|
28
31
|
<ul id="navigation"
|
29
|
-
><li><a href="index.html">Home</a
|
30
|
-
><li><a href="download.html">Download</a
|
31
|
-
><li><a href="tutorial.html">Tutorial</a
|
32
|
-
><li><a href="manual.html">Manual</a
|
33
|
-
><li><a href="tips_and_tricks.html">Tips & Tricks</a></li
|
32
|
+
><li><a href="/index.html">Home</a>·</li
|
33
|
+
><li><a href="/download.html">Download</a>·</li
|
34
|
+
><li><a href="/tutorial.html">Tutorial</a>·</li
|
35
|
+
><li><a href="/manual.html">Manual</a>·</li
|
36
|
+
><li><a href="/tips_and_tricks.html">Tips & Tricks</a></li
|
34
37
|
></ul>
|
35
38
|
</div>
|
36
|
-
|
37
|
-
<div class="column span-
|
39
|
+
|
40
|
+
<div class="column span-18 prepend-2 append-4 first last">
|
38
41
|
<%= @content %>
|
39
42
|
</div>
|
40
43
|
|
41
|
-
<div class="column span-
|
44
|
+
<div class="column span-18 prepend-2 append-4 first last" id="footer">
|
42
45
|
<hr />
|
43
46
|
<p>This website was created with <a href="http://webby.rubyforge.org">Webby</a><br />
|
44
47
|
Webby is released under the MIT license</p>
|
data/website/tasks/create.rake
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
desc 'send log events to Growl (Mac OS X only)'
|
3
|
+
task :growl do
|
4
|
+
Logging::Logger['Webby'].add(Logging::Appenders::Growl.new(
|
5
|
+
"Webby",
|
6
|
+
:layout => Logging::Layouts::Pattern.new(:pattern => "%5l - Webby\000%m"),
|
7
|
+
:coalesce => true,
|
8
|
+
:separator => "\000"
|
9
|
+
))
|
10
|
+
end
|
11
|
+
|
12
|
+
# EOF
|
data/website/tasks/heel.rake
CHANGED
@@ -3,18 +3,24 @@ if HAVE_HEEL
|
|
3
3
|
|
4
4
|
namespace :heel do
|
5
5
|
|
6
|
-
desc 'start the heel server to view website'
|
7
|
-
task :
|
6
|
+
desc 'start the heel server to view website (not for Windows)'
|
7
|
+
task :start do
|
8
8
|
sh "heel --root #{SITE.output_dir} --daemonize"
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
desc 'stop the heel server'
|
12
|
-
task :
|
12
|
+
task :stop do
|
13
13
|
sh "heel --kill"
|
14
14
|
end
|
15
15
|
|
16
|
-
task :
|
17
|
-
|
16
|
+
task :autorun do
|
17
|
+
heel_exe = File.join(Gem.bindir, 'heel')
|
18
|
+
@heel_spawner = Spawner.new(Spawner.ruby, heel_exe, '--root', SITE.output_dir, :pause => 86_400)
|
19
|
+
@heel_spawner.start
|
20
|
+
end
|
21
|
+
|
22
|
+
task :autobuild => :autorun do
|
23
|
+
at_exit {@heel_spawner.stop if defined? @heel_spawner and not @heel_spawner.nil?}
|
18
24
|
end
|
19
25
|
|
20
26
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: webby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.5.0
|
7
|
+
date: 2007-11-26 00:00:00 -07:00
|
8
8
|
summary: static website creation and management
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- data/layouts/default.rhtml
|
55
55
|
- data/tasks/create.rake
|
56
56
|
- data/tasks/deploy.rake
|
57
|
+
- data/tasks/growl.rake
|
57
58
|
- data/tasks/heel.rake
|
58
59
|
- data/tasks/setup.rb
|
59
60
|
- data/templates/page.erb
|
@@ -66,6 +67,8 @@ files:
|
|
66
67
|
- lib/webby/pages_db.rb
|
67
68
|
- lib/webby/renderer.rb
|
68
69
|
- lib/webby/resource.rb
|
70
|
+
- lib/webby/stelan/paginator.rb
|
71
|
+
- lib/webby/stelan/spawner.rb
|
69
72
|
- lib/webby/utils.rb
|
70
73
|
- lib/webby/webby_task.rb
|
71
74
|
- spec/spec.opts
|
@@ -90,15 +93,18 @@ files:
|
|
90
93
|
- website/content/css/blueprint/lib/typography.css
|
91
94
|
- website/content/css/blueprint/print.css
|
92
95
|
- website/content/css/blueprint/screen.css
|
96
|
+
- website/content/css/coderay.css
|
93
97
|
- website/content/css/site.css
|
94
98
|
- website/content/download.txt
|
95
99
|
- website/content/index.txt
|
96
100
|
- website/content/manual.txt
|
101
|
+
- website/content/robots.txt
|
97
102
|
- website/content/tips_and_tricks.txt
|
98
103
|
- website/content/tutorial.txt
|
99
104
|
- website/layouts/default.rhtml
|
100
105
|
- website/tasks/create.rake
|
101
106
|
- website/tasks/deploy.rake
|
107
|
+
- website/tasks/growl.rake
|
102
108
|
- website/tasks/heel.rake
|
103
109
|
- website/tasks/setup.rb
|
104
110
|
- website/templates/page.erb
|
@@ -134,7 +140,7 @@ dependencies:
|
|
134
140
|
requirements:
|
135
141
|
- - ">="
|
136
142
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.
|
143
|
+
version: 0.6.0
|
138
144
|
version:
|
139
145
|
- !ruby/object:Gem::Dependency
|
140
146
|
name: hpricot
|
@@ -145,6 +151,15 @@ dependencies:
|
|
145
151
|
- !ruby/object:Gem::Version
|
146
152
|
version: "0.6"
|
147
153
|
version:
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: logging
|
156
|
+
version_requirement:
|
157
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 0.5.1
|
162
|
+
version:
|
148
163
|
- !ruby/object:Gem::Dependency
|
149
164
|
name: rspec
|
150
165
|
version_requirement:
|
@@ -152,7 +167,7 @@ dependencies:
|
|
152
167
|
requirements:
|
153
168
|
- - ">="
|
154
169
|
- !ruby/object:Gem::Version
|
155
|
-
version: 1.0.
|
170
|
+
version: 1.0.8
|
156
171
|
version:
|
157
172
|
- !ruby/object:Gem::Dependency
|
158
173
|
name: rake
|