From eb86c504b3a807e79badd2239297b44016b911f2 Mon Sep 17 00:00:00 2001 From: Roland Meister Date: Mon, 7 Jun 2010 22:37:01 +0200 Subject: [PATCH] Disable VisibleLinksTransform because it may leak into the HTML generation. --- sphinx/builders/epub.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sphinx/builders/epub.py b/sphinx/builders/epub.py index fdfab7190..74c328ea7 100644 --- a/sphinx/builders/epub.py +++ b/sphinx/builders/epub.py @@ -125,7 +125,7 @@ _media_types = { class VisibleLinksTransform(Transform): """ - Add the link target of referances to the text, unless it is already + Add the link target of references to the text, unless it is already present in the description. """ @@ -171,7 +171,10 @@ class EpubBuilder(StandaloneHTMLBuilder): # the output files for epub must be .html only self.out_suffix = '.html' self.playorder = 0 - self.app.add_transform(VisibleLinksTransform) + # Disable transform until the issue with cached doctrees is solved. + # Building the html file after the epub file shows the + # visible links also in the HTML output. + #self.app.add_transform(VisibleLinksTransform) def get_theme_config(self): return self.config.epub_theme, {}