Move docs into pathod server.

This commit is contained in:
Aldo Cortesi 2012-06-29 11:53:59 +12:00
parent 1b42f5ab1f
commit 654a84174a
16 changed files with 107 additions and 493 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,343 +0,0 @@
#rsstable {
margin-top: 15px;
padding: 0px;
}
#rsstable td {
border: 0px;
margin: 0px;
padding: 0px;
font-size: 11px;
color: #000000;
padding-right: 4px;
}
.post {
padding: 0px;
}
.posthead {
margin-bottom: 15px;
}
/* title */
.posthead h1 {
font-size: 2.4em !important;
margin: 0 0 0.2em 0;
}
/* date */
.posthead h2 {
font-size: 1.0em;
color: #999;
margin: 0 0 -0.25em 0;
font-weight: normal;
margin-bottom 5px;
}
.posthead a {
color: #3F8ED8;
text-decoration: none;
}
.posthead a:hover {
text-decoration: underline;
}
sup {
vertical-align: text-top;
padding: 2px;
}
.postbody p {
line-height: 1.4em;
margin: 1em 0;
}
.postbody a {
color: #3F8ED8;
text-decoration: underline;
}
.postbody {
margin-bottom: 10px;
border-bottom: 1px solid #CCCCCC;
}
.postbody pre {
font-size: 0.8em;
}
.footnotes {
font-size: 0.9em;
margin: 1em 0;
}
.footnotes hr {
color: #ffffff;
background-color: #ffffff;
border: #ffffff;
}
#twitter_div {
margin-left: 0px;
margin-bottom: 10px;
}
#twitter_update_list {
margin-left: 0px;
}
#twitter_update_list li {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin-bottom: 20px;
}
.archive a {
color: #437095;
text-decoration: none;
}
.archive a:hover {
color: #000;
text-decoration: underline;
}
.archive li {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
}
.archive h1 {
font-size: 1.8em;
}
.archive .archive-post {
font-size: 1.5em;
}
.archive .archive-date {
font-size: 1.0em;
margin-left: 15px;
}
.highlight pre {
border-bottom: 1px solid #CCCCCC;
border-top: 1px solid #CCCCCC;
padding: 10px;
background: #F8F8F8 none repeat scroll 0% 0%;
margin-bottom: 10px;
overflow: auto;
}
.output {
border-bottom: 1px solid #CCCCCC;
border-top: 1px solid #CCCCCC;
padding: 10px;
background: #F8F8F8 none repeat scroll 0% 0%;
margin-bottom: 10px;
overflow: auto;
}
#ft {
color: #aaa;
border-top: 1px solid #aaa;
clear: both;
margin: 0 0 2em 0;
font-size: 0.8em;
letter-spacing: 0.5px;
}
.imggrid td {
border: 0px;
padding: 1px;
margin: 0px;
line-height: 0%;
}
.postimage img {
padding: 10px;
}
.spacertable {
width: 100%;
margin: 0px;
padding: 0px;
}
.spacertable td {
border: 0px;
text-align: center;
}
.layouttable {
width: 100%;
margin: 0px;
padding: 0px;
}
.layouttable td {
border: 0px;
text-align: left;
vertical-align: top;
}
blockquote {
background: url(start_quote.png) top left no-repeat;
padding-left: 30px;
padding-right: 30px;
font-size: 1.1em;
}
.subtitle {
width: 60%;
font-style: italic;
}
.equation {
margin-left: 30px;
font-weight: bold;
font-size: 1.5em;
}
.recent a {
color: #437095;
text-decoration: none;
}
.recent a:hover {
color: #000;
text-decoration: underline;
}
#yui-main .recent ul li {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin: 5px;
}
#yui-main .recent h1 {
font-size: 1.4em;
margin-top: 20px;
padding: 0;
margin: 0;
}
.recent .recent-post {
font-size: 1.0em;
}
.recent .recent-date {
font-size: 0.8em;
margin-left: 15px;
}
.links_block {
margin-left: 35px;
}
.links_block li {
list-style-type:none;
}
.links_title {
padding: 0px;
margin: 0px;
}
.links_title a p {
margin: 0px !important;
}
.links_body {
padding: 0px;
margin: 0px;
margin-left: 20px;
font-style: italic;
}
.links_body p {
margin: 5px !important;
}
.terminal {
color: #fff;
background: #000;
padding: 20px;
}
.frontpage h2 {
margin: 0.2em 0;
}
.frontpage h3 {
margin: 0.2em 0;
}
.frontpage p {
margin: 0.2em 0 !important;
}
.postlist {
padding: 0;
margin: 0;
}
.postlist li {
list-style-type: none;
}
.postlist a {
color: #303030;
border-bottom: 1px dotted #303030;
text-decoration: none;
}
.postlist img {
float: left;
margin-right: 5px;
margin-bottom: 5px;
clear: both;
}
.postlist a:hover {
color: #3F8ED8;
border-bottom: 1px dotted #3F8ED8;
text-decoration: none;
}
.postlist td {
border: 0px;
padding: 5px;
}
#contact {
margin-left: 0px;
}
#contact li {
list-style: none;
margin: 5px 0 !important;
}
.projtable {
width: 100%;
margin: 0px;
padding: 0px;
}
.projtable td {
padding-left: 0px;
vertical-align: top;
border: 0px;
padding-top: 0px;
}
.projtable th {
padding-left: 0px;
vertical-align: top;
border: 0px;
text-align: left;
padding-top: 0px;
}
.hidden {
display: none;
}

View File

@ -1,66 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>@!pageTitle!@</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
$!header!$
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="@!top!@/index.html">pathod</a>
<div class="nav-collapse">
<ul class="nav">
<li $!'class=active' if section=="index" else ""!$><a href="@!top!@/index.html">overview</a></li>
<li
$!'class="dropdown active"' if section=="docs" else 'class="dropdown"'!$>
<a class="dropdown-toggle" data-toggle="dropdown" href="@!top!@/docs.html">
docs
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="@!top!@/pathod.html">pathod</a></li>
<li><a href="@!top!@/pathoc.html">pathoc</a></li>
<li><a href="@!top!@/test.html">libpathod.test</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="span12">
$!body!$
</div>
</div>
<hr>
<footer>
<p>&copy; Aldo Cortesi 2012</p>
</footer>
</div>
</body>
</html>

View File

@ -1,30 +0,0 @@
<div class="hero-unit">
<h1>Tools for testing and torturing HTTP clients, servers and proxies.</h1>
</div>
<div class="row">
<div class="span4">
<div class="well">
<h1> <a href="@!top!@/pathod.html">pathod</a> </h1>
A pathological web daemon.
</div>
</div>
<div class="span4">
<div class="well">
<h1> <a href="@!top!@/pathoc.html">pathoc</a> </h1>
A perverse HTTP client.
</div>
</div>
<div class="span4">
<div class="well">
<h1> <a href="@!top!@/test.html">libpathod.test</a> </h1>
Using pathod and pathoc in your unit tests.
</div>
</div>
</div>

View File

@ -1,15 +0,0 @@
from countershape import widgets, layout, html, blog, markup, sitemap
from countershape.doc import *
ns.foot = "Copyright 2012 Aldo Cortesi"
this.markup = markup.Markdown(extras=dict(footnotes=True))
this.layout = layout.FileLayout("_layout_full.html")
this.titlePrefix = ""
this.site_url = "http://corte.si"
pages = [
Page("index.html", "overview", namespace=dict(section="index")),
Page("pathod.html", "pathod", namespace=dict(section="docs")),
Page("pathoc.html", "pathoc", namespace=dict(section="docs")),
Page("test.html", "libpathod.test", namespace=dict(section="docs")),
sitemap.Sitemap("sitemap.xml")
]

View File

@ -31,9 +31,19 @@ def index():
return render_template("index.html", section="main")
@app.route('/help')
def help():
return render_template("help.html", section="help")
@app.route('/docs/pathod')
def docs_pathod():
return render_template("docs_pathod.html", section="docs")
@app.route('/docs/pathoc')
def docs_pathoc():
return render_template("docs_pathoc.html", section="docs")
@app.route('/docs/test')
def docs_test():
return render_template("docs_test.html", section="docs")
@app.route('/log')

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

View File

@ -1,3 +1,5 @@
{% extends "frame.html" %}
{% block body %}
<div class="page-header">
<h1>
pathoc
@ -8,3 +10,4 @@
pathoc hostname get:"/foo/bar":h"foo"="bar" get:/wah:b@1m
pathoc --ssl hostname get:"/foo/bar":h"foo"="bar" get:"/wah":b@1m
{% endblock %}

View File

@ -1,3 +1,5 @@
{% extends "frame.html" %}
{% block body %}
<div class="page-header">
<h1>
pathod
@ -341,4 +343,4 @@ a request to:
http://localhost:9999/p/foo
... will return an 800 response, because "foo" is not a valid page specifier.
{% endblock %}

View File

@ -1,6 +1,9 @@
{% extends "frame.html" %}
{% block body %}
<div class="page-header">
<h1>
libpathod.test
<small>Using pathod and pathoc in your unit tests.</small>
</h1>
</div>
{% endblock %}

View File

@ -2,38 +2,68 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pathod</title>
<title>pathod</title>
<link href="/static/bootstrap.min.css" rel="stylesheet">
<link href="/static/syntax.css" rel="stylesheet">
<script src="/static/jquery-1.7.2.min.js"></script>
<style>
body {
padding-top: 45px;
}
<script src="/static/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/">Pathod</a>
<ul class="nav">
<li {% if section== "main" %} class="active" {% endif %}><a href="/">Main</a></li>
<li {% if section== "log" %} class="active" {% endif %}><a href="/log">Log</a></li>
<li {% if section== "help" %} class="active" {% endif %}><a href="/help">Help</a></li>
</ul>
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/index.html">pathod</a>
<div class="nav-collapse">
<ul class="nav">
<li {% if section== "main" %} class="active" {% endif %}><a href="/">home</a></li>
<li {% if section== "log" %} class="active" {% endif %}><a href="/log">log</a></li>
<li class="dropdown {% if section== "docs" %}active{% endif %}">
<a class="dropdown-toggle" data-toggle="dropdown">
docs
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/docs/pathod">pathod</a></li>
<li><a href="/docs/pathoc">pathoc</a></li>
<li><a href="/docs/test">libpathod.test</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
{% block body %}
{% endblock %}
<hr>
<p>by <a href="http://corte.si">Aldo Cortesi</a> </p>
</div> <!-- /container -->
<div class="row">
<div class="span12">
{% block body %}
{% endblock %}
</div>
</div>
<hr>
<footer>
<p>&copy; Aldo Cortesi 2012</p>
</footer>
</div>
</body>
</html>

View File

@ -1,4 +1,37 @@
{% extends "frame.html" %}
{% block body %}
{% include "previewform.html" %}
{% include "previewform.html" %}
<div class="hero-unit">
<h1>Tools for testing and torturing HTTP clients, servers and proxies.</h1>
</div>
<div class="row">
<div class="span4">
<div class="well">
<h1> <a href="/docs/pathod">pathod</a> </h1>
A pathological web daemon.
</div>
</div>
<div class="span4">
<div class="well">
<h1> <a href="/docs/pathoc">pathoc</a> </h1>
A perverse HTTP client.
</div>
</div>
<div class="span4">
<div class="well">
<h1> <a href="/docs/test">libpathod.test</a> </h1>
Using pathod and pathoc in your unit tests.
</div>
</div>
</div>
{% endblock %}