<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,7 +23,7 @@ Unpack the RED tarball. There are a number of interesting files:
 
 - src/webui.py - the Web frontend for RED. This is what is run by the server.
 - src/\*.py - other Python files necessary for RED.
-- web/\* - RED's CSS stylesheet and jquery &lt;http://jquery.com/&gt; library.
+- web/\* - RED's CSS stylesheet and JavaScript libraries.
 
 Place webui.py where you wish it to be served from the Web server. For example,
 with Apache you can put it in a directory and add these configuration directives
@@ -35,9 +35,9 @@ with Apache you can put it in a directory and add these configuration directives
 If the directory is the root directory for your server &quot;example.com&quot;, 
 this will configure RED to be at the URI &quot;http://example.com/&quot;.
 
-The contents of the web directory must be available at the same URI path as RED; 
-in the deployment above, the easiest thing to do is to place them in the same
-directory.
+The contents of the web directory need to be made available on the server;
+by default, they're in the 'static' subdirectory of the script's URI. This
+can be changed using the 'static_root' configuration variable in webui.py.
 
 Finally, the other .py files in src must be available to Python; you can either 
 place them in the same directory, or somewhere else on your PYTHONPATH. See </diff>
      <filename>README.rst</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,13 @@
 &lt;html&gt;
 &lt;head&gt;
 	&lt;title&gt;RED: &amp;lt;%(html_uri)s&amp;gt;&lt;/title&gt;
-	&lt;link rel=&quot;stylesheet&quot; type='text/css' href=&quot;red_style.css&quot;&gt;
 	&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
 	&lt;meta name=&quot;ROBOTS&quot; content=&quot;INDEX, NOFOLLOW&quot; /&gt;
-        &lt;link href=&quot;prettify.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
-        &lt;script type=&quot;text/javascript&quot; src=&quot;prettify.js&quot;&gt;&lt;/script&gt;
-        &lt;script src=&quot;jquery.js&quot;&gt;&lt;/script&gt;
-        &lt;script src=&quot;jquery.hoverIntent.js&quot;&gt;&lt;/script&gt;
+	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;%(static)s/red_style.css&quot;&gt;
+        &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;%(static)s/prettify.css&quot;&gt;
+        &lt;script src=&quot;%(static)s/prettify.js &quot;type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+        &lt;script src=&quot;%(static)s/jquery.js&quot;&gt;&lt;/script&gt;
+        &lt;script src=&quot;%(static)s/jquery.hoverIntent.js&quot;&gt;&lt;/script&gt;
         &lt;script language=&quot;JavaScript&quot;&gt;
 
 var tid = false;</diff>
      <filename>src/red_header.py</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,10 @@ logdir = 'exceptions'
 # how many seconds to allow it to run for
 max_runtime = 60
 
-# file containing news to display on front page
+# URI root for static assets (absolute or relative, but no trailing '/')
+static_root = 'static'
+
+# file containing news to display on front page; None to disable
 news_file = &quot;news.html&quot;
 
 ### End configuration ######################################################
@@ -88,6 +91,7 @@ class RedWebUi(object):
         self.start = time.time()
         timeout = nbhttp.schedule(max_runtime, self.timeoutError)
         header = red_header.__doc__ % {
+            'static': static_root,
             'version': red.__version__,
             'html_uri': e(test_uri),
             'js_uri': clean_js(test_uri),</diff>
      <filename>src/webui.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8338b74f1ab18be2c75ecf86dea81604652db3cd</id>
    </parent>
  </parents>
  <author>
    <name>Mark Nottingham</name>
    <email>mnot@mnot.net</email>
  </author>
  <url>http://github.com/mnot/redbot/commit/37f3027d96c780b4f08b4d7ea70848fc5b8d709d</url>
  <id>37f3027d96c780b4f08b4d7ea70848fc5b8d709d</id>
  <committed-date>2009-10-22T20:34:17-07:00</committed-date>
  <authored-date>2009-10-22T20:34:17-07:00</authored-date>
  <message>Separate out static files</message>
  <tree>ffab87bc5d1b9a11576800c3355cec86d422192c</tree>
  <committer>
    <name>Mark Nottingham</name>
    <email>mnot@mnot.net</email>
  </committer>
</commit>
