diff options
author | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2011-01-08 00:06:02 +0100 |
---|---|---|
committer | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2011-01-08 00:06:02 +0100 |
commit | 071546601ed2d7e6c91dd9b7e40f6132d101c89b (patch) | |
tree | fa165e46ee73dbe44a3933f92f040d33194b1ff5 /sphinx/builders/websupport.py | |
parent | 5c39cfb6e93757dcd3b7d2909ec1336f058b8263 (diff) | |
download | sphinx-git-071546601ed2d7e6c91dd9b7e40f6132d101c89b.tar.gz |
Handle versioning in the environment
Diffstat (limited to 'sphinx/builders/websupport.py')
-rw-r--r-- | sphinx/builders/websupport.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sphinx/builders/websupport.py b/sphinx/builders/websupport.py index 5165bc192..e8f6aef35 100644 --- a/sphinx/builders/websupport.py +++ b/sphinx/builders/websupport.py @@ -17,13 +17,11 @@ from docutils.io import StringOutput from sphinx.jinja2glue import BuiltinTemplateLoader from sphinx.util.osutil import os_path, relative_uri, ensuredir, copyfile -from sphinx.util.websupport import is_commentable from sphinx.builders.html import PickleHTMLBuilder -from sphinx.builders.versioning import VersioningBuilderMixin from sphinx.writers.websupport import WebSupportTranslator -class WebSupportBuilder(PickleHTMLBuilder, VersioningBuilderMixin): +class WebSupportBuilder(PickleHTMLBuilder): """ Builds documents for the web support package. """ @@ -31,7 +29,6 @@ class WebSupportBuilder(PickleHTMLBuilder, VersioningBuilderMixin): def init(self): PickleHTMLBuilder.init(self) - VersioningBuilderMixin.init(self) # templates are needed for this builder, but the serializing # builder does not initialize them self.init_templates() @@ -58,8 +55,6 @@ class WebSupportBuilder(PickleHTMLBuilder, VersioningBuilderMixin): destination = StringOutput(encoding='utf-8') doctree.settings = self.docsettings - self.handle_versioning(docname, doctree, is_commentable) - self.cur_docname = docname self.secnumbers = self.env.toc_secnumbers.get(docname, {}) self.imgpath = '/' + posixpath.join(self.virtual_staticdir, '_images') @@ -144,7 +139,6 @@ class WebSupportBuilder(PickleHTMLBuilder, VersioningBuilderMixin): self.globalcontext['script'] = doc_ctx['script'] PickleHTMLBuilder.handle_finish(self) - VersioningBuilderMixin.finish(self) # move static stuff over to separate directory directories = ['_images', '_static'] |