Permalink
Browse files

Work in progress

  • Loading branch information...
1 parent e725895 commit 115d3826277360034cd6821b4dc153f9f41a78cb Christian Johansen committed Feb 6, 2012
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo "Indexing docs site at http://localhost:8090"
+wget -o wget.log --convert-links --page-requisites --recursive --level=inf -U WGET --html-extension --no-host-directories --directory-prefix=static http://localhost:8090/
+sed -i s/\"index.html/"\"\/"/ static/**/*.html
+sed -i s/index.html// static/**/*.html
View
@@ -7,7 +7,7 @@ var url = require("url");
var mime = require("mime");
var ejs = require("ejs");
-var PORT = parseInt(process.argv[2], 10) || 8080;
+var PORT = parseInt(process.argv[2], 10) || 8090;
var PUBLIC = path.join(__dirname, "..", "public");
var SITE = path.join(__dirname, "..", "site");
var LAYOUT = fs.readFileSync(path.join(__dirname, "..", "layout.html"), "utf8");
View
@@ -12,8 +12,8 @@
<a href="/" id="logo_image"></a>
<ul id="main_menu">
<li><a href="/" class="active">Home</a></li>
- <li><a href="/docs">Documentation</a></li>
- <li><a href="/community">Community</a></li>
+ <li><a href="/docs/">Documentation</a></li>
+ <li><a href="/community/">Community</a></li>
</ul>
</div>
</div>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -6,22 +6,22 @@
</p>
<h2>Overview</h2>
<p>A lits of most of the things Buster.JS can do.</p>
-<p><a href="overview">Read more</a></p>
+<p><a href="overview/">Read more</a></p>
<h2>Installation, getting started</h2>
<p>Installation instructions, your first test, the config file, and so on.</p>
-<p><a href="getting-started">Read more</a></p>
+<p><a href="getting-started/">Read more</a></p>
<h2>Writing tests</h2>
<p>
- Read about <a href="browser-testing">browser
- testing</a>, <a href="node-testing">Node testing</a>
- and <a href="hybrid-testing">hybrid Node and browser testing</a>.
+ Read about <a href="browser-testing/">browser
+ testing</a>, <a href="node-testing/">Node testing</a>
+ and <a href="hybrid-testing/">hybrid Node and browser testing</a>.
</p>
<p>
- <a href="buster-test/test-case">buster.testcase</a> documents contexts, setUp
+ <a href="buster-test/test-case/">buster.testcase</a> documents contexts, setUp
and tearDown, asynchronous tests, and more.
</p>
<p>
- <a href="buster-assertions">buster.assertions</a> documents all of our
+ <a href="buster-assertions/">buster.assertions</a> documents all of our
assertions. There are lots of them.
</p>
<h2>Modules</h2>
View
@@ -1,7 +1,7 @@
<h1>Buster.JS overview</h1>
<p>Buster.JS is a JavaScript test framework for node and browsers.</p>
<h2>Installation</h2>
-<p>See <a href="/getting-started/">getting started</a>.</p>
+<p>See <a href="/docs/getting-started/">getting started</a>.</p>
<h2>The config file</h2>
<p>
Buster.JS needs a config file, both for node.js tests and browser tests. Name
@@ -95,7 +95,7 @@
</p>
<p>
Use <kbd>buster test</kbd> in a terminal to initiate the test run. Here's the
- test output for <a href="/buster-args/">buster-args</a>.
+ test output for <a href="/docs/args/">buster-args</a>.
</p>
<p><img src="/images/node-testing/buster-test-node.png" width="633" height="382"></p>
<h2>Assertions</h2>
@@ -229,7 +229,7 @@
assert.calledOnce(myLib.thingie.aMethod);
}
})</code></pre>
-<p>See full docs at <a href="/sinon-buster/">sinon-buster</a>.</p>
+<p>See full docs at <a href="/docs/sinon/">sinon-buster</a>.</p>
<h2>Asynchronous tests</h2>
<p>
Asynchronous tests are tests that aren't finished running when the test method
@@ -501,24 +501,24 @@
be re-used for various purposes.
</p>
<p>
- The <a href="/buster-assertions/">buster-assertions</a> package can easily be
+ The <a href="/docs/assertions/">buster-assertions</a> package can easily be
used in other testing frameworks. If you use JsTestDriver,
follow <a href="http://cjohansen.no/using-buster-assertions-with-jstestdriver">these
steps</a> (hint: it's pretty easy).
</p>
<p>
If you write your own testing framework, you may find many of our modules
- useful. <a href="/buster-assertions/">buster-assertions</a> is one such
+ useful. <a href="/docs/assertions/">buster-assertions</a> is one such
module, and is completely reusable. You can also
- use <a href="/buster-capture-server/">buster-capture-server</a> if you want
+ use <a href="/docs/capture-server/">buster-capture-server</a> if you want
browser automation in your test framework, without implementing the actual
browser automation part yourself.
</p>
<p>
Another example of usage of Buster.JS modules in other projects
is <a href="http://github.com/augustl/slidebuster">Slidebuster</a> (note:
proof of
- concept). The <a href="/buster-capture-server/">buster-capture-server</a>
+ concept). The <a href="/docs/capture-server/">buster-capture-server</a>
module is not test runner specific, it is a generic browser automation
framework. Slidebuster uses it so that if you "capture" a normal browser and a
touch device, you can swipe left and right on the touch device to change the
@@ -537,7 +537,7 @@
control over when the test run starts.
</p>
<p>
- <a href="/starting-testrun-manually/">Full documentation here</a>.
+ <a href="/docs/starting-testrun-manually/">Full documentation here</a>.
</p>
<h2>Global variables</h2>
<p>
@@ -71,7 +71,7 @@ <h3 id="filters" data-title="+filters+"><code>filters</code></h3>
these libraries in test reports, add entries to this array.
</p>
<p>
- The <a href="/buster-sinon-buster/">buster-sinon-buster</a> module adds the core
+ The <a href="/docs/sinon/">buster-sinon-buster</a> module adds the core
<a href="http://sinonjs.org">Sinon.JS</a> libraries to the array to avoid
them getting in the way of finding where in your test and implementation a
failure originated. (Note that the added entry filters out lines from both

0 comments on commit 115d382

Please sign in to comment.