Stub out doc structure, add screenshots for configuring certs in Firefox.

This commit is contained in:
Aldo Cortesi 2011-02-19 19:43:44 +13:00
parent 1549ec8079
commit 58fc0041fa
14 changed files with 172 additions and 114 deletions

View File

@ -2,7 +2,7 @@ body {
-x-system-font:none; -x-system-font:none;
font-family: Helvetica,Arial,Tahoma,Verdana,Sans-Serif; font-family: Helvetica,Arial,Tahoma,Verdana,Sans-Serif;
color: #555555; color: #555555;
font-size: 1.1em; font-size: 1.2em;
} }
a { a {
@ -15,7 +15,7 @@ a {
} }
#hd h1 { #hd h1 {
letter-spacing: 3px; letter-spacing: 3px;
font-size: 2.5em; font-size: 2em;
line-height: 100%; line-height: 100%;
margin: 0.3em 0; margin: 0.3em 0;
font-weight: normal; font-weight: normal;
@ -46,49 +46,6 @@ a {
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.pageindex {
font-size: 1.5em;
}
.pageindex ul {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin: 0px;
}
.pageindex li {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin: 0;
}
.pageindex li.active {
padding-left: 4px;
border-left: 5px solid #ff0000;
}
.pageindex li.inactive{
border-left: none;
margin-left: 9px;
}
.pageindex li li a {
display: block;
background-color: transparent;
margin: 0;
border-top: none;
border-bottom: none;
}
.pageindex ul ul {
margin-left: 20px;
padding: 0;
list-style-type: none;
}
.faq .question { .faq .question {
font-size: 1.1em; font-size: 1.1em;
font-weight: bold; font-weight: bold;
@ -99,3 +56,22 @@ pre {
background-color: #e0e0e0; background-color: #e0e0e0;
margin: 10px; margin: 10px;
} }
ul {
margin-top: 0.1em;
margin-bottom: 0;
margin-left: 2em;
}
li a {
text-decoration: none;
}
#nav {
float: right;
}

View File

@ -1,14 +1,26 @@
<div class="yui-t2" id="doc3"> <div id="doc3">
<div style="" id="hd"> <div style="" id="hd">
$!head!$
<div id="nav">
<!--(block pb)-->
<a href="@!urlTo(previous)!@">prev</a>
<!--(end)-->
<!--(block nb)-->
<a href="@!urlTo(next)!@">next</a>
<!--(end)-->
$!pb if previous else "prev"!$ |
<a href="@!urlTo('index.html')!@">index</a> |
$!nb if next else "next"!$
</div>
$!title!$
</div> </div>
<div id="bd"> <div id="bd">
<div id="yui-main"> <div id="yui-main">
<div style="" class="yui-b">$!body!$</div> <div style="" class="yui-b">$!body!$</div>
</div> </div>
<div style="" class="yui-b">
<div>@!sidebar!@</div>
</div>
</div> </div>
<div style="" id="ft"> <div style="" id="ft">
<p>@!copyright!@</p> <p>@!copyright!@</p>

View File

@ -1,3 +1,23 @@
@!index_contents!@
* [Introduction](@!urlTo("intro.html")!@)
* [mitmproxy](@!urlTo("mitmproxy.html")!@) - Console-based HTTP Swiss Army Knife.
* [Tutorial](@!urlTo("mitmproxy/tutorial.html")!@)
* [mitmdump](@!urlTo("mitmdump.html")!@) - tcpdump for HTTP conversations
* [Tutorial](@!urlTo("mitmproxy/tutorial.html")!@)
* [Client scripts](@!urlTo("scripts.html")!@) - Writing client scripts for mitmproxy and mitmdump
* [libmproxy](@!urlTo("library.html")!@) - Using the mitmproxy library
* [SSL](@!urlTo("ssl.html")!@) - Installing mitmproxy's SSL certificate
* Browsers:
* [Firefox](@!urlTo("ssl.html")!@#firefox)
* [Chrome](@!urlTo("ssl.html")!@#chrome)
* [Safari](@!urlTo("ssl.html")!@#safari)
* [IE8](@!urlTo("ssl.html")!@#ie)
* Global installation:
* [Windows 7](@!urlTo("ssl.html")!@#windows7)
* [iPhone/iPad](@!urlTo("ssl.html")!@#ios)
* [FAQ](@!urlTo("faq.html")!@)
* [administrivia](@!urlTo("admin.html")!@)

View File

@ -8,12 +8,10 @@ ns.docTitle = "mitmproxy"
this.markup = markup.Markdown() this.markup = markup.Markdown()
ns.docMaintainer = "Aldo Cortesi" ns.docMaintainer = "Aldo Cortesi"
ns.docMaintainerEmail = "aldo@corte.si" ns.docMaintainerEmail = "aldo@corte.si"
ns.copyright = "Aldo Cortesi 2010" ns.copyright = u"\u00a9 mitmproxy project, 2011"
ns.head = countershape.template.Template(None, "<h1> @!docTitle!@ - @!this.title!@ </h1>") ns.title = countershape.template.Template(None, "<h1> @!docTitle!@ - @!this.title!@ </h1>")
ns.sidebar = countershape.widgets.SiblingPageIndex(
'/index.html', ns.index = countershape.widgets.SiblingPageIndex('/index.html', divclass="pageindex")
exclude=['countershape']
)
ns.license = file("../LICENSE").read() ns.license = file("../LICENSE").read()
ns.index_contents = file("../README.mkd").read() ns.index_contents = file("../README.mkd").read()
@ -30,11 +28,15 @@ ns.example = example
pages = [ pages = [
Page("index.html", "introduction"), Page("index.html", "Index"),
Page("intro.html", "Introduction"),
Page("mitmproxy.html", "mitmproxy"), Page("mitmproxy.html", "mitmproxy"),
Directory("mitmproxy"),
Page("mitmdump.html", "mitmdump"), Page("mitmdump.html", "mitmdump"),
Page("scripts.html", "scripts"), Directory("mitmdump"),
Page("library.html", "libmproxy"), Page("scripts.html", "External scripts"),
Page("faq.html", "faq"), Page("library.html", "libmproxy: mitmproxy as a library"),
Page("admin.html", "administrivia") Page("ssl.html", "SSL"),
Page("faq.html", "FAQ"),
Page("admin.html", "Administrivia")
] ]

2
doc-src/intro.html Normal file
View File

@ -0,0 +1,2 @@
@!index_contents!@

View File

@ -0,0 +1,5 @@
from countershape import Page, Directory, PythonModule, markup
pages = [
Page("tutorial.html", "Tutorial"),
]

View File

View File

@ -0,0 +1,5 @@
from countershape import Page, Directory, PythonModule, markup
pages = [
Page("tutorial.html", "Tutorial"),
]

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

41
doc-src/ssl.html Normal file
View File

@ -0,0 +1,41 @@
# Browsers
<a name="firefox"></a>
## Firefox 3.x
### 1: Open preferences, click on "Advanced", then select"Encryption":
<img src="@!urlTo('firefox3.jpg')!@"/>
### 2: Click "View Certificates", "Import", and select the certificate file:
<img src="@!urlTo('firefox3-import.jpg')!@"/>
### 3: Tick "Trust this CS to identify web sites", and click "Ok":
<img src="@!urlTo('firefox3-trust.jpg')!@"/>
You should now see the mitmproxy certificate listed in the Authorities tab.
<a name="chrome"></a>
## Chrome
<a name="safari"></a>
## Safari
<a name="ie"></a>
## Internet Explorer 8
# Global installation
<a name="windows"></a>
## Windows 7
<a name="ios"></a>
## iPhone/iPad

View File

@ -46,11 +46,6 @@ def format_keyvals(lst, key="key", val="text", space=5, indent=0):
def format_flow(f, focus, extended=False, padding=2): def format_flow(f, focus, extended=False, padding=2):
if not f.request:
txt = [
("title", " Connection from %s..."%(f.client_conn.address[0])),
]
else:
if extended: if extended:
ts = ("highlight", utils.format_timestamp(f.request.timestamp) + " ") ts = ("highlight", utils.format_timestamp(f.request.timestamp) + " ")
else: else: