aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/index.py
blob: 2b6dde6a037dd4968e9123f650afff0f7b89b39d (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
import countershape
from countershape import Page, Directory, PythonModule
import countershape.grok

this.layout = countershape.Layout("_layout.html")
this.markup = "markdown"
ns.docTitle = "mitmproxy"
ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "aldo@corte.si"
ns.copyright = "Aldo Cortesi 2010"
ns.head = countershape.template.Template(None, "<h1> @!docTitle!@ - @!this.title!@ </h1>")
ns.sidebar = countershape.widgets.SiblingPageIndex(
            '/index.html',
            exclude=['countershape']
          )

ns.license = file("../LICENSE").read()
ns.index_contents = file("../README").read()
ns.example = file("../examples/stickycookies.py").read()

pages = [
    Page("index.html", "introduction"),
    Page("library.html", "library"),
    Page("faq.html", "faq"),
    Page("admin.html", "administrivia")
]