<ruleset>

  <server-settings>
    <server>127.0.0.1:8080</server>
    <execute-pyref>true</execute-pyref>
    <dev-allow>127.0.0.1</dev-allow>
    <dev-user username="guest" password="guest" />
  </server-settings>

  <proxy path="/theme-files" editable="1">
    <dest href="{here}/example-files/" />
  </proxy>

  <clientside />

  <proxy path="/trac" class="default trac">
    <dest href="http://trac.openplans.org/deliverance" />
    <response rewrite-links="1" />
  </proxy>

  <proxy path="/reference" class="default sphinx">
    <dest href="{here}/../../docs/_build/" />
  </proxy>

  <proxy path="/people" class="default openplans">
    <dest href="https://woonerf.livablestreets.com/people/" />
    <response rewrite-links="1" />
    <response pyref="file:$here/fixup_openplans.py:fixup_openplans_response" />
  </proxy>

  <proxy path="exact:/login" class="default openplans">
    <dest href="https://woonerf.livablestreets.com/login" />
    <response rewrite-links="1" />
    <response pyref="file:$here/fixup_openplans.py:fixup_openplans_response" />
  </proxy>    

  <proxy path="/" class="default openplans">
    <dest href="http://woonerf.livablestreets.com/" />
    <response rewrite-links="1" />
    <response pyref="file:$here/fixup_openplans.py:fixup_openplans_response" />
  </proxy>

  <theme href="/theme-files/deliv-theme.html" />

  <rule class="openplans">
    <replace content="children:#oc-content-main" theme="children:#theme-content" nocontent="abort" />
    <append content="children:#oc-topnav-context" theme="children:#sidebar" />
  </rule>

  <rule class="trac">
    <drop content="link[href$='/trac.css']" />
    <replace content="children:#content" theme="children:#theme-content" nocontent="abort" />
    <append content="children:#mainnav" theme="children:#sidebar" />
    <append content="children:#metanav" theme="children:#sidebar" />
  </rule>

  <rule class="sphinx">
    <!-- There's just a few really bad styles in here, unfortunately: -->
    <drop content="link[href$='_static/default.css']" />
    <replace content="children:.body" theme="children:#theme-content" nocontent="abort" />
    <append content=".sphinxsidebar" theme="children:#extra-sidebar" />
  </rule>

  <rule>
    <replace content="children:title" theme="children:#page-title" nocontent="ignore" move="0" />
    <prepend content="children:#menu" href="/theme-files/deliv-sidebar.html" theme="children:#sidebar" />
  </rule>

</ruleset>
