diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-09 12:45:46 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-09 12:45:46 -0500 |
| commit | 43889a0ccfd6ac79c11621ea1722eca81c31d073 (patch) | |
| tree | 1e08884e9eef66f5f27e1fc809dbcaf6d6854549 /docs | |
| parent | 53deab6523ae769955ff897d334c08c8dac08da7 (diff) | |
| download | pyramid-43889a0ccfd6ac79c11621ea1722eca81c31d073.tar.gz pyramid-43889a0ccfd6ac79c11621ea1722eca81c31d073.tar.bz2 pyramid-43889a0ccfd6ac79c11621ea1722eca81c31d073.zip | |
make sure our new :app: roles dont break latex rendering
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py index 88cf07797..f513cfbc4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,6 +16,8 @@ import datetime # skip raw nodes from sphinx.writers.text import TextTranslator +from sphinx.writers.latex import LaTeXTranslator + from docutils import nodes from docutils import utils @@ -23,6 +25,13 @@ def raw(*arg): raise nodes.SkipNode TextTranslator.visit_raw = raw + +# make sure :app:`Pyramid` doesn't mess up LaTeX rendering +def nothing(*arg): + pass +LaTeXTranslator.visit_inline = nothing +LaTeXTranslator.depart_inline = nothing + book = os.environ.get('BOOK') # If your extensions are in another directory, add it here. If the directory |
