]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix sphinx config in its new home, restore Makefile and custom css.
authorBen Darnell <ben@bendarnell.com>
Sun, 10 Mar 2013 20:24:38 +0000 (16:24 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 10 Mar 2013 20:24:38 +0000 (16:24 -0400)
docs/Makefile [new file with mode: 0644]
docs/conf.py
docs/releases/next.rst
docs/tornado.css [new file with mode: 0644]

diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644 (file)
index 0000000..1b8b30d
--- /dev/null
@@ -0,0 +1,24 @@
+SPHINXOPTS=-W -d build/doctrees .
+
+.PHONY: sphinx
+sphinx:
+       sphinx-build -b html $(SPHINXOPTS) build/html
+
+.PHONY: coverage
+coverage:
+       sphinx-build -b coverage ${SPHINXOPTS} build/coverage
+       cat build/coverage/python.txt
+
+.PHONY: latex
+latex:
+       sphinx-build -b latex $(SPHINXOPTS) build/latex
+
+# Building a pdf requires a latex installation.  For macports, the needed
+# packages are texlive-latex-extra and texlive-fonts-recommended.
+# The output is in build/latex/tornado.pdf
+.PHONY: pdf
+pdf: latex
+       cd build/latex && pdflatex -interaction=nonstopmode tornado.tex
+
+clean:
+       rm -rf build
index 2266447f82fa0364f70442b8a9662dd9aa876f92..e0ca8d1e377e5383713f44a630fdc8a50a2d55b0 100644 (file)
@@ -1,7 +1,7 @@
 # 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("../.."))
+sys.path.insert(0, os.path.abspath(".."))
 import tornado
 
 master_doc = "index"
@@ -57,9 +57,9 @@ coverage_ignore_functions = [
     "main",
 ]
 
-html_static_path = [os.path.abspath("../static")]
+html_static_path = ['tornado.css']
 html_theme = 'default'
-html_style = "sphinx.css"
+html_style = "tornado.css"
 highlight_language = "none"
 html_theme_options = dict(
     footerbgcolor="#fff",
index 95b12a91dc06aa1eb55cc99183494696537cac82..89478dfd60affa34d75bf36594c88f319bf64373 100644 (file)
@@ -37,7 +37,7 @@ Backwards-incompatible changes
 
 * Python 2.5 is no longer supported.  Python 3 is now supported in a single
   codebase instead of using ``2to3``
-* The `tornado.database` module has been removed.  It is now available
+* The ``tornado.database`` module has been removed.  It is now available
   as a separate package, `torndb <https://github.com/bdarnell/torndb>`_
 * Functions that take an ``io_loop`` parameter now default to
   `IOLoop.current()` instead of `IOLoop.instance()`.
diff --git a/docs/tornado.css b/docs/tornado.css
new file mode 100644 (file)
index 0000000..de4d690
--- /dev/null
@@ -0,0 +1,67 @@
+@import url("default.css");
+
+/* These style tweaks are probably going to turn out to be a little fragile.
+   They're currently based on the default theme from sphinx 1.0.7.
+*/
+
+div.body h1,
+div.body h2,
+div.body h3,
+div.body h4,
+div.body h5,
+div.body h6,
+div.sphinxsidebar h3,
+div.sphinxsidebar h4 {
+    font-weight: bold;
+    border-bottom: none;
+}
+
+pre {
+    line-height: 14pt;
+    margin: 17pt;
+    padding-left: 1em;
+    border: none;
+    border-left: 1px solid #ccc;
+}
+
+div.body p, div.body dd, div.body li {
+    text-align: left;
+}
+
+.highlight {
+    background: #fff !important;
+}
+
+th.field-name {
+    background: #fff;
+}
+
+tt {
+    background: #fff;
+}
+
+/* "related" = top header */
+div.related {
+    position: fixed;
+}
+
+/* body settings copied from div.sphinxsidebar so following a link to a
+   specific object positions that object below the fixed header */
+div.body {
+    top: 30px;
+    bottom: 0;
+    right: 0;
+    left: 230px;
+    margin: 0;
+    position: fixed;
+    overflow: auto;
+    height: auto;
+}
+
+div.related, div.sphinxsidebar {
+    font-family: Calibri, sans-serif;
+}
+
+div.section {
+    max-width: 850px;
+}
\ No newline at end of file