From 5ceef16486f71e28440f80799183190543f162f0 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 10 Mar 2013 17:09:40 +1300 Subject: Expand "How mitmproxy works". Clean up some un-needed sections. --- doc-src/index.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'doc-src/index.py') diff --git a/doc-src/index.py b/doc-src/index.py index 930037ec..aa178fa0 100644 --- a/doc-src/index.py +++ b/doc-src/index.py @@ -6,9 +6,15 @@ sys.path.insert(0, "..") from libmproxy import filt MITMPROXY_SRC = "~/git/public/mitmproxy" -this.layout = countershape.Layout("_layout.html") + +if ns.options.website: + this.layout = countershape.Layout("_websitelayout.html") +else: + this.layout = countershape.Layout("_layout.html") + +ns.title = countershape.template.Template(None, "

@!this.title!@

") this.titlePrefix = "mitmproxy 0.9 - " -this.markup = markup.Markdown() +this.markup = markup.Markdown(extras=["footnotes"]) ns.docMaintainer = "Aldo Cortesi" ns.docMaintainerEmail = "aldo@corte.si" @@ -73,5 +79,4 @@ pages = [ Directory("tutorials"), Page("transparent.html", "Overview"), Directory("transparent"), - Page("faq.html", "FAQ"), ] -- cgit v1.2.3 From c34d1e3de6483b1ab8a1a3add53fb84364c68249 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 11 Mar 2013 11:49:36 +1300 Subject: Docs, examples. --- doc-src/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc-src/index.py') diff --git a/doc-src/index.py b/doc-src/index.py index aa178fa0..7b65adb9 100644 --- a/doc-src/index.py +++ b/doc-src/index.py @@ -27,11 +27,12 @@ def mpath(p): ns.index_contents = file(mpath("README.mkd")).read() def example(s): - d = file(mpath(s)).read() + d = file(mpath(s)).read().rstrip() extemp = """
%s
(%s)
""" return extemp%(countershape.template.Syntax("py")(d), s) ns.example = example + filt_help = [] for i in filt.filt_unary: filt_help.append( -- cgit v1.2.3