aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/index.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-07 10:30:40 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-07 10:30:40 +0200
commit31ee4607c892f85c5d139e54acbc3ca4f9fb6bcb (patch)
tree873629c79b60b0ac0a7dbb458fe6ad82c2e042ef /doc-src/index.py
parentb4013659a81a48908eb3e060f04143ba1f9689bb (diff)
downloadmitmproxy-31ee4607c892f85c5d139e54acbc3ca4f9fb6bcb.tar.gz
mitmproxy-31ee4607c892f85c5d139e54acbc3ca4f9fb6bcb.tar.bz2
mitmproxy-31ee4607c892f85c5d139e54acbc3ca4f9fb6bcb.zip
remove old docs
Diffstat (limited to 'doc-src/index.py')
-rw-r--r--doc-src/index.py76
1 files changed, 0 insertions, 76 deletions
diff --git a/doc-src/index.py b/doc-src/index.py
deleted file mode 100644
index 2ae9fafe..00000000
--- a/doc-src/index.py
+++ /dev/null
@@ -1,76 +0,0 @@
-import os
-import sys
-import datetime
-import countershape
-from countershape import Page, Directory, markup
-import countershape.template
-
-MITMPROXY_SRC = os.path.abspath(
- os.path.expanduser(os.environ.get("MITMPROXY_SRC", ".."))
-)
-sys.path.insert(0, MITMPROXY_SRC)
-from libmproxy import filt, version
-
-ns.VERSION = version.VERSION
-
-if ns.options.website:
- ns.idxpath = "doc/index.html"
-else:
- ns.idxpath = "index.html"
-
-this.layout = countershape.layout.FileLayout("_layout.html")
-
-ns.title = countershape.template.Template(None, "<h1>@!this.title!@</h1>")
-this.titlePrefix = "%s - " % version.NAMEVERSION
-this.markup = markup.Markdown(extras=["footnotes"])
-
-ns.docMaintainer = "Aldo Cortesi"
-ns.docMaintainerEmail = "aldo@corte.si"
-ns.copyright = u"\u00a9 mitmproxy project, %s" % datetime.date.today().year
-
-
-def mpath(p):
- p = os.path.join(MITMPROXY_SRC, p)
- return os.path.expanduser(p)
-
-
-def example(s):
- d = file(mpath(s)).read().rstrip()
- extemp = """<div class="example">%s<div class="example_legend">(%s)</div></div>"""
- return extemp % (countershape.template.Syntax("py")(d), s)
-
-
-ns.example = example
-
-
-ns.filt_help = filt.help
-
-
-def nav(page, current, state):
- if current.match(page, False):
- pre = '<li class="active">'
- else:
- pre = "<li>"
- p = state.application.getPage(page)
- return pre + \
- '<a href="%s">%s</a></li>' % (countershape.widgets.UrlTo(page), p.title)
-ns.nav = nav
-ns.navbar = countershape.template.File(None, "_nav.html")
-
-
-pages = [
- Page("index.html", "Introduction"),
- Page("install.html", "Installation"),
- Page("certinstall.html", "About Certificates"),
- Page("howmitmproxy.html", "How mitmproxy works"),
- Page("modes.html", "Modes of Operation"),
-
- Page("mitmproxy.html", "mitmproxy"),
- Page("mitmdump.html", "mitmdump"),
- Page("config.html", "configuration"),
-
- Directory("scripting"),
- Directory("tutorials"),
- Page("transparent.html", "Overview"),
- Directory("transparent"),
-]