From 27477816ba22b1f1edead0c4ec6efe5459b33e94 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 29 Dec 2009 05:09:56 +0000 Subject: Overlong lines. Fix table. --- docs/conf.py | 19 ++- .../MyProject/myproject/templates/mytemplate.pt | 12 +- docs/narr/environment.rst | 146 +++++++++++++-------- docs/narr/install.rst | 3 +- docs/narr/unittesting.rst | 3 +- docs/tutorials/bfgwiki/installation.rst | 20 +-- .../src/authorization/tutorial/templates/edit.pt | 7 +- .../bfgwiki/src/basiclayout/tutorial/run.py | 3 +- .../bfgwiki/src/views/tutorial/templates/view.pt | 3 +- docs/tutorials/bfgwiki/src/views/tutorial/tests.py | 5 +- docs/tutorials/bfgwiki2/installation.rst | 16 ++- .../bfgwiki2/src/authorization/tutorial/run.py | 6 +- .../src/authorization/tutorial/templates/edit.pt | 3 +- .../bfgwiki2/src/basiclayout/tutorial/models.py | 3 +- .../bfgwiki2/src/basiclayout/tutorial/run.py | 6 +- .../bfgwiki2/src/models/tutorial/models.py | 3 +- .../tutorials/bfgwiki2/src/views/tutorial/tests.py | 3 +- .../tutorials/bfgwiki2/src/views/tutorial/views.py | 3 +- docs/tutorials/modwsgi/index.rst | 3 +- 19 files changed, 172 insertions(+), 95 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index afc471fe6..43a91dfd5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,6 +13,8 @@ import sys, os +book = os.environ.get('book') + # If your extensions are in another directory, add it here. If the directory # is relative to the documentation root, use os.path.abspath to make it # absolute, like shown here. @@ -83,8 +85,7 @@ add_module_names = False #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - +pygments_style = book and 'bw' or 'sphinx' # Options for HTML output # ----------------------- @@ -206,6 +207,7 @@ _PREAMBLE = r""" filecolor=black, urlcolor=black } +\fvset{frame=single,xleftmargin=9pt,numbersep=4pt} \pagestyle{fancy} @@ -253,7 +255,7 @@ def setup(app): app.add_directive('mainmatter', mainmatter, 1, (0, 0, 0)) app.add_directive('backmatter', backmatter, 1, (0, 0, 0)) -# ugh +# strip "repoze.bfg." from all inline literals from sphinx.writers.latex import LaTeXTranslator @@ -275,3 +277,14 @@ def visit_literal(self, node): LaTeXTranslator.visit_literal = visit_literal +# turn off all line numbers in latex formatting + +## from pygments.formatters import LatexFormatter +## from sphinx.highlighting import PygmentsBridge + +## class NoLinenosLatexFormatter(LatexFormatter): +## def __init__(self, **options): +## LatexFormatter.__init__(self, **options) +## self.linenos = False + +## PygmentsBridge.latex_formatter = NoLinenosLatexFormatter diff --git a/docs/narr/MyProject/myproject/templates/mytemplate.pt b/docs/narr/MyProject/myproject/templates/mytemplate.pt index e50d7cff2..3a9decb46 100644 --- a/docs/narr/MyProject/myproject/templates/mytemplate.pt +++ b/docs/narr/MyProject/myproject/templates/mytemplate.pt @@ -50,8 +50,8 @@

repoze.bfg links