diff options
-rw-r--r-- | libpathod/app.py | 5 | ||||
-rw-r--r-- | libpathod/templates/docs_libpathod.html | 7 | ||||
-rw-r--r-- | libpathod/templates/frame.html | 1 | ||||
-rw-r--r-- | libpathod/templates/index.html | 49 |
4 files changed, 43 insertions, 19 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index 3e851477..0db31ae5 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -69,6 +69,11 @@ def docs_pathoc(): return render("docs_pathoc.html", True, section="docs") +@app.route('/docs/libpathod') +def docs_libpathod(): + return render("docs_libpathod.html", True, section="docs") + + @app.route('/docs/test') def docs_test(): return render("docs_test.html", True, section="docs") diff --git a/libpathod/templates/docs_libpathod.html b/libpathod/templates/docs_libpathod.html new file mode 100644 index 00000000..8d51ebba --- /dev/null +++ b/libpathod/templates/docs_libpathod.html @@ -0,0 +1,7 @@ +{% extends "frame.html" %} +{% block body %} + +Foo + + +{% endblock %} diff --git a/libpathod/templates/frame.html b/libpathod/templates/frame.html index 7e4724a0..cbb4582b 100644 --- a/libpathod/templates/frame.html +++ b/libpathod/templates/frame.html @@ -52,6 +52,7 @@ <li><a href="/docs/pathod">pathod</a></li> <li><a href="/docs/pathoc">pathoc</a></li> <li><a href="/docs/language">language</a></li> + <li><a href="/docs/libpathod">libpathod</a></li> <li><a href="/docs/test">libpathod.test</a></li> </ul> </li> diff --git a/libpathod/templates/index.html b/libpathod/templates/index.html index 8a47a2bf..3c1ba8ff 100644 --- a/libpathod/templates/index.html +++ b/libpathod/templates/index.html @@ -20,27 +20,10 @@ <p>A pathological web daemon.</p> {% include "response_previewform.html" %} - </div> - </div> - <div class="span6"> - <div> - <h1> <a href="/docs/pathoc">pathoc</a> </h1> - <p>A perverse HTTP client.</p> + <br> - {% include "request_previewform.html" %} - - </div> - </div> -</div> - - -<div style="margin-top: 50px" class="row"> - <div class="span6"> - <div> - <h1>pathod server</h1> - - <p>A live, public instance of pathod</p> + <p>There is also a live, public instance of pathod here:</p> <p><b>http://public.pathod.net/</b><input style="width: 14em" @@ -63,6 +46,34 @@ }); }); </script> + + </div> + </div> + <div class="span6"> + <div> + <h1> <a href="/docs/pathoc">pathoc</a> </h1> + + <p>A perverse HTTP client.</p> + + {% include "request_previewform.html" %} + + <pre class="terminal">> pathoc -n 3 google.com "get:/:ir,@1" +<< 200 OK: 44177 bytes +<< 405 Method Not Allowed: 959 bytes +<< 200 OK: 44107 bytes</pre> + + </div> + </div> +</div> + + +<div style="margin-top: 50px" class="row"> + <div class="span6"> + <div> + <h1> <a href="/docs/test">libpathod.test</a> </h1> + + <p>Using pathod in your unit tests.</p> + </div> </div> <div class="span6"> |