Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-05-14 18:02:15 +0200
committerTakashi Iwai <tiwai@suse.de>2018-05-14 18:02:15 +0200
commitc6ec8bc75d928d39eff27c09e221f2ebc4c337cb (patch)
tree24ad2a8f305679930db91de31652123ba100e45c
parent5c48765be59c8bedcb6417e127f2a371e0de1083 (diff)
Fix documents build with old sphinx 1.2 (bsc#1093117).
-rw-r--r--Documentation/conf.py4
-rw-r--r--Documentation/sphinx/cdomain.py4
-rw-r--r--Documentation/sphinx/kfigure.py9
3 files changed, 12 insertions, 5 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 11284ed55083..c7b9eece63e9 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -17,7 +17,9 @@ import os
import sphinx
# Get Sphinx version
-major, minor, patch = sphinx.version_info[:3]
+# major, minor, patch = sphinx.version_info[:3]
+# XXX use the fixed versions for SLE12-SP4 due to silly issues
+major, minor, patch = 1, 2, 3
# If extensions (or modules to document with autodoc) are in another directory,
diff --git a/Documentation/sphinx/cdomain.py b/Documentation/sphinx/cdomain.py
index cf13ff3a656c..c235747836f6 100644
--- a/Documentation/sphinx/cdomain.py
+++ b/Documentation/sphinx/cdomain.py
@@ -44,7 +44,9 @@ from sphinx.domains.c import CDomain as Base_CDomain
__version__ = '1.0'
# Get Sphinx version
-major, minor, patch = sphinx.version_info[:3]
+# major, minor, patch = sphinx.version_info[:3]
+# XXX use the fixed versions for SLE12-SP4 due to silly issues
+major, minor, patch = 1, 2, 3
def setup(app):
diff --git a/Documentation/sphinx/kfigure.py b/Documentation/sphinx/kfigure.py
index cef4ad19624c..d7c006f96968 100644
--- a/Documentation/sphinx/kfigure.py
+++ b/Documentation/sphinx/kfigure.py
@@ -68,7 +68,10 @@ else:
_unicode = unicode
# Get Sphinx version
-major, minor, patch = sphinx.version_info[:3]
+# major, minor, patch = sphinx.version_info[:3]
+# XXX use the fixed versions for SLE12-SP4 due to silly issues
+major, minor, patch = 1, 2, 3
+
if major == 1 and minor > 3:
# patches.Figure only landed in Sphinx 1.4
from sphinx.directives.patches import Figure # pylint: disable=C0413
@@ -237,7 +240,7 @@ def convert_image(img_node, translator, src_fname=None):
elif translator.builder.format == 'html':
dst_fname = path.join(
translator.builder.outdir,
- translator.builder.imagedir,
+ '_images',
fname + '.svg')
img_node['uri'] = path.join(
translator.builder.imgpath, fname + '.svg')
@@ -433,7 +436,7 @@ def visit_kernel_render(self, node):
fname = path.join('%s-%s' % (srclang, sha1(hashobj).hexdigest()))
tmp_fname = path.join(
- self.builder.outdir, self.builder.imagedir, fname + tmp_ext)
+ self.builder.outdir, '_images', fname + tmp_ext)
if not path.isfile(tmp_fname):
mkdir(path.dirname(tmp_fname))