summaryrefslogtreecommitdiff
path: root/sphinx/builders/websupport.py
diff options
context:
space:
mode:
authorDaniel Neuhäuser <ich@danielneuhaeuser.de>2010-08-13 11:44:09 +0200
committerDaniel Neuhäuser <ich@danielneuhaeuser.de>2010-08-13 11:44:09 +0200
commit134010e35734b986aa442a9e5047e5811dd1afa5 (patch)
tree7baf4090ea1b9c7906d88e4ad4ce25d1fb09d866 /sphinx/builders/websupport.py
parent305977359d5a210c136d2ef638fb1365384bd187 (diff)
downloadsphinx-git-134010e35734b986aa442a9e5047e5811dd1afa5.tar.gz
Put literal_blocks under versioning
Diffstat (limited to 'sphinx/builders/websupport.py')
-rw-r--r--sphinx/builders/websupport.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/builders/websupport.py b/sphinx/builders/websupport.py
index e1bd80111..2e05da5be 100644
--- a/sphinx/builders/websupport.py
+++ b/sphinx/builders/websupport.py
@@ -22,13 +22,12 @@ from docutils.utils import Reporter
from sphinx.util.osutil import os_path, relative_uri, ensuredir, copyfile
from sphinx.util.jsonimpl import dumps as dump_json
+from sphinx.util.websupport import is_commentable
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.writers.websupport import WebSupportTranslator
from sphinx.environment import WarningStream
from sphinx.versioning import add_uids, merge_doctrees
-def is_paragraph(node):
- return node.__class__.__name__ == 'paragraph'
class WebSupportBuilder(StandaloneHTMLBuilder):
"""
@@ -66,9 +65,9 @@ class WebSupportBuilder(StandaloneHTMLBuilder):
old_doctree = self.get_old_doctree(docname)
if old_doctree:
- list(merge_doctrees(old_doctree, doctree, is_paragraph))
+ list(merge_doctrees(old_doctree, doctree, is_commentable))
else:
- list(add_uids(doctree, is_paragraph))
+ list(add_uids(doctree, is_commentable))
self.cur_docname = docname
self.secnumbers = self.env.toc_secnumbers.get(docname, {})