title: How to deploy a site that is not at the root of a server with DocPad?
body: <p>I'm using DocPad to make a demo site and i want to deploy it at for example:
  <a href="http://www.example.com/demo/" rel="nofollow">http://www.example.com/demo/</a>
  but when i use <code>docpad generate --env static</code>, links are relative to the root of the server not demo directory so links are broken. What can i do ? is there a metadata to declare somewhere ?</p>
  
  <p>EDIT:
  In this case, I use the Twitter Bootsrap skeleton, so for example links in the main navigation in the default layout looks like:</p>
  
  <pre><code>&lt;div class="nav-collapse collapse"&gt;
    &lt;ul class="nav"&gt;
      &lt;% for document in @getCollection('pages').toJSON(): %&gt;
        &lt;li class="&lt;%= 'active'  if @document.url is document.url %&gt;"&gt;
          &lt;a href="&lt;%= document.url %&gt;"&gt;&lt;%= document.title %&gt;&lt;/a&gt;
        &lt;/li&gt;
      &lt;% end %&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>