aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/index.py
blob: c0546ab12681be5b81d9c113f7754e889ad2b2af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
import countershape
from countershape import Page, Directory, PythonModule, markup
import countershape.grok, countershape.template    

this.layout = countershape.Layout("_layout.html")
ns.docTitle = "mitmproxy"
this.markup = markup.Markdown()
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "aldo@corte.si"
ns.copyright = u"\u00a9 mitmproxy project, 2011"
ns.title = countershape.template.Template(None, "<h1> @!docTitle!@ - @!this.title!@ </h1>")

ns.index = countershape.widgets.SiblingPageIndex('/index.html', divclass="pageindex")

ns.license = file("../LICENSE").read()
ns.index_contents = file("../README.mkd").read()


top = os.path.abspath(os.getcwd())
def example(s):
    d = file(os.path.join(top, s)).read()
    return countershape.template.pySyntax(d)


ns.example = example



pages = [
    Page("index.html", "Index"),
    Page("intro.html", "Introduction"),
    Page("mitmproxy.html", "mitmproxy"),
    Directory("mitmproxy"),
    Page("mitmdump.html", "mitmdump"),
    Directory("mitmdump"),
    Page("scripts.html", "External scripts"),
    Page("library.html", "libmproxy: mitmproxy as a library"),
    Page("ssl.html", "SSL"),
    Page("faq.html", "FAQ"),
    Page("admin.html", "Administrivia")
]