Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Clean up doc intro and syntax highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 26, 2009
1 parent e8f177a commit 24ebd03
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
19 changes: 15 additions & 4 deletions website/index.html
Expand Up @@ -118,7 +118,7 @@

<h1><a href="http://tinyclouds.org/node">Node</a></h1>

<p id="introduction">Purely asynchronous server-side I/O for <a
<p id="introduction">Purely evented server-side I/O for <a
href="http://code.google.com/p/v8/">V8 javascript</a>.

<p>This is an example of a web server written with Node which responds with
Expand All @@ -133,6 +133,12 @@ <h1><a href="http://tinyclouds.org/node">Node</a></h1>
}).listen(8000);
puts("Server running at http://127.0.0.1:8000/");</pre>

<p> To run the server, put the code into a file <code>server.js</code>
and call it with the <code>node</code> executable
<pre class="sh_none">% /usr/local/bin/node server.js
Server running at http://127.0.0.1:8000/
</pre>


<p> See <a href="#api">the API documentation</a> for more examples.

Expand All @@ -152,10 +158,15 @@ <h2 id="download">Download</h2>

<h2 id="build">Build</h2>

<p>Node currently targets the Linux and Macintosh operating systems using
IA-32 or ARM processors. The build system requires Python.
<p>Node aims to support all POSIX operating systems (including
Windows with mingw). However at the moment it is only being tested on
Macintosh and Linux.

<p>V8, on which Node is built, supports only IA-32 and ARM processors.

<p> The build system requires Python.

<pre>./configure
<pre class="sh_none">./configure
make
make install</pre>

Expand Down
8 changes: 6 additions & 2 deletions website/sh_main.js
Expand Up @@ -516,9 +516,13 @@ function highlight(prefix, suffix, tag) {
var element = nodeList.item(i);
var htmlClasses = sh_getClasses(element);
var highlighted = false;
var donthighlight = false;
for (var j = 0; j < htmlClasses.length; j++) {
var htmlClass = htmlClasses[j].toLowerCase();
if (htmlClass === 'sh_none') break;
if (htmlClass === 'sh_none') {
donthighlight = true
continue;
}
if (htmlClass.substr(0, 3) === 'sh_') {
var language = htmlClass.substring(3);
if (language in sh_languages) {
Expand All @@ -534,7 +538,7 @@ function highlight(prefix, suffix, tag) {
break;
}
}
if (highlighted === false) {
if (highlighted === false && donthighlight == false) {
sh_highlightElement(element, sh_languages["javascript"]);
}
}
Expand Down

0 comments on commit 24ebd03

Please sign in to comment.