Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

get rid of useless template file, move some stuff around, apply templ…

…ate change
  • Loading branch information...
commit c19b63fb310df9a27c83171619b5eba5913a0557 1 parent 466c725
@ianb authored
View
10 bin/include-scripts.sh → .resources/include-scripts.sh
@@ -9,17 +9,17 @@ if [ ! -f $base/doctest.js ] ; then
exit 1
fi
-if [ ! -d $base/jshint ] ; then
- echo "Could not find $base/jshint"
+if [ ! -d $base/.resources/jshint ] ; then
+ echo "Could not find $base/.resources/jshint"
echo "Try:"
- echo " git clone https://github.com/jshint/jshint.git jshint"
+ echo " git clone https://github.com/jshint/jshint.git .resources/jshint"
exit 2
fi
if [ ! -d $base/esprima ] ; then
- echo "Could not find $base/esprima"
+ echo "Could not find $base/.resources/esprima"
echo "Try:"
- echo " git clone https://github.com/ariya/esprima.git esprima"
+ echo " git clone https://github.com/ariya/esprima.git .resources/esprima"
exit 3
fi
View
2  index.html
@@ -176,7 +176,7 @@ <h1 class="title"><a href="/">Doctest.js</a>: <!-- TITLE -->A Humane Javascript
<div class="footer-container">
<footer class="wrapper">
- <h3>doctest.js is by <a href="http://ianbicking.org">Ian Bicking</a>.
+ <h3 class="no-toc">doctest.js is by <a href="http://ianbicking.org">Ian Bicking</a>.
It's on <a href="https://github.com/ianb/doctestjs">github</a>!</h3>
</footer>
</div>
View
88 index_template.html
@@ -1,88 +0,0 @@
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-
-<title>doctest.js</title>
-
-<script type="text/javascript" src="doctest.js"></script>
-<link rel="stylesheet" type="text/css" href="doctest.css" />
-<link rel="stylesheet" type="text/css" href="docs/doc.css" />
-<script type="text/javascript" src="docs/js/toc.js"></script>
-
-<style type="text/css">
-body {
- margin-top: 1.0em;
- background-color: #100207;
- font-family: "Helvetica,Arial,FreeSans";
- color: #ffffff;
-}
-#container {
- margin: 0 auto;
- width: 700px;
-}
- h1 { font-size: 3.8em; color: #effdf8; margin-bottom: 3px; }
- h1 .small { font-size: 0.4em; }
- h1 a { text-decoration: none }
- h2 { font-size: 1.5em; color: #effdf8; }
- h3 { text-align: center; color: #effdf8; }
- a { color: #effdf8; }
- .description { font-size: 1.2em; margin-bottom: 30px; margin-top: 30px; font-style: italic;}
- .download { float: right; }
- pre { background: #000; color: #fff; padding: 15px;}
- hr { border: 0; width: 80%; border-bottom: 1px solid #aaa}
- .footer { text-align:center; padding-top:30px; font-style: italic; }
- </style>
-
-</head>
-
-<body class="autodoctest">
- <a href="http://github.com/ianb/doctestjs"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
-
- <div id="container">
-
- <div class="download">
- <a href="http://github.com/ianb/doctestjs/zipball/master">
- <img border="0" width="90" src="http://github.com/images/modules/download/zip.png"></a>
- <a href="http://github.com/ianb/doctestjs/tarball/master">
- <img border="0" width="90" src="http://github.com/images/modules/download/tar.png"></a>
- </div>
-
- <h1><a href="http://github.com/ianb/doctestjs">doctest.js</a>
- <span class="small">by <a href="http://github.com/ianb">Ian Bicking</a></span></h1>
-
- <div class="description">
- Javascript testing framework inspired by Python's doctest
- </div>
-
- <div>
- __BODY__
- </div>
-
- <h2>Download</h2>
- <p>
- You can download this project in either
- <a href="http://github.com/ianb/doctestjs/zipball/master">zip</a> or
- <a href="http://github.com/ianb/doctestjs/tarball/master">tar</a> formats.
- </p>
- <p>You can also clone the project with <a href="http://git-scm.com">Git</a>
- by running:
- <pre>$ git clone git://github.com/ianb/doctestjs</pre>
- </p>
-
- <div class="footer">
- get the source code on GitHub : <a href="http://github.com/ianb/doctestjs">ianb/doctestjs</a>
- </div>
-
- </div>
-
- <script type="text/javascript">
-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-</script>
-<script type="text/javascript">
-try {
-var pageTracker = _gat._getTracker("UA-6731441-12");
-pageTracker._trackPageview();
-} catch(err) {}</script>
-</body>
-</html>
View
2  reference.html
@@ -433,7 +433,7 @@ <h3 id="nosyxmlhttprequest"><code>NosyXMLHttpRequest</code></h3>
<div class="footer-container">
<footer class="wrapper">
- <h3>doctest.js is by <a href="http://ianbicking.org">Ian Bicking</a>.
+ <h3 class="no-toc">doctest.js is by <a href="http://ianbicking.org">Ian Bicking</a>.
It's on <a href="https://github.com/ianb/doctestjs">github</a>!</h3>
</footer>
</div>
View
12 tutorial.html
@@ -39,6 +39,14 @@ <h1 class="title"><a href="/">Doctest.js</a>: <!-- TITLE -->A Tutorial <!-- /TIT
<!-- BODY -->
+
+<aside>
+ <h3>Try it now!</h3>
+
+ <p>If you want to try writing/running your own tests (maybe as you read the tutorial) try the <strong><a href="try.html">live demo</a></strong>.
+ </p>
+</aside>
+
<div id="contents"></div>
<article>
@@ -600,6 +608,8 @@ <h1 class="title"><a href="/">Doctest.js</a>: <!-- TITLE -->A Tutorial <!-- /TIT
</section>
+<h3 href="try.html">Live Demo...</h3>
+
</article>
<!--
@@ -619,7 +629,7 @@ <h1 class="title"><a href="/">Doctest.js</a>: <!-- TITLE -->A Tutorial <!-- /TIT
<div class="footer-container">
<footer class="wrapper">
- <h3>doctest.js is by <a href="http://ianbicking.org">Ian Bicking</a>.
+ <h3 class="no-toc">doctest.js is by <a href="http://ianbicking.org">Ian Bicking</a>.
It's on <a href="https://github.com/ianb/doctestjs">github</a>!</h3>
</footer>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.