2011-06-09 06:58:58 +00:00
|
|
|
# Ensure we get the local copy of tornado instead of what's on the standard path
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.abspath("../.."))
|
|
|
|
import tornado
|
|
|
|
|
|
|
|
master_doc = "index"
|
|
|
|
|
|
|
|
project = "Tornado"
|
|
|
|
copyright = "2011, Facebook"
|
|
|
|
|
|
|
|
version = release = tornado.version
|
|
|
|
|
2011-11-12 04:35:26 +00:00
|
|
|
extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage", "sphinx.ext.viewcode"]
|
2011-06-17 05:36:33 +00:00
|
|
|
|
|
|
|
primary_domain = 'py'
|
|
|
|
default_role = 'py:obj'
|
2011-06-09 06:58:58 +00:00
|
|
|
|
|
|
|
autodoc_member_order = "bysource"
|
2011-06-11 21:53:28 +00:00
|
|
|
autoclass_content = "both"
|
2011-06-09 18:03:49 +00:00
|
|
|
|
|
|
|
coverage_skip_undoc_in_source = True
|
2011-09-05 01:00:06 +00:00
|
|
|
coverage_ignore_modules = [
|
|
|
|
"tornado.platform.twisted",
|
|
|
|
]
|
2011-06-09 18:03:49 +00:00
|
|
|
# I wish this could go in a per-module file...
|
|
|
|
coverage_ignore_classes = [
|
2011-09-04 22:39:55 +00:00
|
|
|
# tornado.gen
|
2011-09-11 22:09:25 +00:00
|
|
|
"Multi",
|
2011-09-04 22:39:55 +00:00
|
|
|
"Runner",
|
|
|
|
"YieldPoint",
|
|
|
|
|
2011-06-09 18:03:49 +00:00
|
|
|
# tornado.web
|
|
|
|
"ChunkedTransferEncoding",
|
|
|
|
"GZipContentEncoding",
|
|
|
|
"OutputTransform",
|
|
|
|
"TemplateModule",
|
|
|
|
"url",
|
2012-01-08 08:01:18 +00:00
|
|
|
|
|
|
|
# tornado.websocket
|
|
|
|
"WebSocketProtocol",
|
|
|
|
"WebSocketProtocol13",
|
|
|
|
"WebSocketProtocol76",
|
2011-06-09 18:03:49 +00:00
|
|
|
]
|
2011-06-19 18:23:53 +00:00
|
|
|
|
|
|
|
coverage_ignore_functions = [
|
|
|
|
# various modules
|
|
|
|
"doctests",
|
|
|
|
"main",
|
|
|
|
]
|
2011-06-09 18:03:49 +00:00
|
|
|
|
2011-06-11 21:30:51 +00:00
|
|
|
html_static_path = [os.path.abspath("../static")]
|
|
|
|
html_style = "sphinx.css"
|
|
|
|
highlight_language = "none"
|
|
|
|
html_theme_options = dict(
|
|
|
|
footerbgcolor="#fff",
|
|
|
|
footertextcolor="#000",
|
|
|
|
sidebarbgcolor="#fff",
|
|
|
|
#sidebarbtncolor
|
|
|
|
sidebartextcolor="#4d8cbf",
|
|
|
|
sidebarlinkcolor="#216093",
|
|
|
|
relbarbgcolor="#fff",
|
|
|
|
relbartextcolor="#000",
|
|
|
|
relbarlinkcolor="#216093",
|
|
|
|
bgcolor="#fff",
|
|
|
|
textcolor="#000",
|
|
|
|
linkcolor="#216093",
|
|
|
|
visitedlinkcolor="#216093",
|
|
|
|
headbgcolor="#fff",
|
|
|
|
headtextcolor="#4d8cbf",
|
|
|
|
codebgcolor="#fff",
|
|
|
|
codetextcolor="#060",
|
|
|
|
bodyfont="Georgia, serif",
|
|
|
|
headfont="Calibri, sans-serif",
|
|
|
|
stickysidebar=True,
|
|
|
|
)
|