-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtinku.py
More file actions
45 lines (36 loc) · 725 Bytes
/
Copy pathtinku.py
File metadata and controls
45 lines (36 loc) · 725 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
Outputs web.py docs as html
version 2.0: documents all code, and indents nicely.
By Colin Rothwell (TheBoff)
"""
import inspect
import sys
import markdown
from web.net import websafe
sys.path.insert(0, "..")
ALL_MODULES = [
"web.application",
"web.contrib.template",
"web.db",
"web.debugerror",
"web.form",
"web.http",
"web.httpserver",
"web.net",
"web.session",
"web.template",
"web.utils",
"web.webapi",
"web.wsgi",
]
item_start = '<code class="%s">'
item_end = "</code>"
indent_amount = 30
doc_these = ( # These are the types of object that should be docced
"module",
"classobj",
"instancemethod",
"function",
"type",
"property",
)