webby 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/History.txt +5 -0
  2. data/Manifest.txt +0 -4
  3. data/README.txt +31 -8
  4. data/Rakefile +2 -5
  5. data/data/content/css/blueprint/Readme.txt +10 -3
  6. data/data/content/css/blueprint/lib/buttons.css +2 -2
  7. data/data/content/css/blueprint/lib/compressed.css +112 -102
  8. data/data/content/css/blueprint/lib/grid.css +78 -106
  9. data/data/content/css/blueprint/lib/img/grid.png +0 -0
  10. data/data/content/css/blueprint/lib/reset.css +6 -3
  11. data/data/content/css/blueprint/lib/typography.css +55 -53
  12. data/data/content/css/blueprint/print.css +9 -5
  13. data/data/content/css/blueprint/screen.css +15 -19
  14. data/data/content/css/coderay.css +1 -1
  15. data/lib/webby.rb +2 -2
  16. data/lib/webby/coderay_filter.rb +3 -2
  17. data/lib/webby/renderer.rb +10 -10
  18. data/tasks/setup.rb +3 -1
  19. data/website/content/css/blueprint/lib/buttons.css +2 -2
  20. data/website/content/css/blueprint/lib/compressed.css +112 -102
  21. data/website/content/css/blueprint/lib/grid.css +78 -106
  22. data/website/content/css/blueprint/lib/img/grid.png +0 -0
  23. data/website/content/css/blueprint/lib/reset.css +6 -3
  24. data/website/content/css/blueprint/lib/typography.css +55 -53
  25. data/website/content/css/blueprint/print.css +9 -5
  26. data/website/content/css/blueprint/screen.css +15 -19
  27. data/website/content/css/site.css +15 -4
  28. data/website/content/index.txt +13 -0
  29. data/website/content/tips_and_tricks.txt +29 -27
  30. data/website/layouts/default.rhtml +0 -3
  31. metadata +12 -7
  32. data/data/content/css/blueprint/lib/img/baseline-black.png +0 -0
  33. data/data/content/css/blueprint/lib/img/baseline.png +0 -0
  34. data/website/content/css/blueprint/lib/img/baseline-black.png +0 -0
  35. data/website/content/css/blueprint/lib/img/baseline.png +0 -0
@@ -1,9 +1,8 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
- Blueprint CSS Framework
4
- [bjorkoy.com/blueprint]
5
-
6
- * Print Styles *
3
+ Blueprint CSS Framework Print Styles
4
+ * Version: 0.5 (28/8/2007)
5
+ * Website: http://code.google.com/p/blueprintcss/
7
6
 
8
7
  This file creates CSS styles for printing documents.
9
8
  Include this in the <head> of every page. See the
@@ -17,13 +16,18 @@
17
16
  -------------------------------------------------------------- */
18
17
 
19
18
  body {
20
- font-family: Georgia, Times, serif;
21
19
  line-height: 1.5;
22
20
  color:#000;
23
21
  background: none;
24
22
  font-size: 11pt;
25
23
  }
26
24
 
25
+ h1,h2,h3,
26
+ h4,h5,h6 { font-family: Constantia, "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif; }
27
+ body { font-family: Frutiger, Univers, "Helvetica Neue", "Lucida Grande", Calibri, Helvetica, Arial, sans-serif; }
28
+ pre { font-family: Corbel, Verdana, "Bitstream Vera Sans", sans-serif; }
29
+ code { font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Monaco, Courier, monospace; }
30
+
27
31
  img {
28
32
  float:left;
29
33
  margin:1.5em 1.5em 1.5em 0;
@@ -1,9 +1,8 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
- Blueprint CSS Framework
4
- [bjorkoy.com/blueprint]
5
-
6
- * Screen & Projection Styles *
3
+ Blueprint CSS Framework Screen Styles
4
+ * Version: 0.5 (28/8/2007)
5
+ * Website: http://code.google.com/p/blueprintcss/
7
6
 
8
7
  This is the main CSS-file for the framework.
9
8
  Include this in the <head> of every page. See the
@@ -11,24 +10,21 @@
11
10
 
12
11
  -------------------------------------------------------------- */
13
12
 
14
- /* Import stylesheets and hide from IE/Mac \*/
15
- @import "lib/reset.css";
16
- @import "lib/typography.css";
17
- @import "lib/grid.css";
18
- @import "lib/buttons.css";
19
- /* End import/hide */
13
+ @import 'lib/reset.css';
14
+ @import 'lib/typography.css';
15
+ @import 'lib/grid.css';
16
+ @import 'lib/buttons.css';
20
17
 
21
18
 
22
- /* Compressed version:
19
+ /* Compressed version (re-compress if you change the core files):
23
20
  [http://teenage.cz/acidofil/tools/cssformat.php]
24
21
 
25
- Comment out @import statements above, and add this
26
- one when your site has launched (Ca 60% compressed):
27
- @import "lib/compressed.css"; */
28
-
22
+ Comment out @import statements above, and
23
+ add this line instead, when your site has launched
24
+ (compresses ca 60% of the core files in BP):
25
+ @import 'lib/compressed.css'; */
29
26
 
30
- /* Uncomment the line below to see the grid and baseline.
31
- (Assuming you've wrapped your columns in a container).
32
27
 
33
- .container { background: url(lib/img/grid.png); }
34
- .container { background: url(lib/img/baseline.png); } */
28
+ /* Uncomment the line below to see the grid and baseline. */
29
+ /* .container { background: url(lib/img/grid.png); } */
30
+ /* .container { background: url(lib/img/baseline.png); } */
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  body { margin: 1.0em 0 }
4
3
 
5
4
  #header hr { margin-bottom: 0.5em; height: 0.3em; }
@@ -15,8 +14,20 @@ body { margin: 1.0em 0 }
15
14
  pre.code {
16
15
  padding: 0.5em;
17
16
  margin-bottom: 1.3em;
18
- color: #fff;
19
- background-color: #333;
20
- border: 0.1em solid black;
17
+ color: #100;
18
+ background-color: #eee;
19
+ border: 1px solid #aaa;
21
20
  font: 1.1em Monaco, monospace;
21
+ overflow: auto;
22
+ }
23
+
24
+ div.toc {
25
+ float: right;
26
+ padding: 1.5em;
27
+ margin-left: 1.5em;
28
+ margin-bottom: 1.5em;
29
+ background-color: #b2ccff;
30
+ border: 1px solid #aaa;
22
31
  }
32
+
33
+ div.toc ul { margin-bottom: 0; }
@@ -16,6 +16,7 @@ gem install webby
16
16
  h3. Features
17
17
 
18
18
  * choose your templating language: *eRuby*, *Textile*, *Markdown*, *HAML*
19
+ * support for "CodeRay":http://coderay.rubychan.de/ syntax highlighting
19
20
  * quick and speedy - only builds pages that have changed
20
21
  * deploy anywhere - it's just HTML, no special server stuff required
21
22
  * happy "rake":http://docs.rubyrake.org/ tasks for deploying your website to a server
@@ -23,6 +24,18 @@ h3. Features
23
24
 
24
25
  h3. But Wait! There's More!
25
26
 
27
+ Webby has a great _autobuild_ feature that continously generates HTML whenever the *pages* or *layouts* change. The HTML is served up via "heel":http://copiousfreetime.rubyforge.org/heel/, a static file webserver based on mongrel. Whenever you change a page, you can immediately see those changes without having to run any commands.
28
+
29
+ <pre class="code">
30
+ $ rake autobuild
31
+ heel --root output --daemonize
32
+ -- starting autobuild (Ctrl-C to stop)
33
+ - started at 10:21:26
34
+ creating output/index.html
35
+ - started at 10:22:57
36
+ creating output/index.html
37
+ </pre>
38
+
26
39
  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.
27
40
 
28
41
  Read the "tutorial":tutorial.html section for a quick introduction to Webby, and enjoy the wonders of *ASCII Alchemy*.
@@ -1,17 +1,38 @@
1
1
  ---
2
2
  title: Tips & Tricks
3
3
  created_at: Wed Aug 29 08:57:11 -0600 2007
4
+ filter: textile
5
+ ---
6
+ <div class="toc push-1">
7
+
8
+ h4. Table of Contents
9
+
10
+ * "CodeRay":#toc_cr
11
+
12
+ </div>
13
+
14
+ h3(#toc_cr){clear:none}. CodeRay
15
+
16
+ To include "CodeRay":http://coderay.rubychan.de/ syntax highlighting support in a page you need to have the @coderay@ gem installed, and you need to include the CodeRay stylesheet in your layout. The following example shows a page that uses CodeRay syntax highlighting combined with Textile markup.
17
+
18
+ Note how the @coderay@ block is enclosed by a @notextile@ block. This ensures that the Textile filter does not clobber the generated syntax highlighting.
19
+
20
+ <pre class="code">
21
+ ---
22
+ title: CodeRay Example
4
23
  filter:
5
24
  - erb
6
25
  - coderay
7
26
  - textile
8
27
  ---
9
- h2. To-Do
28
+ h3. <%= h(@page.title) %>
10
29
 
11
- The Webby tips & tricks page goes here.
30
+ This is the @render_page@ function from the Webby static website generation
31
+ system. It is used to render a page by applying the specified filters in
32
+ succession to the page contents.
12
33
 
13
- <notextile>
14
- <coderay line_numbers="inline">
34
+ <notextile>&lt;notextile&gt;
35
+ &lt;coderay lang="ruby" line_numbers="inline"&gt;
15
36
  # call-seq:
16
37
  # render_page => string
17
38
  #
@@ -22,33 +43,14 @@ def render_page
22
43
  ary = []
23
44
  str = ::Webby::File.read(@page.path)
24
45
 
25
- str << "and some more text"
26
-
27
46
  @page.filter.to_a.each do |filter|
28
47
  str = self.send(filter + '_filter', str)
29
48
  end
30
49
 
31
50
  str
32
51
  end
33
- </coderay>
34
- </notextile>
35
-
36
- And some more text.
37
-
38
- <pre class="code">
39
- ---
40
- title: Home Page
41
- filter:
42
- - erb
43
- - textile
44
- ---
45
- h2. <%= @page.title %>
46
-
47
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc congue ipsum
48
- vestibulum libero. Aenean vitae justo. Nam eget tellus. Etiam convallis, est
49
- eu lobortis mattis, lectus tellus tempus felis, a ultricies erat ipsum at
50
- metus.
51
-
52
- h3. Litora Sociis
53
- ...
52
+ &lt;/coderay&gt;
53
+ &lt;/notextile&gt;</notextile>
54
54
  </pre>
55
+
56
+ There are more options that can be passed to the CodeRay syntax highlighter than those shown in the example above. Take a look at the RDoc documentation for the "CodeRayFilter":http://webby.rubyforge.org/rdoc/classes/Webby/CodeRayFilter.html class for more information.
@@ -15,9 +15,6 @@ filter: erb
15
15
  <link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection" />
16
16
  <link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print" />
17
17
 
18
- <!-- CodeRay text highlighting CSS -->
19
- <link rel="stylesheet" href="css/coderay.css" type="text/css" media="all" />
20
-
21
18
  <!-- Homepage CSS -->
22
19
  <link rel="stylesheet" href="css/site.css" type="text/css" media="screen, projection" />
23
20
  </head>
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: webby
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
7
- date: 2007-09-17 00:00:00 -06:00
6
+ version: 0.4.0
7
+ date: 2007-09-18 00:00:00 -06:00
8
8
  summary: static website creation and management
9
9
  require_paths:
10
10
  - lib
11
11
  email: tim.pease@gmail.com
12
12
  homepage: http://webby.rubyforge.org/
13
13
  rubyforge_project: webby
14
- description: Webby is a tool for creating and managing static websites. Web pages are written using ERB, Textile, Markdown, HAML, etc. The Webby rake tasks transform the pages into valid HTML, and these pages can be uploaded to a web server for general consumption.
14
+ description: Webby is a super 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.
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -40,8 +40,6 @@ files:
40
40
  - data/content/css/blueprint/lib/buttons.css
41
41
  - data/content/css/blueprint/lib/compressed.css
42
42
  - data/content/css/blueprint/lib/grid.css
43
- - data/content/css/blueprint/lib/img/baseline-black.png
44
- - data/content/css/blueprint/lib/img/baseline.png
45
43
  - data/content/css/blueprint/lib/img/grid.png
46
44
  - data/content/css/blueprint/lib/img/icons/cross.png
47
45
  - data/content/css/blueprint/lib/img/icons/textfield_key.png
@@ -84,8 +82,6 @@ files:
84
82
  - website/content/css/blueprint/lib/buttons.css
85
83
  - website/content/css/blueprint/lib/compressed.css
86
84
  - website/content/css/blueprint/lib/grid.css
87
- - website/content/css/blueprint/lib/img/baseline-black.png
88
- - website/content/css/blueprint/lib/img/baseline.png
89
85
  - website/content/css/blueprint/lib/img/grid.png
90
86
  - website/content/css/blueprint/lib/img/icons/cross.png
91
87
  - website/content/css/blueprint/lib/img/icons/textfield_key.png
@@ -131,6 +127,15 @@ dependencies:
131
127
  - !ruby/object:Gem::Version
132
128
  version: 1.0.0
133
129
  version:
130
+ - !ruby/object:Gem::Dependency
131
+ name: heel
132
+ version_requirement:
133
+ version_requirements: !ruby/object:Gem::Version::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: 0.3.2
138
+ version:
134
139
  - !ruby/object:Gem::Dependency
135
140
  name: hpricot
136
141
  version_requirement: