webby 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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-11 prepend-1 append-2 first last" id="header">
27
+
28
+ <div class="column span-18 prepend-2 append-4 first last" id="header">
26
29
  <h1>Webby &#9775; <%= h(@page.title) %></h1>
27
30
  <hr />
28
31
  <ul id="navigation"
29
- ><li><a href="index.html">Home</a>&#8766;</li
30
- ><li><a href="download.html">Download</a>&#8766;</li
31
- ><li><a href="tutorial.html">Tutorial</a>&#8766;</li
32
- ><li><a href="manual.html">Manual</a>&#8766;</li
33
- ><li><a href="tips_and_tricks.html">Tips &amp; Tricks</a></li
32
+ ><li><a href="/index.html">Home</a>&middot;</li
33
+ ><li><a href="/download.html">Download</a>&middot;</li
34
+ ><li><a href="/tutorial.html">Tutorial</a>&middot;</li
35
+ ><li><a href="/manual.html">Manual</a>&middot;</li
36
+ ><li><a href="/tips_and_tricks.html">Tips &amp; Tricks</a></li
34
37
  ></ul>
35
38
  </div>
36
-
37
- <div class="column span-11 prepend-1 append-2 first last">
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-11 prepend-1 append-2 first last" id="footer">
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>
@@ -1,4 +1,6 @@
1
1
 
2
+ require 'webby'
3
+
2
4
  Rake::WebbyTask.new do |webby|
3
5
  webby.content_dir = SITE.content_dir
4
6
  webby.output_dir = SITE.output_dir
@@ -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
@@ -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 :run do
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 :kill do
12
+ task :stop do
13
13
  sh "heel --kill"
14
14
  end
15
15
 
16
- task :autobuild => :run do
17
- at_exit {sh "heel --kill"}
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.4.0
7
- date: 2007-09-18 00:00:00 -06:00
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.3.2
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.5
170
+ version: 1.0.8
156
171
  version:
157
172
  - !ruby/object:Gem::Dependency
158
173
  name: rake