2011-02-17 23:40:45 +00:00
|
|
|
import os
|
2010-02-16 04:09:07 +00:00
|
|
|
import countershape
|
2011-01-17 03:14:20 +00:00
|
|
|
from countershape import Page, Directory, PythonModule, markup
|
2011-02-17 23:40:45 +00:00
|
|
|
import countershape.grok, countershape.template
|
2011-01-17 03:14:20 +00:00
|
|
|
|
2010-02-16 04:09:07 +00:00
|
|
|
this.layout = countershape.Layout("_layout.html")
|
|
|
|
ns.docTitle = "mitmproxy"
|
2011-01-17 03:14:20 +00:00
|
|
|
this.markup = markup.Markdown()
|
2010-02-16 04:09:07 +00:00
|
|
|
ns.docMaintainer = "Aldo Cortesi"
|
|
|
|
ns.docMaintainerEmail = "aldo@corte.si"
|
2011-02-19 06:43:44 +00:00
|
|
|
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")
|
2010-02-16 04:09:07 +00:00
|
|
|
|
|
|
|
ns.license = file("../LICENSE").read()
|
2011-02-17 23:40:45 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2010-02-16 04:09:07 +00:00
|
|
|
|
|
|
|
pages = [
|
2011-02-19 06:43:44 +00:00
|
|
|
Page("index.html", "Index"),
|
|
|
|
Page("intro.html", "Introduction"),
|
2011-02-17 23:40:45 +00:00
|
|
|
Page("mitmproxy.html", "mitmproxy"),
|
2011-02-19 06:43:44 +00:00
|
|
|
Directory("mitmproxy"),
|
2011-02-17 23:40:45 +00:00
|
|
|
Page("mitmdump.html", "mitmdump"),
|
2011-02-19 06:43:44 +00:00
|
|
|
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")
|
2010-02-16 04:09:07 +00:00
|
|
|
]
|