--- /dev/null
+.PHONY: sphinx
+sphinx:
+ sphinx-build -b html -d sphinx/build/doctrees sphinx sphinx/build/html
+
+clean:
+ rm -rf sphinx/build
\ No newline at end of file
--- /dev/null
+``tornado.auth``
+======================
+
+.. automodule:: tornado.auth
--- /dev/null
+``tornado.autoreload``
+======================
+
+.. automodule:: tornado.autoreload
--- /dev/null
+# 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
+
+print tornado.__file__
+
+master_doc = "index"
+
+project = "Tornado"
+copyright = "2011, Facebook"
+
+import tornado
+version = release = tornado.version
+
+extensions = ["sphinx.ext.autodoc"]
+
+autodoc_member_order = "bysource"
+autodoc_default_flags = ["members", "undoc-members"]
--- /dev/null
+``tornado.database``
+======================
+
+.. automodule:: tornado.database
--- /dev/null
+``tornado.escape``
+======================
+
+.. automodule:: tornado.escape
--- /dev/null
+``tornado.httpclient``
+======================
+
+.. automodule:: tornado.httpclient
--- /dev/null
+``tornado.httpserver``
+======================
+
+.. automodule:: tornado.httpserver
--- /dev/null
+``tornado.httputil``
+======================
+
+.. automodule:: tornado.httputil
--- /dev/null
+Tornado API Reference
+=====================
+
+Contents:
+
+.. toctree::
+ :maxdepth: 2
+
+ webframework
+ networking
+ integration
+ utilities
+
+
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
--- /dev/null
+Integration with other services
+===============================
+
+.. toctree::
+
+ auth
+ database
+ websocket
+ wsgi
--- /dev/null
+``tornado.ioloop``
+======================
+
+.. automodule:: tornado.ioloop
--- /dev/null
+``tornado.iostream``
+======================
+
+.. automodule:: tornado.iostream
--- /dev/null
+``tornado.locale``
+======================
+
+.. automodule:: tornado.locale
--- /dev/null
+Asynchronous networking
+=======================
+
+.. toctree::
+
+ ioloop
+ iostream
+ httpclient
--- /dev/null
+``tornado.options``
+======================
+
+.. automodule:: tornado.options
--- /dev/null
+``tornado.stack_context``
+=========================
+
+.. automodule:: tornado.stack_context
--- /dev/null
+``tornado.template``
+======================
+
+.. automodule:: tornado.template
--- /dev/null
+``tornado.testing``
+======================
+
+.. automodule:: tornado.testing
--- /dev/null
+Utilities
+=========
+
+.. toctree::
+
+ autoreload
+ httputil
+ options
+ stack_context
+ testing
+
--- /dev/null
+``tornado.web``
+===============
+
+.. automodule:: tornado.web
--- /dev/null
+Core web framework
+==================
+
+.. toctree::
+
+ web
+ httpserver
+ template
+ escape
+ locale
--- /dev/null
+``tornado.websocket``
+======================
+
+.. automodule:: tornado.websocket
--- /dev/null
+``tornado.wsgi``
+======================
+
+.. automodule:: tornado.wsgi