zenweb 2.18.1 → 3.0.0.b1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.autotest +18 -0
- data/.gemtest +0 -0
- data/History.txt +6 -0
- data/Manifest.txt +52 -50
- data/README.txt +27 -22
- data/Rakefile +8 -9
- data/example-site/.isolate.rb +8 -0
- data/example-site/Rakefile +32 -0
- data/example-site/_config.yml +3 -0
- data/example-site/_includes/analytics.html.erb +11 -0
- data/example-site/_includes/header.html.erb +3 -0
- data/example-site/_includes/page_list_item.html +5 -0
- data/example-site/_includes/post_list_item.html +5 -0
- data/example-site/_layouts/post.erb +13 -0
- data/example-site/_layouts/project.erb +39 -0
- data/example-site/_layouts/site.erb +62 -0
- data/example-site/about/index.html.md +8 -0
- data/example-site/atom.xml.erb +43 -0
- data/example-site/blog/2012-01-02-page1.html.md +5 -0
- data/example-site/blog/2012-01-03-page2.html.md +5 -0
- data/example-site/blog/2012-01-04-page3.html.md +5 -0
- data/example-site/blog/_config.yml +1 -0
- data/example-site/blog/index.html.erb +19 -0
- data/example-site/config.ru +33 -0
- data/example-site/css/colors.css.less +71 -0
- data/example-site/css/styles.css +223 -0
- data/example-site/css/syntax.css +171 -0
- data/example-site/img/bg.png +0 -0
- data/example-site/index.html.erb +27 -0
- data/example-site/js/jquery.js +154 -0
- data/example-site/js/site.js +37 -0
- data/example-site/pages/index.html.erb +17 -0
- data/example-site/pages/nonblogpage.html.md +8 -0
- data/example-site/projects/index.html.erb +18 -0
- data/example-site/projects/zenweb.html.erb +9 -0
- data/example-site/sitemap.xml.erb +24 -0
- data/lib/zenweb.rb +12 -0
- data/lib/zenweb/config.rb +126 -0
- data/lib/zenweb/extensions.rb +51 -0
- data/lib/zenweb/page.rb +409 -0
- data/lib/zenweb/plugins/disqus.rb +18 -0
- data/lib/zenweb/plugins/erb.rb +43 -0
- data/lib/zenweb/plugins/google.rb +20 -0
- data/lib/zenweb/plugins/less.rb +10 -0
- data/lib/zenweb/plugins/markdown.rb +121 -0
- data/lib/zenweb/site.rb +237 -0
- data/lib/zenweb/tasks.rake +165 -0
- data/test/helper.rb +53 -0
- data/test/test_zenweb_config.rb +90 -0
- data/test/test_zenweb_extensions.rb +33 -0
- data/test/test_zenweb_page.rb +381 -0
- data/test/test_zenweb_plugins_disqus.rb +41 -0
- data/test/test_zenweb_plugins_erb.rb +60 -0
- data/test/test_zenweb_plugins_google.rb +38 -0
- data/test/test_zenweb_plugins_less.rb +33 -0
- data/test/test_zenweb_plugins_markdown.rb +227 -0
- data/test/test_zenweb_site.rb +294 -0
- metadata +230 -86
- metadata.gz.sig +0 -0
- data/bin/zenweb +0 -27
- data/bin/zenwebpage +0 -66
- data/bin/zenwebsite +0 -39
- data/design/REQUIREMENTS.txt +0 -52
- data/design/ZENWEB_2.txt +0 -69
- data/design/heirarchy.png +0 -0
- data/design/heirarchy.tgif +0 -311
- data/docs/Customizing +0 -76
- data/docs/FAQ +0 -12
- data/docs/Features +0 -128
- data/docs/Presentation +0 -88
- data/docs/QuickStart +0 -32
- data/docs/Renderers +0 -85
- data/docs/SiteMap +0 -13
- data/docs/YourOwnWebsite +0 -32
- data/docs/index +0 -14
- data/docs/metadata.txt +0 -10
- data/lib/ZenWeb.rb +0 -850
- data/lib/ZenWeb/CalendarRenderer.rb +0 -162
- data/lib/ZenWeb/CompactRenderer.rb +0 -45
- data/lib/ZenWeb/CompositeRenderer.rb +0 -63
- data/lib/ZenWeb/FileAttachmentRenderer.rb +0 -57
- data/lib/ZenWeb/FooterRenderer.rb +0 -38
- data/lib/ZenWeb/GenericRenderer.rb +0 -143
- data/lib/ZenWeb/HeaderRenderer.rb +0 -52
- data/lib/ZenWeb/HtmlRenderer.rb +0 -81
- data/lib/ZenWeb/HtmlTableRenderer.rb +0 -94
- data/lib/ZenWeb/HtmlTemplateRenderer.rb +0 -173
- data/lib/ZenWeb/MetadataRenderer.rb +0 -83
- data/lib/ZenWeb/RelativeRenderer.rb +0 -97
- data/lib/ZenWeb/RubyCodeRenderer.rb +0 -56
- data/lib/ZenWeb/SitemapRenderer.rb +0 -56
- data/lib/ZenWeb/StandardRenderer.rb +0 -40
- data/lib/ZenWeb/StupidRenderer.rb +0 -91
- data/lib/ZenWeb/SubpageRenderer.rb +0 -45
- data/lib/ZenWeb/TextToHtmlRenderer.rb +0 -219
- data/lib/ZenWeb/TocRenderer.rb +0 -60
- data/lib/ZenWeb/XXXRenderer.rb +0 -32
- data/test/SiteMap +0 -14
- data/test/Something +0 -4
- data/test/include.txt +0 -3
- data/test/index +0 -8
- data/test/metadata.txt +0 -10
- data/test/ryand/SiteMap +0 -10
- data/test/ryand/blah +0 -4
- data/test/ryand/blah-blah +0 -4
- data/test/ryand/index +0 -52
- data/test/ryand/metadata.txt +0 -2
- data/test/ryand/stuff/index +0 -4
- data/test/test_zenweb.rb +0 -1619
metadata
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zenweb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: -1637566754
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- b
|
11
|
+
- 1
|
12
|
+
version: 3.0.0.b1
|
5
13
|
platform: ruby
|
6
14
|
authors:
|
7
15
|
- Ryan Davis
|
@@ -30,106 +38,226 @@ cert_chain:
|
|
30
38
|
FBHgymkyj/AOSqKRIpXPhjC6
|
31
39
|
-----END CERTIFICATE-----
|
32
40
|
|
33
|
-
date:
|
34
|
-
default_executable:
|
41
|
+
date: 2012-05-25 00:00:00 Z
|
35
42
|
dependencies:
|
36
43
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
44
|
+
name: less
|
45
|
+
prerelease: false
|
46
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
48
|
+
requirements:
|
49
|
+
- - ~>
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
hash: 11
|
52
|
+
segments:
|
53
|
+
- 1
|
54
|
+
- 2
|
55
|
+
version: "1.2"
|
56
|
+
type: :runtime
|
57
|
+
version_requirements: *id001
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: coderay
|
60
|
+
prerelease: false
|
61
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
hash: 15
|
67
|
+
segments:
|
68
|
+
- 1
|
69
|
+
- 0
|
70
|
+
version: "1.0"
|
71
|
+
type: :runtime
|
72
|
+
version_requirements: *id002
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: kramdown
|
75
|
+
prerelease: false
|
76
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ~>
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 17
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
- 13
|
85
|
+
version: "0.13"
|
86
|
+
type: :runtime
|
87
|
+
version_requirements: *id003
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: minitest
|
90
|
+
prerelease: false
|
91
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 7
|
97
|
+
segments:
|
98
|
+
- 3
|
99
|
+
- 0
|
100
|
+
version: "3.0"
|
38
101
|
type: :development
|
39
|
-
|
40
|
-
|
102
|
+
version_requirements: *id004
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rdoc
|
105
|
+
prerelease: false
|
106
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
41
108
|
requirements:
|
42
|
-
- -
|
109
|
+
- - ~>
|
43
110
|
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
111
|
+
hash: 19
|
112
|
+
segments:
|
113
|
+
- 3
|
114
|
+
- 10
|
115
|
+
version: "3.10"
|
116
|
+
type: :development
|
117
|
+
version_requirements: *id005
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rcov
|
120
|
+
prerelease: false
|
121
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ~>
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
hash: 25
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
- 9
|
130
|
+
version: "0.9"
|
131
|
+
type: :development
|
132
|
+
version_requirements: *id006
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: rake
|
135
|
+
prerelease: false
|
136
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
hash: 25
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
- 9
|
145
|
+
version: "0.9"
|
146
|
+
type: :development
|
147
|
+
version_requirements: *id007
|
148
|
+
- !ruby/object:Gem::Dependency
|
149
|
+
name: makerakeworkwell
|
150
|
+
prerelease: false
|
151
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
152
|
+
none: false
|
153
|
+
requirements:
|
154
|
+
- - ~>
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
hash: 15
|
157
|
+
segments:
|
158
|
+
- 1
|
159
|
+
- 0
|
160
|
+
version: "1.0"
|
161
|
+
type: :development
|
162
|
+
version_requirements: *id008
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: hoe
|
165
|
+
prerelease: false
|
166
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
167
|
+
none: false
|
168
|
+
requirements:
|
169
|
+
- - ~>
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
hash: 7
|
172
|
+
segments:
|
173
|
+
- 3
|
174
|
+
- 0
|
175
|
+
version: "3.0"
|
176
|
+
type: :development
|
177
|
+
version_requirements: *id009
|
46
178
|
description: |-
|
47
|
-
|
179
|
+
Zenweb is a set of classes/tools for organizing and formating a
|
48
180
|
website. It is website oriented rather than webpage oriented, unlike
|
49
181
|
most rendering tools. It is content oriented, rather than style
|
50
|
-
oriented, unlike most rendering tools. It
|
51
|
-
|
182
|
+
oriented, unlike most rendering tools. It uses a rubygems plugin
|
183
|
+
system to provide a very flexible, and powerful system.
|
52
184
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
or whatever machine you are running on.
|
185
|
+
Zenweb 3 was inspired by jekyll. The filesystem layout is similar to
|
186
|
+
jekyll's layout, but zenweb isn't focused on blogs. It can do any sort
|
187
|
+
of website just fine.
|
188
|
+
|
189
|
+
Zenweb uses rake to handle dependencies. As a result, scanning a
|
190
|
+
website and regenerating incrementally is not just possible, it is
|
191
|
+
blazingly fast.
|
61
192
|
email:
|
62
193
|
- ryand-ruby@zenspider.com
|
63
|
-
executables:
|
64
|
-
|
65
|
-
- zenwebpage
|
66
|
-
- zenwebsite
|
194
|
+
executables: []
|
195
|
+
|
67
196
|
extensions: []
|
68
197
|
|
69
198
|
extra_rdoc_files:
|
70
199
|
- History.txt
|
71
200
|
- Manifest.txt
|
72
201
|
- README.txt
|
73
|
-
- design/REQUIREMENTS.txt
|
74
|
-
- design/ZENWEB_2.txt
|
75
|
-
- docs/metadata.txt
|
76
202
|
files:
|
203
|
+
- .autotest
|
77
204
|
- History.txt
|
78
205
|
- Manifest.txt
|
79
206
|
- README.txt
|
80
207
|
- Rakefile
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
- lib/
|
112
|
-
- lib/
|
113
|
-
- lib/
|
114
|
-
- lib/
|
115
|
-
- lib/
|
116
|
-
- lib/
|
117
|
-
- lib/
|
118
|
-
- lib/
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
- test/
|
123
|
-
- test/
|
124
|
-
- test/
|
125
|
-
- test/
|
126
|
-
- test/
|
127
|
-
- test/
|
128
|
-
- test/
|
129
|
-
- test/
|
130
|
-
- test/
|
131
|
-
|
132
|
-
|
208
|
+
- example-site/.isolate.rb
|
209
|
+
- example-site/Rakefile
|
210
|
+
- example-site/_config.yml
|
211
|
+
- example-site/_includes/analytics.html.erb
|
212
|
+
- example-site/_includes/header.html.erb
|
213
|
+
- example-site/_includes/page_list_item.html
|
214
|
+
- example-site/_includes/post_list_item.html
|
215
|
+
- example-site/_layouts/post.erb
|
216
|
+
- example-site/_layouts/project.erb
|
217
|
+
- example-site/_layouts/site.erb
|
218
|
+
- example-site/about/index.html.md
|
219
|
+
- example-site/atom.xml.erb
|
220
|
+
- example-site/blog/2012-01-02-page1.html.md
|
221
|
+
- example-site/blog/2012-01-03-page2.html.md
|
222
|
+
- example-site/blog/2012-01-04-page3.html.md
|
223
|
+
- example-site/blog/_config.yml
|
224
|
+
- example-site/blog/index.html.erb
|
225
|
+
- example-site/config.ru
|
226
|
+
- example-site/css/colors.css.less
|
227
|
+
- example-site/css/styles.css
|
228
|
+
- example-site/css/syntax.css
|
229
|
+
- example-site/img/bg.png
|
230
|
+
- example-site/index.html.erb
|
231
|
+
- example-site/js/jquery.js
|
232
|
+
- example-site/js/site.js
|
233
|
+
- example-site/pages/index.html.erb
|
234
|
+
- example-site/pages/nonblogpage.html.md
|
235
|
+
- example-site/projects/index.html.erb
|
236
|
+
- example-site/projects/zenweb.html.erb
|
237
|
+
- example-site/sitemap.xml.erb
|
238
|
+
- lib/zenweb.rb
|
239
|
+
- lib/zenweb/config.rb
|
240
|
+
- lib/zenweb/extensions.rb
|
241
|
+
- lib/zenweb/page.rb
|
242
|
+
- lib/zenweb/plugins/disqus.rb
|
243
|
+
- lib/zenweb/plugins/erb.rb
|
244
|
+
- lib/zenweb/plugins/google.rb
|
245
|
+
- lib/zenweb/plugins/less.rb
|
246
|
+
- lib/zenweb/plugins/markdown.rb
|
247
|
+
- lib/zenweb/site.rb
|
248
|
+
- lib/zenweb/tasks.rake
|
249
|
+
- test/helper.rb
|
250
|
+
- test/test_zenweb_config.rb
|
251
|
+
- test/test_zenweb_extensions.rb
|
252
|
+
- test/test_zenweb_page.rb
|
253
|
+
- test/test_zenweb_plugins_disqus.rb
|
254
|
+
- test/test_zenweb_plugins_erb.rb
|
255
|
+
- test/test_zenweb_plugins_google.rb
|
256
|
+
- test/test_zenweb_plugins_less.rb
|
257
|
+
- test/test_zenweb_plugins_markdown.rb
|
258
|
+
- test/test_zenweb_site.rb
|
259
|
+
- .gemtest
|
260
|
+
homepage: https://github.com/seattlerb/zenweb/
|
133
261
|
licenses: []
|
134
262
|
|
135
263
|
post_install_message:
|
@@ -139,23 +267,39 @@ rdoc_options:
|
|
139
267
|
require_paths:
|
140
268
|
- lib
|
141
269
|
required_ruby_version: !ruby/object:Gem::Requirement
|
270
|
+
none: false
|
142
271
|
requirements:
|
143
272
|
- - ">="
|
144
273
|
- !ruby/object:Gem::Version
|
274
|
+
hash: 3
|
275
|
+
segments:
|
276
|
+
- 0
|
145
277
|
version: "0"
|
146
|
-
version:
|
147
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
|
+
none: false
|
148
280
|
requirements:
|
149
|
-
- - "
|
281
|
+
- - ">"
|
150
282
|
- !ruby/object:Gem::Version
|
151
|
-
|
152
|
-
|
283
|
+
hash: 25
|
284
|
+
segments:
|
285
|
+
- 1
|
286
|
+
- 3
|
287
|
+
- 1
|
288
|
+
version: 1.3.1
|
153
289
|
requirements: []
|
154
290
|
|
155
291
|
rubyforge_project: zenweb
|
156
|
-
rubygems_version: 1.
|
292
|
+
rubygems_version: 1.8.17
|
157
293
|
signing_key:
|
158
294
|
specification_version: 3
|
159
|
-
summary:
|
295
|
+
summary: Zenweb is a set of classes/tools for organizing and formating a website
|
160
296
|
test_files:
|
161
|
-
- test/
|
297
|
+
- test/test_zenweb_config.rb
|
298
|
+
- test/test_zenweb_extensions.rb
|
299
|
+
- test/test_zenweb_page.rb
|
300
|
+
- test/test_zenweb_plugins_disqus.rb
|
301
|
+
- test/test_zenweb_plugins_erb.rb
|
302
|
+
- test/test_zenweb_plugins_google.rb
|
303
|
+
- test/test_zenweb_plugins_less.rb
|
304
|
+
- test/test_zenweb_plugins_markdown.rb
|
305
|
+
- test/test_zenweb_site.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/bin/zenweb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'ZenWeb'
|
5
|
-
|
6
|
-
puts ZenWebsite.banner() unless $TESTING
|
7
|
-
|
8
|
-
if (ARGV.size == 2) then
|
9
|
-
path = ARGV.shift
|
10
|
-
url = ARGV.shift
|
11
|
-
elsif (ARGV.size == 1) then
|
12
|
-
path = ARGV.shift || raise(ArgumentError, "Need a sitemap path to load.")
|
13
|
-
url = "/SiteMap.html"
|
14
|
-
else
|
15
|
-
raise(ArgumentError, "Usage: #{$0} datadir [sitemapurl]")
|
16
|
-
end
|
17
|
-
|
18
|
-
if path == "data" then
|
19
|
-
dest = "html"
|
20
|
-
else
|
21
|
-
dest = path + "html"
|
22
|
-
end
|
23
|
-
|
24
|
-
dirty = test ?d, dest
|
25
|
-
|
26
|
-
ZenWebsite.new(url, path, dest).renderSite
|
27
|
-
Metadata.displayBadMetadata unless dirty
|
data/bin/zenwebpage
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
#!/usr/local/bin/ruby -w
|
2
|
-
|
3
|
-
def usage
|
4
|
-
puts "#{$0} filepath [title [subtitle]]"
|
5
|
-
exit 1
|
6
|
-
end
|
7
|
-
|
8
|
-
path = ARGV.shift || usage()
|
9
|
-
title = ARGV.shift || 'Title'
|
10
|
-
subtitle = ARGV.shift || 'Subtitle'
|
11
|
-
|
12
|
-
filename = File.basename(path)
|
13
|
-
|
14
|
-
puts "Creating #{filename}"
|
15
|
-
|
16
|
-
file = File.new(path, "w")
|
17
|
-
|
18
|
-
if filename == 'metadata.txt' then
|
19
|
-
file.puts "'renderers' = [ 'StandardRenderer' ]"
|
20
|
-
elsif filename == 'Makefile' then
|
21
|
-
file.puts "# use this to override"
|
22
|
-
file.puts "RUBYPATH="
|
23
|
-
file.puts "DEBUG="
|
24
|
-
file.puts "ZENWEB=/usr/local/bin/zenweb"
|
25
|
-
file.puts "INSTALLDIR=/usr/local/www"
|
26
|
-
file.puts ""
|
27
|
-
file.puts "all: html"
|
28
|
-
file.puts ""
|
29
|
-
file.puts "html:"
|
30
|
-
file.puts " RUBYPATH=$(RUBYPATH) ruby $(DEBUG) $(ZENWEB) data"
|
31
|
-
file.puts ""
|
32
|
-
file.puts "realclean: clean"
|
33
|
-
file.puts " -rm -rf html"
|
34
|
-
file.puts ""
|
35
|
-
file.puts "clean:"
|
36
|
-
file.puts " rm -rf httpd.conf httpd.pid error.log access.log"
|
37
|
-
file.puts " -find . -name \*~ -exec rm {} \\;"
|
38
|
-
file.puts " -find data -name \*.html -print0 | xargs -0 rm -f"
|
39
|
-
file.puts ""
|
40
|
-
file.puts "apache: all"
|
41
|
-
file.puts %q% grep -v CustomLog $$(httpd -V | grep SERVER_CONFIG_FILE | cut -f 2 -d= | cut -f 2 -d\") > httpd.conf; httpd -X -d $$PWD/html -f $$PWD/httpd.conf -c "PidFile $$PWD/httpd.pid" -c "Port 8080" -c "ErrorLog $$PWD/error.log" -c "TransferLog $$PWD/access.log" -c "DocumentRoot $$PWD/html"%
|
42
|
-
file.puts ""
|
43
|
-
file.puts "copy:"
|
44
|
-
file.puts " rsync -r html/ $(INSTALLDIR)"
|
45
|
-
file.puts ""
|
46
|
-
file.puts ".PHONY: all html clean copy"
|
47
|
-
else
|
48
|
-
file.puts "# 'title' = '#{title}'"
|
49
|
-
file.puts "# 'subtitle' = '#{subtitle}'"
|
50
|
-
file.puts "# 'keywords' = 'Keywords used by search engines.'"
|
51
|
-
file.puts "# 'description' = 'Basic desc for search engines.'"
|
52
|
-
|
53
|
-
if filename == 'SiteMap' then
|
54
|
-
file.puts "# 'renderers' = [ 'SitemapRenderer', 'StandardRenderer' ]"
|
55
|
-
file.puts ""
|
56
|
-
file.puts "/index.html"
|
57
|
-
file.puts "/SiteMap.html"
|
58
|
-
else
|
59
|
-
file.puts ""
|
60
|
-
file.puts "** Section Header"
|
61
|
-
file.puts ""
|
62
|
-
file.puts "TO" + "DO: write this page" # to avoid my source TAG scanner
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
file.close
|