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
|
2013-03-10 20:24:38 +00:00
|
|
|
sys.path.insert(0, os.path.abspath(".."))
|
2011-06-09 06:58:58 +00:00
|
|
|
import tornado
|
|
|
|
|
|
|
|
master_doc = "index"
|
|
|
|
|
|
|
|
project = "Tornado"
|
|
|
|
copyright = "2011, Facebook"
|
|
|
|
|
|
|
|
version = release = tornado.version
|
|
|
|
|
2013-03-10 19:04:06 +00:00
|
|
|
extensions = [
|
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinx.ext.coverage",
|
|
|
|
"sphinx.ext.extlinks",
|
2013-03-16 02:56:03 +00:00
|
|
|
"sphinx.ext.intersphinx",
|
2013-03-10 19:04:06 +00:00
|
|
|
"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",
|
|
|
|
|
2012-11-27 02:46:16 +00:00
|
|
|
# tornado.ioloop
|
|
|
|
"PollIOLoop",
|
|
|
|
|
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",
|
|
|
|
]
|
2012-08-11 16:07:33 +00:00
|
|
|
|
2013-03-10 20:24:38 +00:00
|
|
|
html_static_path = ['tornado.css']
|
2013-03-09 17:30:36 +00:00
|
|
|
html_theme = 'default'
|
2013-03-10 20:24:38 +00:00
|
|
|
html_style = "tornado.css"
|
2011-06-11 21:30:51 +00:00
|
|
|
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,
|
|
|
|
)
|
2013-03-10 19:58:05 +00:00
|
|
|
html_favicon = 'favicon.ico'
|
2012-08-11 16:07:33 +00:00
|
|
|
|
|
|
|
latex_documents = [
|
2013-03-11 01:32:36 +00:00
|
|
|
('documentation', 'tornado.tex', 'Tornado Documentation', 'Facebook', 'manual', False),
|
2012-08-11 16:07:33 +00:00
|
|
|
]
|
2013-03-10 19:04:06 +00:00
|
|
|
|
|
|
|
# HACK: sphinx has limited support for substitutions with the |version|
|
|
|
|
# variable, but there doesn't appear to be any way to use this in a link
|
|
|
|
# target.
|
|
|
|
# http://stackoverflow.com/questions/1227037/substitutions-inside-links-in-rest-sphinx
|
|
|
|
# The extlink extension can be used to do link substitutions, but it requires a
|
|
|
|
# portion of the url to be literally contained in the document. Therefore,
|
|
|
|
# this link must be referenced as :current_tarball:`z`
|
|
|
|
extlinks = {
|
|
|
|
'current_tarball': (
|
2013-03-29 12:55:39 +00:00
|
|
|
'https://pypi.python.org/packages/source/t/tornado/tornado-%s.tar.g%%s' % version,
|
2013-03-10 19:04:06 +00:00
|
|
|
'tornado-%s.tar.g' % version),
|
|
|
|
}
|
2013-03-16 02:56:03 +00:00
|
|
|
|
|
|
|
intersphinx_mapping = {
|
|
|
|
'python': ('http://python.readthedocs.org/en/latest/', None),
|
|
|
|
}
|