diff options
| author | armin.ronacher <devnull@localhost> | 2008-07-10 13:59:59 +0000 |
|---|---|---|
| committer | armin.ronacher <devnull@localhost> | 2008-07-10 13:59:59 +0000 |
| commit | e36860f9237a07c6ccdb2ea9316ad809ba50161f (patch) | |
| tree | f6cf989e1ca8a22eea667df6984aa32c9f2bf94f /sphinx/builder.py | |
| parent | 5ceb259c1a8c2ab4d62705ece8e5c0eca34c625d (diff) | |
| download | sphinx-e36860f9237a07c6ccdb2ea9316ad809ba50161f.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.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sphinx/builder.py b/sphinx/builder.py index f9bd9f10..988f1df3 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 |
