Permalink
Browse files

Added subtitle to pages, changed tagline.

  • Loading branch information...
1 parent a95a1c9 commit 2b99178f5a7bb67d7ebded4b53ef3e2134125631 @assaf committed Dec 22, 2010
Showing with 24 additions and 17 deletions.
  1. +9 −8 CHANGELOG.md
  2. +7 −6 Cakefile
  3. +2 −2 README.md
  4. +1 −0 doc/_layout.html
  5. +4 −0 doc/screen.css
  6. +1 −1 package.json
View
@@ -1,6 +1,7 @@
-# CHANGELOG #
+Changes
+=======
-### Version 0.7.0 2010-12-22
+## Version 0.7.0 2010-12-22
Added `querySelector` and `querySelectorAll` based on the [DOM Selector
API](http://www.w3.org/TR/selectors-api/). Use this instead of `find`
@@ -18,27 +19,27 @@ More, better, documentation.
2.0 sec to complete
-### Version 0.6.5 2010-12-21
+## Version 0.6.5 2010-12-21
Fixed lack of JavaScript source code: CoffeeScript moved to src,
JavaScript compiled into lib, life is grand again.
Changelog is now Markdown file and part of the documentation.
-### Version 0.6.4 2010-12-21
+## Version 0.6.4 2010-12-21
First documentation you can actually use.
-### Version 0.6.3 2010-12-21
+## Version 0.6.3 2010-12-21
Fixed documentation link.
`man zombie`
-### Version 0.6.2 2010-12-21
+## Version 0.6.2 2010-12-21
First NPM release.
@@ -54,7 +55,7 @@ spec/.scripts.
1.8 sec to complete
-### Version 0.6.1 2010-12-20
+## Version 0.6.1 2010-12-20
Changed browser.cookies from getter to function that accepts cookie domain
(host and port) and path, and returns wrapper to access specific cookie
@@ -68,7 +69,7 @@ Added window.JSON.
1.8 sec to complete
-### Version 0.6.0 2010-12-20
+## Version 0.6.0 2010-12-20
First release that I could use to test an existing project.
View
@@ -70,7 +70,7 @@ task "test", "Run all tests", -> runTests onerror
## Documentation ##
# Markdown to HTML.
-toHTML = (source, title, callback)->
+toHTML = (source, callback)->
target = "html/#{path.basename(source, ".md").toLowerCase()}.html"
fs.mkdir "html", 0777, ->
fs.readFile "doc/_layout.html", "utf8", (err, layout)->
@@ -80,20 +80,21 @@ toHTML = (source, title, callback)->
log "Creating #{target}", green
exec "ronn --html #{source}", (err, stdout, stderr)->
onerror err
- title ||= stdout.match(/<h1>(.*)<\/h1>/)[1]
+ [title, subtitle] = stdout.match(/<h1>(.*)<\/h1>/)[1].split(" -- ")
+ title = title.replace(/\(\d\)/, "")
body = stdout.replace(/<h1>.*<\/h1>/, "")
- html = layout.replace("{{body}}", body).replace(/{{title}}/g, title)
+ html = layout.replace("{{body}}", body).replace(/{{title}}/g, title).replace(/{{subtitle}}/g, subtitle || "")
fs.writeFile target, html, "utf8", (err)->
callback err, target
documentPages = (callback)->
- toHTML "README.md", "Zombie.js", (err)->
+ toHTML "README.md", (err)->
onerror err
exec "mv html/readme.html html/index.html", (err)->
onerror err
- toHTML "TODO.md", null, (err)->
+ toHTML "TODO.md", (err)->
onerror err
- toHTML "CHANGELOG.md", null, (err)->
+ toHTML "CHANGELOG.md", (err)->
onerror err
sys.puts ""
exec "cp -f doc/*.css html/", callback
View
@@ -1,5 +1,5 @@
-zombie.js(1) -- Superfast headless full stack testing framework using Node.js
-==========================================================================
+Zombie.js(1) -- Insanely fast, headless full-stack testing using node.js
+========================================================================
## The Bite
View
@@ -20,6 +20,7 @@
</div>
<div id="content">
<h1>{{title}}</h1>
+ <div class="subtitle">{{subtitle}}</div>
{{body}}
</div>
<div id="footer">
View
@@ -49,6 +49,10 @@ pre, code {
#content {
margin-top: 2em;
}
+#content .subtitle {
+ margin: 1em 0;
+ font-weight: 600;
+}
#footer {
margin: 2em 0;
View
@@ -1,7 +1,7 @@
{
"name": "zombie",
"version": "0.7.0",
- "description": "Superfast headless full stack testing framework using node.js",
+ "description": "Insanely fast, full-stack, headless testing using node.js",
"homepage": "http://zombie.labnotes.org/",
"author": "Assaf Arkin <assaf@labnotes.org> (http://labnotes.org/)",
"keywords": [

0 comments on commit 2b99178

Please sign in to comment.