diff --git a/CHANGELOG.md b/CHANGELOG.md index 187f3fa10..67ae214d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ zombie.js-changelog(7) -- Changelog =================================== -## Version 0.8.2 2010-12-30 +### Version 0.8.2 2010-12-30 Fixed bug whereby Zombie hangs when making requests to a URL that has no path (e.g. `http://localhost`). @@ -11,7 +11,7 @@ path (e.g. `http://localhost`). 2.5 sec to complete -## Version 0.8.1 2010-12-29 +### Version 0.8.1 2010-12-29 Added User-Agent string. You can change it by setting the browser option `userAgent`. @@ -28,7 +28,7 @@ in the browser. Changed it to load the page (add caching later on). 2.6 sec to complete -## Version 0.8.0 2010-12-29 +### Version 0.8.0 2010-12-29 Fixed issue 8, wrong location of package.json. @@ -51,7 +51,7 @@ Added new page covering the browser API. 2.5 sec to complete -## Version 0.7.7 2010-12-28 +### Version 0.7.7 2010-12-28 Fix JSDOM queue and with it issue #6. @@ -59,7 +59,7 @@ Fix JSDOM queue and with it issue #6. 2.3 sec to complete -## Version 0.7.6 2010-12-28 +### Version 0.7.6 2010-12-28 HTML5 doesn't play nice with JSDOM, bringing back html-parser to handle innerHTML (full document parsing still handled by HTML5). @@ -74,7 +74,7 @@ Added zombie.version. 2.3 sec to complete -## Version 0.7.5 2010-12-28 +### Version 0.7.5 2010-12-28 Previous fix for document.write was incomplete, this one works better. @@ -82,7 +82,7 @@ Previous fix for document.write was incomplete, this one works better. 2.5 sec to complete -## Version 0.7.4 2010-12-28 +### Version 0.7.4 2010-12-28 Now parsing documents using HTML5, which can deal better with tag soup. @@ -97,7 +97,7 @@ lastResponse and lastError. 2.5 sec to complete -## Version 0.7.3 2010-12-27 +### Version 0.7.3 2010-12-27 Fixed non-sensical error message when selector fails matching a node (`fill`, `check`, `select`, etc). @@ -122,7 +122,7 @@ can! 1.8 sec to complete -## Version 0.7.2 2010-12-27 +### Version 0.7.2 2010-12-27 In CoffeeScript 1.0 loops no longer try preserve block scope when functions are being generated within the loop body. Unfortunately, this @@ -136,12 +136,12 @@ navigate to a different page. 1.8 sec to complete -## Version 0.7.1 2010-12-22 +### Version 0.7.1 2010-12-22 Removed CoffeeScript from runtime dependency list. -## 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` @@ -159,7 +159,7 @@ 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. @@ -167,19 +167,19 @@ 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. @@ -195,7 +195,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 @@ -209,7 +209,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. diff --git a/Cakefile b/Cakefile index 93d78a001..ece0378d1 100644 --- a/Cakefile +++ b/Cakefile @@ -129,16 +129,27 @@ generateMan = (callback)-> process.stdout.write "\n" convert() +generatePDF = (callback)-> + log "Generating PDF documentation ...", green + files = "index api selectors troubleshoot".split(" ").map((f)-> "html/#{f}.html") + options = "--book --disable-javascript --outline --print-media-type --title Zombie.js --header-html doc/_header.html --cover doc/cover.html" + margins = "--margin-left 20 --margin-right 20 --margin-top 20 --margin-bottom 20 --header-spacing 5" + exec "wkhtmltopdf #{options} #{margins} #{files.join(" ")} html/zombie.pdf", callback + generateDocs = (callback)-> log "Generating documentation ...", green documentPages (err)-> onerror err documentSource (err)-> onerror err - generateMan callback + generatePDF (err)-> + onerror err + generateMan callback + task "doc:pages", "Generate documentation for main pages", -> documentPages onerror task "doc:source", "Generate documentation from source files", -> documentSource onerror task "doc:man", "Generate man pages", -> generateMan onerror +task "doc:pdf", "Generate PDF documentation", -> generatePDF onerror task "doc", "Generate all documentation", -> generateDocs onerror diff --git a/README.md b/README.md index 24ba070a5..95f3ac810 100644 --- a/README.md +++ b/README.md @@ -238,17 +238,19 @@ outstanding [to-dos](todo.html). ## Brains Zombie.js is copyright of [Assaf Arkin](http://labnotes.org), released -under the MIT License. +under the MIT License Zombie.js is written in [CoffeeScript](http://jashkenas.github.com/coffee-script/) for -[Node.js](http://nodejs.org/). +[Node.js](http://nodejs.org/) -DOM emulation by Elijah Insua's [JSDOM](http://jsdom.org/). +DOM emulation by Elijah Insua's [JSDOM](http://jsdom.org/) -HTML5 parsing by Aria Stewart's [HTML5](https://github.com/aredridel/html5). +HTML5 parsing by Aria Stewart's [HTML5](https://github.com/aredridel/html5) -CSS selectors by John Resig's [Sizzle.js](http://sizzlejs.com/). +CSS selectors by John Resig's [Sizzle.js](http://sizzlejs.com/) + +Magical Zombie Girl by [Toho Scope](http://www.flickr.com/people/tohoscope/) ## See Also diff --git a/doc/_header.html b/doc/_header.html new file mode 100644 index 000000000..09997cb09 --- /dev/null +++ b/doc/_header.html @@ -0,0 +1,34 @@ + + + + + + + + + + + +
+ + diff --git a/doc/_layout.html b/doc/_layout.html index d4790863f..934d9d2c7 100644 --- a/doc/_layout.html +++ b/doc/_layout.html @@ -17,9 +17,11 @@
  • Troubleshooting
  • The Guts
  • Changelog
  • -
  • Todo
  • -
  • Annotated Source
  • +
  • Download PDF
  • +
  •  
  • DOM API
  • +
  • Annotated Source
  • +
  • Todo
  • Github/Issues