mikker-webby 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. data/History.txt +224 -0
  2. data/README.rdoc +92 -0
  3. data/Rakefile +62 -0
  4. data/bin/webby +41 -0
  5. data/bin/webby-gen +41 -0
  6. data/examples/blog/Sitefile +7 -0
  7. data/examples/blog/tasks/blog.rake +72 -0
  8. data/examples/blog/templates/atom_feed.erb +40 -0
  9. data/examples/blog/templates/blog/month.erb +22 -0
  10. data/examples/blog/templates/blog/post.erb +16 -0
  11. data/examples/blog/templates/blog/year.erb +22 -0
  12. data/examples/presentation/Sitefile +10 -0
  13. data/examples/presentation/content/css/uv/twilight.css +137 -0
  14. data/examples/presentation/content/presentation/_sample_code.txt +10 -0
  15. data/examples/presentation/content/presentation/index.txt +63 -0
  16. data/examples/presentation/content/presentation/s5/blank.gif +0 -0
  17. data/examples/presentation/content/presentation/s5/bodybg.gif +0 -0
  18. data/examples/presentation/content/presentation/s5/framing.css +23 -0
  19. data/examples/presentation/content/presentation/s5/iepngfix.htc +42 -0
  20. data/examples/presentation/content/presentation/s5/opera.css +7 -0
  21. data/examples/presentation/content/presentation/s5/outline.css +15 -0
  22. data/examples/presentation/content/presentation/s5/pretty.css +86 -0
  23. data/examples/presentation/content/presentation/s5/print.css +25 -0
  24. data/examples/presentation/content/presentation/s5/s5-core.css +9 -0
  25. data/examples/presentation/content/presentation/s5/slides.css +3 -0
  26. data/examples/presentation/content/presentation/s5/slides.js +553 -0
  27. data/examples/presentation/layouts/presentation.txt +43 -0
  28. data/examples/presentation/templates/_code_partial.erb +13 -0
  29. data/examples/presentation/templates/presentation.erb +40 -0
  30. data/examples/tumblog/Sitefile +9 -0
  31. data/examples/tumblog/content/css/tumblog.css +308 -0
  32. data/examples/tumblog/content/images/tumblog/permalink.gif +0 -0
  33. data/examples/tumblog/content/images/tumblog/rss.gif +0 -0
  34. data/examples/tumblog/content/tumblog/200806/the-noble-chicken/index.txt +12 -0
  35. data/examples/tumblog/content/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +12 -0
  36. data/examples/tumblog/content/tumblog/200807/mad-city-chickens/index.txt +10 -0
  37. data/examples/tumblog/content/tumblog/200807/the-wisdom-of-the-dutch/index.txt +11 -0
  38. data/examples/tumblog/content/tumblog/200807/up-a-tree/index.txt +13 -0
  39. data/examples/tumblog/content/tumblog/index.txt +37 -0
  40. data/examples/tumblog/content/tumblog/rss.txt +37 -0
  41. data/examples/tumblog/layouts/tumblog/default.txt +44 -0
  42. data/examples/tumblog/layouts/tumblog/post.txt +15 -0
  43. data/examples/tumblog/lib/tumblog_helper.rb +32 -0
  44. data/examples/tumblog/tasks/tumblog.rake +30 -0
  45. data/examples/tumblog/templates/atom_feed.erb +40 -0
  46. data/examples/tumblog/templates/tumblog/conversation.erb +12 -0
  47. data/examples/tumblog/templates/tumblog/link.erb +10 -0
  48. data/examples/tumblog/templates/tumblog/photo.erb +13 -0
  49. data/examples/tumblog/templates/tumblog/post.erb +12 -0
  50. data/examples/tumblog/templates/tumblog/quote.erb +11 -0
  51. data/examples/webby/Sitefile +19 -0
  52. data/examples/webby/content/communicate/index.txt +28 -0
  53. data/examples/webby/content/css/background.gif +0 -0
  54. data/examples/webby/content/css/blueprint/print.css +76 -0
  55. data/examples/webby/content/css/blueprint/screen.css +696 -0
  56. data/examples/webby/content/css/coderay.css +96 -0
  57. data/examples/webby/content/css/site.css +196 -0
  58. data/examples/webby/content/css/uv/twilight.css +137 -0
  59. data/examples/webby/content/index.txt +37 -0
  60. data/examples/webby/content/learn/index.txt +28 -0
  61. data/examples/webby/content/reference/index.txt +204 -0
  62. data/examples/webby/content/release-notes/index.txt +21 -0
  63. data/examples/webby/content/release-notes/rel-0-9-0/index.txt +74 -0
  64. data/examples/webby/content/release-notes/rel-0-9-1/index.txt +93 -0
  65. data/examples/webby/content/release-notes/rel-0-9-2/index.txt +14 -0
  66. data/examples/webby/content/release-notes/rel-0-9-3/index.txt +47 -0
  67. data/examples/webby/content/robots.txt +6 -0
  68. data/examples/webby/content/script/jquery.corner.js +152 -0
  69. data/examples/webby/content/script/jquery.js +31 -0
  70. data/examples/webby/content/sitemap.txt +31 -0
  71. data/examples/webby/content/tips_and_tricks/index.txt +97 -0
  72. data/examples/webby/content/tutorial/index.txt +135 -0
  73. data/examples/webby/content/user-manual/index.txt +419 -0
  74. data/examples/webby/layouts/default.txt +49 -0
  75. data/examples/webby/templates/page.erb +10 -0
  76. data/examples/website/Sitefile +7 -0
  77. data/examples/website/content/css/blueprint/ie.css +26 -0
  78. data/examples/website/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  79. data/examples/website/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
  80. data/examples/website/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  81. data/examples/website/content/css/blueprint/plugins/buttons/readme.txt +32 -0
  82. data/examples/website/content/css/blueprint/plugins/buttons/screen.css +97 -0
  83. data/examples/website/content/css/blueprint/plugins/fancy-type/readme.txt +14 -0
  84. data/examples/website/content/css/blueprint/plugins/fancy-type/screen.css +71 -0
  85. data/examples/website/content/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
  86. data/examples/website/content/css/blueprint/plugins/link-icons/icons/email.png +0 -0
  87. data/examples/website/content/css/blueprint/plugins/link-icons/icons/external.png +0 -0
  88. data/examples/website/content/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
  89. data/examples/website/content/css/blueprint/plugins/link-icons/icons/im.png +0 -0
  90. data/examples/website/content/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  91. data/examples/website/content/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
  92. data/examples/website/content/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
  93. data/examples/website/content/css/blueprint/plugins/link-icons/readme.txt +18 -0
  94. data/examples/website/content/css/blueprint/plugins/link-icons/screen.css +40 -0
  95. data/examples/website/content/css/blueprint/plugins/rtl/readme.txt +10 -0
  96. data/examples/website/content/css/blueprint/plugins/rtl/screen.css +109 -0
  97. data/examples/website/content/css/blueprint/print.css +30 -0
  98. data/examples/website/content/css/blueprint/screen.css +251 -0
  99. data/examples/website/content/css/blueprint/src/forms.css +49 -0
  100. data/examples/website/content/css/blueprint/src/grid.css +212 -0
  101. data/examples/website/content/css/blueprint/src/grid.png +0 -0
  102. data/examples/website/content/css/blueprint/src/ie.css +59 -0
  103. data/examples/website/content/css/blueprint/src/print.css +85 -0
  104. data/examples/website/content/css/blueprint/src/reset.css +38 -0
  105. data/examples/website/content/css/blueprint/src/typography.css +105 -0
  106. data/examples/website/content/css/coderay.css +111 -0
  107. data/examples/website/content/css/site.css +67 -0
  108. data/examples/website/content/index.txt +19 -0
  109. data/examples/website/layouts/default.txt +61 -0
  110. data/examples/website/lib/breadcrumbs.rb +28 -0
  111. data/examples/website/templates/_partial.erb +10 -0
  112. data/examples/website/templates/page.erb +18 -0
  113. data/lib/webby.rb +240 -0
  114. data/lib/webby/apps.rb +12 -0
  115. data/lib/webby/apps/generator.rb +276 -0
  116. data/lib/webby/apps/main.rb +198 -0
  117. data/lib/webby/auto_builder.rb +157 -0
  118. data/lib/webby/builder.rb +172 -0
  119. data/lib/webby/core_ext/enumerable.rb +11 -0
  120. data/lib/webby/core_ext/hash.rb +28 -0
  121. data/lib/webby/core_ext/kernel.rb +26 -0
  122. data/lib/webby/core_ext/string.rb +163 -0
  123. data/lib/webby/core_ext/time.rb +9 -0
  124. data/lib/webby/filters.rb +85 -0
  125. data/lib/webby/filters/basepath.rb +97 -0
  126. data/lib/webby/filters/erb.rb +9 -0
  127. data/lib/webby/filters/haml.rb +19 -0
  128. data/lib/webby/filters/markdown.rb +16 -0
  129. data/lib/webby/filters/maruku.rb +16 -0
  130. data/lib/webby/filters/outline.rb +309 -0
  131. data/lib/webby/filters/sass.rb +19 -0
  132. data/lib/webby/filters/slides.rb +56 -0
  133. data/lib/webby/filters/textile.rb +16 -0
  134. data/lib/webby/filters/tidy.rb +76 -0
  135. data/lib/webby/filters/wiki_words.rb +14 -0
  136. data/lib/webby/helpers.rb +30 -0
  137. data/lib/webby/helpers/capture_helper.rb +142 -0
  138. data/lib/webby/helpers/coderay_helper.rb +69 -0
  139. data/lib/webby/helpers/graphviz_helper.rb +136 -0
  140. data/lib/webby/helpers/tag_helper.rb +65 -0
  141. data/lib/webby/helpers/tex_img_helper.rb +133 -0
  142. data/lib/webby/helpers/ultraviolet_helper.rb +63 -0
  143. data/lib/webby/helpers/url_helper.rb +241 -0
  144. data/lib/webby/journal.rb +126 -0
  145. data/lib/webby/link_validator.rb +160 -0
  146. data/lib/webby/renderer.rb +389 -0
  147. data/lib/webby/resources.rb +137 -0
  148. data/lib/webby/resources/db.rb +251 -0
  149. data/lib/webby/resources/layout.rb +54 -0
  150. data/lib/webby/resources/meta_file.rb +211 -0
  151. data/lib/webby/resources/page.rb +81 -0
  152. data/lib/webby/resources/partial.rb +85 -0
  153. data/lib/webby/resources/resource.rb +201 -0
  154. data/lib/webby/resources/static.rb +36 -0
  155. data/lib/webby/stelan/mktemp.rb +135 -0
  156. data/lib/webby/stelan/paginator.rb +165 -0
  157. data/lib/webby/tasks/build.rake +27 -0
  158. data/lib/webby/tasks/create.rake +22 -0
  159. data/lib/webby/tasks/deploy.rake +22 -0
  160. data/lib/webby/tasks/growl.rake +16 -0
  161. data/lib/webby/tasks/validate.rake +19 -0
  162. data/spec/core_ext/hash_spec.rb +47 -0
  163. data/spec/core_ext/string_spec.rb +110 -0
  164. data/spec/core_ext/time_spec.rb +19 -0
  165. data/spec/data/hooligans/bad_meta_data_1.txt +34 -0
  166. data/spec/data/hooligans/bad_meta_data_2.txt +34 -0
  167. data/spec/data/html/anchor.html +11 -0
  168. data/spec/data/html/external.html +10 -0
  169. data/spec/data/html/invalid-relative.html +10 -0
  170. data/spec/data/html/relative-anchor.html +10 -0
  171. data/spec/data/html/relative-invalid-anchor.html +10 -0
  172. data/spec/data/html/relative.html +10 -0
  173. data/spec/data/outline/basic.out +81 -0
  174. data/spec/data/outline/basic.txt +25 -0
  175. data/spec/data/outline/no_clobber.out +86 -0
  176. data/spec/data/outline/numbering.out +81 -0
  177. data/spec/data/outline/numbering_only.out +21 -0
  178. data/spec/data/outline/toc_range_1.out +66 -0
  179. data/spec/data/outline/toc_range_2.out +55 -0
  180. data/spec/data/outline/toc_style.out +81 -0
  181. data/spec/data/site/Sitefile +9 -0
  182. data/spec/data/site/content/_partial.txt +10 -0
  183. data/spec/data/site/content/css/coderay.css +111 -0
  184. data/spec/data/site/content/css/site.css +67 -0
  185. data/spec/data/site/content/css/tumblog.css +308 -0
  186. data/spec/data/site/content/images/tumblog/permalink.gif +0 -0
  187. data/spec/data/site/content/images/tumblog/rss.gif +0 -0
  188. data/spec/data/site/content/index.txt +19 -0
  189. data/spec/data/site/content/photos.txt +21 -0
  190. data/spec/data/site/content/tumblog/200806/the-noble-chicken/index.txt +12 -0
  191. data/spec/data/site/content/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +12 -0
  192. data/spec/data/site/content/tumblog/200807/mad-city-chickens/index.txt +10 -0
  193. data/spec/data/site/content/tumblog/200807/the-wisdom-of-the-dutch/index.txt +11 -0
  194. data/spec/data/site/content/tumblog/200807/up-a-tree/index.txt +13 -0
  195. data/spec/data/site/content/tumblog/index.txt +37 -0
  196. data/spec/data/site/content/tumblog/rss.txt +37 -0
  197. data/spec/data/site/layouts/default.txt +58 -0
  198. data/spec/data/site/layouts/tumblog/default.txt +44 -0
  199. data/spec/data/site/layouts/tumblog/post.txt +15 -0
  200. data/spec/data/site/lib/breadcrumbs.rb +28 -0
  201. data/spec/data/site/lib/tumblog_helper.rb +32 -0
  202. data/spec/data/site/tasks/tumblog.rake +30 -0
  203. data/spec/data/site/templates/_partial.erb +10 -0
  204. data/spec/data/site/templates/atom_feed.erb +40 -0
  205. data/spec/data/site/templates/page.erb +18 -0
  206. data/spec/data/site/templates/presentation.erb +40 -0
  207. data/spec/data/site/templates/tumblog/conversation.erb +12 -0
  208. data/spec/data/site/templates/tumblog/link.erb +10 -0
  209. data/spec/data/site/templates/tumblog/photo.erb +13 -0
  210. data/spec/data/site/templates/tumblog/post.erb +12 -0
  211. data/spec/data/site/templates/tumblog/quote.erb +11 -0
  212. data/spec/spec.opts +1 -0
  213. data/spec/spec_helper.rb +58 -0
  214. data/spec/webby/apps/generator_spec.rb +149 -0
  215. data/spec/webby/apps/main_spec.rb +88 -0
  216. data/spec/webby/filters/basepath_spec.rb +167 -0
  217. data/spec/webby/filters/maruku_spec.rb +31 -0
  218. data/spec/webby/filters/outline_spec.rb +92 -0
  219. data/spec/webby/filters/textile_spec.rb +31 -0
  220. data/spec/webby/helpers/capture_helper_spec.rb +56 -0
  221. data/spec/webby/link_validator_spec.rb +154 -0
  222. data/spec/webby/renderer_spec.rb +139 -0
  223. data/spec/webby/resources/db_spec.rb +250 -0
  224. data/spec/webby/resources/layout_spec.rb +83 -0
  225. data/spec/webby/resources/meta_file_spec.rb +171 -0
  226. data/spec/webby/resources/page_spec.rb +111 -0
  227. data/spec/webby/resources/partial_spec.rb +58 -0
  228. data/spec/webby/resources/resource_spec.rb +219 -0
  229. data/spec/webby/resources/static_spec.rb +49 -0
  230. data/spec/webby/resources_spec.rb +69 -0
  231. data/tasks/mswin32.rake +38 -0
  232. data/tasks/website.rake +37 -0
  233. metadata +379 -0
@@ -0,0 +1,224 @@
1
+ == 0.9.4 / 2009-04-
2
+
3
+ * 4 minor enhancements
4
+ - Added a Maruku filter (thanks to Martyn Loughran)
5
+ - Updated to version 0.8.0 of Blueprint css
6
+ - Better handling of errors generated by filters
7
+ - Modified how the editor is spawned when creating pages
8
+ * 7 bug fixes
9
+ - Fixed haml & sass option handling [Alex Brem]
10
+ - Work around for a parsing bug in the rdiscount gem (markdown handling)
11
+ - Editor launching now handles switches passed to the editor
12
+ - When a page fails to render, it no longer writes an empty file to
13
+ the output folder (thereby overwriting the last good page)
14
+ - Pagination bug
15
+ - Presentation slides were not being found when headers had attributes
16
+ - The content_for helper was swallowing text and not inserting it back
17
+ into the page
18
+
19
+ == 0.9.3 / 2008-10-08
20
+
21
+ * 4 minor enhancements
22
+ - Added a "wikiwords" filter to process [[text]] as links to other pages
23
+ (thanks to Paul)
24
+ - Added colorization to the output text (facets gem required)
25
+ - Replaced the Heel webserver with webrick
26
+ - Special windows version with windows line endings in generated files
27
+ * 2 bug fixes
28
+ - Fixed a bug on Windows where line endings were messing with meta-data
29
+ - The paginator was not linking correctly back to the first page from
30
+ subsequent pages in a list
31
+
32
+ == 0.9.2 / 2008-09-11
33
+
34
+ * 1 bug fix
35
+ - Layouts were not being found if more than one layout was in a directory
36
+ in the layouts folder
37
+
38
+ == 0.9.1 / 2008-09-10
39
+
40
+ * 1 major enhancement
41
+ - multiple output files can be generated from a single page
42
+ * 2 minor enhancements
43
+ - simplified the handling of meta-data at the top of files
44
+ - pagination now honors the "page per directory" flag
45
+ * 2 bug fixes
46
+ - filename extensions were not being preserved when creating a new page
47
+ - webby now works properly with rake 0.8.2
48
+
49
+ == 0.9.0 / 2008-08-25
50
+
51
+ * 2 major enhancements
52
+ - The "rake" command line tool has been replaced by the "webby"
53
+ command line tool for day to day site tasks
54
+ - Now using the "rdiscount" gem for markdown syntax
55
+ * 4 minor enhancements
56
+ - Layouts can exist in subdirectories of the layouts folder
57
+ - Addition of a "tumblog" template
58
+ - Addition of a sitemap file (Ana Nelson)
59
+ - Updated to version 6.4.2 of ImageMagick for tex2img conversions
60
+ * 5 bug fixes
61
+ - Better error message when an unkonwn filter is given
62
+ - Table of contents generation bug
63
+ - Failing to clean out the "content_for" cache when doing a
64
+ multi-page render
65
+ - Explicitly loading the RedCloth gem
66
+ - Handling exceptions from system calls on the Windows platform
67
+
68
+ == 0.8.4 / 2008-06-03
69
+
70
+ * 1 minor improvement
71
+ - Global defaults for HAML and SASS [Dag Odenhall]
72
+ * 1 bug fix
73
+ - Added the blog templates to the package
74
+
75
+ == 0.8.3 / 2008-06-02
76
+
77
+ * 2 major enhancements
78
+ - Added blogging support
79
+ - Added S5 slide presentation support
80
+ * 6 minor enhancements
81
+ - Changed the arguments to the DB#find method
82
+ - Added locals support for page templates
83
+ - Updated atom feed generation template
84
+ - Partials now support local variables when rendering
85
+ - Can guard rendering results from processing by subsequent filters
86
+ (useful when rendering partials or embedding other pages)
87
+ - Support for "content_for" style captures [M@ McCray]
88
+ * 5 bug fixes
89
+ - Fixed reference to an non-existent Error class
90
+ - Basepath filter now handles XML files properly
91
+ - Removed the "--delete" flag from the rsync options [Denis Defreyne]
92
+ - Fixed a nil cursor bug in the rendering filter stack
93
+ - Recursive find now works from the root content folder (bug 20281)
94
+
95
+ == 0.8.2 / 2008-03-12
96
+
97
+ * 2 bug fixes
98
+ - Fixed an error when paginating on an index page
99
+ - Fixed an error where leading and trailing whitespace was being
100
+ stripped from syntax highlighted code blocks
101
+
102
+ == 0.8.1 / 2008-03-09
103
+
104
+ * 2 major enhancement
105
+ - Added support for UltraViolet syntax highlighting
106
+ (code provided by Guillaume Carbonneau)
107
+ - Added rake tasks to validate the hyperlinks for the HTML files
108
+ in the output directory
109
+ * 2 minor enhancements
110
+ - Improved error handling and reporting during the build process
111
+ - Added site defaults for the helpers (coderay, graphviv, latex,
112
+ etc.)
113
+ * 1 bug fix
114
+ - Fixed an error with the prev / next calls in the paginator and
115
+ rendering links to those pages
116
+
117
+ == 0.8.0 / 2008-02-28
118
+
119
+ * 3 major enhancements
120
+ - Added support for partials
121
+ - Refactored the coderay and graphviz filters into helper methods
122
+ accessible from ERB
123
+ - Added support for embedding LaTeX mathematical equations
124
+ * 3 minor enhancements
125
+ - Added a template file for creating Atom feeds
126
+ - The SITE configuration is available in pages and layouts as
127
+ the @config variable
128
+ - Can specify the port the Heel webserver starts on using the
129
+ SITE.heel_port option in the Rakefile
130
+ * 2 bug fixes
131
+ - When creating pages in directory mode the full page path was
132
+ not being created
133
+ - Read only files were being created in the output folder
134
+ preventing them from being overwritten if changed
135
+
136
+ == 0.7.4 / 2008-02-15
137
+
138
+ * 3 minor enhancements
139
+ - Added "limit" and "sort_by" options to the pages find method
140
+ - Removed dependency on RedCloth for outline generation
141
+ - Added some more options for outline generation, numbering, and
142
+ table of contents generation
143
+ * 1 bug fix
144
+ - Fixed incompatibility with the new logging library
145
+
146
+ == 0.7.3 / 2008-02-05
147
+
148
+ * 2 bug fixes
149
+ - The setup.rb task now requires rubygems in case it is not in the
150
+ user's rubyopt
151
+ - Fixed file line endings on Windows when creating a new site
152
+
153
+ == 0.7.2 / 2008-02-02
154
+
155
+ * 4 minor enhancements
156
+ - Created a URI base path rewriter filter
157
+ - Create an outline filter for generating table of contents
158
+ - Pages can be created as files or as directories
159
+ - The @pages find method now recurses into sub-directories
160
+ * 3 bug fixes
161
+ - Fixed a bug in the graphviz filter where the wrong map ID was
162
+ being generated
163
+ - Now passing the binding of the Renderer to the HAML filter
164
+ (this makes the @page, @pages availabe in HAML pages)
165
+ - The created_at attribute was not being created as a YAML
166
+ time object
167
+
168
+ == 0.7.1 / 2008-01-03
169
+
170
+ * 2 bug fixes
171
+ - No longer appending a '.' to files without an extension (like .htaccess)
172
+ (patch supplied by Stephen Duncan)
173
+ - Fixed a "No such file or directory" error when creating pages
174
+ from templates
175
+
176
+ == 0.7.0 / 2008-01-01
177
+
178
+ * 1 major enhancement
179
+ - Refactored how the filters are handled (thanks Bruce Williams)
180
+ * 2 minor enhancements
181
+ - Added helper methods for URL and anchor generation
182
+ - Added rake task to delete the generated website
183
+ * 2 bug fixes
184
+ - Fixed a bug arising from the order of the logger creation
185
+ - Removed the file extension form the page defaults
186
+ (should be set in the layout or the page itself)
187
+
188
+ == 0.6.0 / 2007-12-04
189
+
190
+ * Added support for embedded graphviz images and image maps
191
+ * Tidy can be used as a filter to format HTML and check for errors
192
+ * Simplified coderay when used with textile
193
+
194
+ == 0.5.1 / 2007-11-29
195
+
196
+ * Growl notifications now work on Leopard / Tiger
197
+ * Fixed a few things for compatibility with Ruby 1.9
198
+
199
+ == 0.5.0 / 2007-11-26
200
+
201
+ * Launching heel now works on Windows boxen
202
+ * Now using "logging" gem to output build status
203
+ * Updated find routine for the pages DB
204
+ * First whack at pagination support
205
+
206
+ == 0.4.0 / 2007-09-18
207
+
208
+ * Updated the Blueprint CSS stylesheets to version 0.5
209
+ * Updating documentation and comments
210
+
211
+ == 0.3.0 / 2007-09-17
212
+
213
+ * Added support for CodeRay syntax highlighting
214
+
215
+ == 0.2.0 / 2007-08-28
216
+
217
+ * Updated rake tasks for website deployment
218
+ * Can use 'heel' and 'launchy' for viewing websites
219
+ * Webby executable can update rake tasks for existing websites
220
+ * Added more rdoc documentation to classes
221
+
222
+ == 0.1.0 / 2007-08-22
223
+
224
+ * Birthday!
@@ -0,0 +1,92 @@
1
+ = Webby
2
+
3
+ * {Homepage}[http://webby.rubyforge.org/]
4
+ * {Rubyforge Project}[http://rubyforge.org/projects/webby]
5
+ * email tim dot pease at gmail dot com
6
+
7
+ == DESCRIPTION:
8
+
9
+ *Webby* is a fantastic little website management system. It would be called a *content management system* if it were a bigger kid. But, it's just a runt with a special knack for transforming text. And that's really all it does - manages the legwork of turning text into something else, an *ASCII Alchemist* if you will.
10
+
11
+ Webby works by combining the contents of a *page* with a *layout* to produce HTML. The layout contains everything common to all the pages - HTML headers, navigation menu, footer, etc. - and the page contains just the information for that page. You can use your favorite markup language to write your pages; Webby supports quite a few.
12
+
13
+ Install Webby and try it out!
14
+
15
+ == FEATURES:
16
+
17
+ * choose your templating language: *ERB*, *Textile*, *Markdown*, *HAML*, *SASS*
18
+ * support for {UltraViolet}[http://ultraviolet.rubyforge.org/] and {CodeRay}[http://coderay.rubychan.de/] syntax highlighting
19
+ * embeddable DOT scripts for {Graphviz}[http://www.graphviz.org/] graphs
20
+ * {LaTeX}[http://www.latex-project.org/] snippets for mathematical formulas
21
+ * automatically clean up generated content using {Tidy}[http://tidy.sourceforge.net/]
22
+ * quick and speedy - only builds pages that have changed
23
+ * deploy anywhere - it's just HTML, no special server stuff required
24
+ * happy {Rake}[http://docs.rubyrake.org/] tasks for deploying your website to a server
25
+ * build new pages from templates for quicker blog posts and news items
26
+
27
+ But Wait! There's More!
28
+
29
+ Webby has a great _autobuild_ feature that continuously generates HTML whenever the *pages* or *layouts* change. The HTML is served up via _WebBrick_, a simple webserver that comes with Ruby. Whenever you change a page, you can immediately see those changes without having to run any commands.
30
+
31
+ $ webby autobuild
32
+ [10:21:26] INFO: starting autobuild (Ctrl-C to stop)
33
+ [10:21:26] INFO: creating output/index.html
34
+ [10:22:57] INFO: creating output/index.html
35
+
36
+ Webby is not limited to producing HTML. By no means! Do you ever get tired of repeating the same color code *#D3C4A2* in your CSS files? Webby can help. Need some customized JavaScript for your website. Webby can help. Anytime you find yourself repeating the same bit of text over and over, then you should be using Webby.
37
+
38
+ == INSTALL:
39
+
40
+ gem install webby
41
+
42
+ == EXAMPLE:
43
+
44
+ $ webby-gen website my_site
45
+ creating my_site
46
+
47
+ $ cd my_site
48
+
49
+ $ webby create:page 'new page'
50
+ creating content/new-page.txt
51
+
52
+ $ webby create:page 'another/new page'
53
+ creating content/another/new-page.txt
54
+
55
+ $ webby autobuild
56
+ [10:21:26] INFO: starting autobuild (Ctrl-C to stop)
57
+ [10:21:26] INFO: creating output/index.html
58
+ [10:21:26] INFO: creating output/new-page.html
59
+ [10:21:26] INFO: creating output/another/new-page.html
60
+
61
+ == REQUIREMENTS:
62
+
63
+ * directory_watcher
64
+ * hpricot
65
+ * logging
66
+ * rake
67
+ * rspec
68
+ * bones
69
+
70
+ == LICENSE:
71
+
72
+ MIT License
73
+ Copyright (c) 2007 - 2008
74
+
75
+ Permission is hereby granted, free of charge, to any person obtaining
76
+ a copy of this software and associated documentation files (the
77
+ 'Software'), to deal in the Software without restriction, including
78
+ without limitation the rights to use, copy, modify, merge, publish,
79
+ distribute, sub-license, and/or sell copies of the Software, and to
80
+ permit persons to whom the Software is furnished to do so, subject to
81
+ the following conditions:
82
+
83
+ The above copyright notice and this permission notice shall be
84
+ included in all copies or substantial portions of the Software.
85
+
86
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
89
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
90
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
91
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
92
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,62 @@
1
+
2
+ begin
3
+ require 'bones'
4
+ Bones.setup
5
+ rescue LoadError
6
+ begin
7
+ load 'tasks/setup.rb'
8
+ rescue LoadError
9
+ raise RuntimeError, '### please install the "bones" gem ###'
10
+ end
11
+ end
12
+
13
+ ensure_in_path 'lib'
14
+ require 'webby'
15
+
16
+ task :default => 'spec:specdoc'
17
+
18
+ PROJ.name = 'webby'
19
+ PROJ.summary = 'static website creation and management'
20
+ PROJ.authors = 'Tim Pease'
21
+ PROJ.email = 'tim.pease@gmail.com'
22
+ PROJ.url = 'http://webby.rubyforge.org/'
23
+ PROJ.rubyforge.name = 'webby'
24
+ PROJ.version = Webby::VERSION
25
+ PROJ.release_name = 'Bill Gates Alien Love Child'
26
+ PROJ.readme_file = 'README.rdoc'
27
+ PROJ.ignore_file = '.gitignore'
28
+
29
+ PROJ.ruby_opts = %w[-W0]
30
+ PROJ.exclude << %w(^webby.gemspec$)
31
+
32
+ PROJ.rdoc.dir = 'doc/rdoc'
33
+ PROJ.rdoc.remote_dir = 'rdoc'
34
+ PROJ.rdoc.exclude << %w(^examples)
35
+ PROJ.rdoc.include << PROJ.readme_file
36
+
37
+ PROJ.spec.opts << '--color'
38
+
39
+ PROJ.ann.email[:to] << 'webby-forum@googlegroups.com'
40
+ PROJ.ann.email[:server] = 'smtp.gmail.com'
41
+ PROJ.ann.email[:port] = 587
42
+ PROJ.ann.email[:from] = 'Tim Pease'
43
+
44
+ PROJ.ann.text = <<-ANN
45
+ == POST SCRIPT
46
+
47
+ Visit the Webby forum to chat with other Webby-Heads:
48
+ http://groups.google.com/group/webby-forum
49
+
50
+ Blessings,
51
+ TwP
52
+ ANN
53
+
54
+ depend_on 'directory_watcher'
55
+ depend_on 'hpricot', '>= 0.6.0'
56
+ depend_on 'launchy'
57
+ depend_on 'logging'
58
+ depend_on 'loquacious'
59
+ depend_on 'rake'
60
+ depend_on 'rspec'
61
+
62
+ # EOF
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'logging'
5
+
6
+ ::Logging.configure {
7
+ logger('Webby') {
8
+ level :info
9
+ appenders 'stdout'
10
+ }
11
+
12
+ logger('Webby::Journal') {
13
+ level :info
14
+ additive false
15
+ appenders 'journal'
16
+ }
17
+
18
+ appender('stdout') {
19
+ type 'Stdout'
20
+ layout {
21
+ type 'Pattern'
22
+ pattern "[%d] %5l: %m\n"
23
+ date_pattern "%H:%M:%S"
24
+ }
25
+ }
26
+
27
+ appender('journal') {
28
+ type 'Stdout'
29
+ layout {
30
+ type 'Pattern'
31
+ pattern "%m\n"
32
+ }
33
+ }
34
+ }
35
+
36
+ require File.expand_path(
37
+ File.join(File.dirname(__FILE__), %w[.. lib webby]))
38
+
39
+ ::Webby::Apps::Main.run(ARGV)
40
+
41
+ # EOF
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'logging'
5
+
6
+ ::Logging.configure {
7
+ logger('Webby') {
8
+ level :info
9
+ appenders 'stdout'
10
+ }
11
+
12
+ logger('Webby::Journal') {
13
+ level :info
14
+ additive false
15
+ appenders 'journal'
16
+ }
17
+
18
+ appender('stdout') {
19
+ type 'Stdout'
20
+ layout {
21
+ type 'Pattern'
22
+ pattern "[%d] %5l: %m\n"
23
+ date_pattern "%H:%M:%S"
24
+ }
25
+ }
26
+
27
+ appender('journal') {
28
+ type 'Stdout'
29
+ layout {
30
+ type 'Pattern'
31
+ pattern "%m\n"
32
+ }
33
+ }
34
+ }
35
+
36
+ require File.expand_path(
37
+ File.join(File.dirname(__FILE__), %w[.. lib webby]))
38
+
39
+ ::Webby::Apps::Generator.run(ARGV)
40
+
41
+ # EOF