From d3e1f8a0149d41dfb2660442d663be4425d5770e Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 4 Oct 2012 12:17:35 +1300 Subject: Stub out documentation changes --- libpathod/app.py | 5 ++++ libpathod/templates/docs_libpathod.html | 7 +++++ libpathod/templates/frame.html | 1 + libpathod/templates/index.html | 49 ++++++++++++++++++++------------- 4 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 libpathod/templates/docs_libpathod.html 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 @@
  • pathod
  • pathoc
  • language
  • +
  • libpathod
  • libpathod.test
  • 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 @@

    A pathological web daemon.

    {% include "response_previewform.html" %} - - -
    -
    -

    pathoc

    -

    A perverse HTTP client.

    +
    - {% include "request_previewform.html" %} - -
    -
    - - - -
    -
    -
    -

    pathod server

    - -

    A live, public instance of pathod

    +

    There is also a live, public instance of pathod here:

    http://public.pathod.net/ + +

    +
    +
    +
    +

    pathoc

    + +

    A perverse HTTP client.

    + + {% include "request_previewform.html" %} + +
    > pathoc -n 3 google.com "get:/:ir,@1"
    +<< 200 OK: 44177 bytes
    +<< 405 Method Not Allowed: 959 bytes
    +<< 200 OK: 44107 bytes
    + +
    +
    +
    + + +
    +
    +
    +

    libpathod.test

    + +

    Using pathod in your unit tests.

    +
    -- cgit v1.2.3