diff options
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r-- | Documentation/conf.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index bf6f310e5170..d769cd89a9f7 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py | |||
@@ -37,7 +37,7 @@ from load_config import loadConfig | |||
37 | extensions = ['kernel-doc', 'rstFlatTable', 'kernel_include', 'cdomain'] | 37 | extensions = ['kernel-doc', 'rstFlatTable', 'kernel_include', 'cdomain'] |
38 | 38 | ||
39 | # The name of the math extension changed on Sphinx 1.4 | 39 | # The name of the math extension changed on Sphinx 1.4 |
40 | if minor > 3: | 40 | if major == 1 and minor > 3: |
41 | extensions.append("sphinx.ext.imgmath") | 41 | extensions.append("sphinx.ext.imgmath") |
42 | else: | 42 | else: |
43 | extensions.append("sphinx.ext.pngmath") | 43 | extensions.append("sphinx.ext.pngmath") |
@@ -332,6 +332,10 @@ latex_elements = { | |||
332 | ''' | 332 | ''' |
333 | } | 333 | } |
334 | 334 | ||
335 | # Fix reference escape troubles with Sphinx 1.4.x | ||
336 | if major == 1 and minor > 3: | ||
337 | latex_elements['preamble'] += '\\renewcommand*{\\DUrole}[2]{ #2 }\n' | ||
338 | |||
335 | # Grouping the document tree into LaTeX files. List of tuples | 339 | # Grouping the document tree into LaTeX files. List of tuples |
336 | # (source start file, target name, title, | 340 | # (source start file, target name, title, |
337 | # author, documentclass [howto, manual, or own class]). | 341 | # author, documentclass [howto, manual, or own class]). |