summaryrefslogtreecommitdiff
path: root/sphinx/builder.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2008-07-10 13:59:59 +0000
committerArmin Ronacher <armin.ronacher@active-4.com>2008-07-10 13:59:59 +0000
commita3db873c47372dc82c69cafb14c18d3ae81f2056 (patch)
treef6cf989e1ca8a22eea667df6984aa32c9f2bf94f /sphinx/builder.py
parent4fb3723102cb2497eba71f37717de27de5f526e5 (diff)
downloadsphinx-git-a3db873c47372dc82c69cafb14c18d3ae81f2056.tar.gz
Fixed docstring dedenting and made the html writer more configurable in the sense that it doesn't change behavior based on the builder name any longer.
Diffstat (limited to 'sphinx/builder.py')
-rw-r--r--sphinx/builder.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sphinx/builder.py b/sphinx/builder.py
index f9bd9f101..988f1df30 100644
--- a/sphinx/builder.py
+++ b/sphinx/builder.py
@@ -301,6 +301,8 @@ class StandaloneHTMLBuilder(Builder):
supported_image_types = ['image/svg+xml', 'image/png', 'image/gif',
'image/jpeg']
searchindex_filename = 'searchindex.json'
+ add_header_links = True
+ add_definition_links = True
def init(self):
"""Load templates."""
@@ -810,6 +812,10 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
copysource = False
supported_image_types = ['image/png', 'image/gif', 'image/jpeg']
+ # don't add links
+ add_header_links = False
+ add_definition_links = False
+
def init(self):
StandaloneHTMLBuilder.init(self)
# the output files for HTML help must be .html only