forked from tornadoweb/tornado
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sphinx config in its new home, restore Makefile and custom css.
- Loading branch information
Showing
4 changed files
with
95 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |