diff options
-rw-r--r-- | MANIFEST.in | 9 | ||||
-rw-r--r-- | libpathod/app.py | 6 | ||||
-rw-r--r-- | libpathod/templates/about.html | 24 | ||||
-rw-r--r-- | libpathod/templates/download.html | 53 | ||||
-rw-r--r-- | libpathod/templates/frame.html | 1 | ||||
-rw-r--r-- | test/.pry | 5 |
6 files changed, 69 insertions, 29 deletions
diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..1cd3f043 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,9 @@ +include LICENSE +include CHANGELOG +include README.txt +exclude README.mkd +recursive-include test * +recursive-include libpathod/resources * +recursive-include libpathod/templates * +recursive-include libpathod/static * +recursive-exclude test *.swo *.swp *.pyc diff --git a/libpathod/app.py b/libpathod/app.py index 7d9636e1..c7d0e7b2 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -42,6 +42,12 @@ def index(): return render("index.html", True, section="main") +@app.route('/download') +@app.route('/download.html') +def download(): + return render("download.html", True, section="download") + + @app.route('/about') @app.route('/about.html') def about(): diff --git a/libpathod/templates/about.html b/libpathod/templates/about.html index 3c05ad2d..4bf473da 100644 --- a/libpathod/templates/about.html +++ b/libpathod/templates/about.html @@ -4,30 +4,6 @@ <section> <div class="page-header"> <h1> - how - <small>to get it.</small> - </h1> - </div> - - <p>The easiest way to install pathod is to use pip:</p> - - <pre>pip install pathod</pre> - - <p> You can find the project source on GitHub: </p> - - <div style="margin-top: 20px; margin-bottom: 20px"> - <a class="btn btn-primary btn-large" href="https://github.com/cortesi/pathod">github.com/cortesi/pathod</a> - </div> - - <p>Please also use the <a - href="https://github.com/cortesi/pathod/issues">github issue tracker</a> to - report bugs. </p> - -</section> - -<section> - <div class="page-header"> - <h1> why <small>this it written.</small> </h1> diff --git a/libpathod/templates/download.html b/libpathod/templates/download.html new file mode 100644 index 00000000..a9b827c4 --- /dev/null +++ b/libpathod/templates/download.html @@ -0,0 +1,53 @@ +{% extends "frame.html" %} +{% block body %} + +<section> + <div class="page-header"> + <h1> + pip + </h1> + </div> + + <p>The easiest way to install pathod is to use pip:</p> + + <pre>pip install pathod</pre> + + <p> This will automatically pull in all the dependencies, and you should be + good to go.</p> + +</section> + + +<section> + <div class="page-header"> + <h1> + github + </h1> + </div> + + <p> You can find the project source on GitHub: </p> + + <div style="margin-top: 20px; margin-bottom: 20px"> + <a class="btn btn-primary btn-large" href="https://github.com/cortesi/pathod">github.com/cortesi/pathod</a> + </div> + + <p>Please also use the <a + href="https://github.com/cortesi/pathod/issues">github issue tracker</a> to + report bugs. </p> +</section> + + +<section> + <div class="page-header"> + <h1> + tarball + </h1> + </div> + + <div style="margin-top: 20px; margin-bottom: 20px"> + <a class="btn btn-primary btn-large" href="https://github.com/downloads/cortesi/pathod/pathod-0.2.tar.gz">pathod-0.2.tar.gz</a> + </div> +</section> + + +{% endblock %} diff --git a/libpathod/templates/frame.html b/libpathod/templates/frame.html index f16e6d47..7e4724a0 100644 --- a/libpathod/templates/frame.html +++ b/libpathod/templates/frame.html @@ -39,6 +39,7 @@ <div class="nav-collapse"> <ul class="nav"> <li {% if section== "main" %} class="active" {% endif %}><a href="/">home</a></li> + <li {% if section== "download" %} class="active" {% endif %}><a href="/download">download</a></li> {% if not noapi %} <li {% if section== "log" %} class="active" {% endif %}><a href="/log">log</a></li> {% endif %} diff --git a/test/.pry b/test/.pry deleted file mode 100644 index 4b6802be..00000000 --- a/test/.pry +++ /dev/null @@ -1,5 +0,0 @@ -base = .. -coverage = ../libpathod -exclude = . - ../libpathod/contrib - |