Skip to contentSkip to conversation

doc: fix sphinx warning

PATCH In review Thomas Monjalon 3 participants 4 messages Apr 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix sphinx warning

Seen with recent version of sphinx:
WARNING: latex_preamble conflicts with latex_elements['preamble'], ignored.

---
 doc/guides/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
doc/guides/conf.py +2 -2
index 01ce16d2e..ef0e1c607 100644
@@ -79,7 +79,7 @@
 ]
 
 # Latex directives to be included directly in the latex/pdf docs.
-latex_preamble = r"""
+custom_latex_preamble = r"""
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{helvet}
@@ -95,7 +95,7 @@
     'classoptions': ',openany,oneside',
     'babel': '\\usepackage[english]{babel}',
     # customize Latex formatting
-    'preamble': latex_preamble
+    'preamble': custom_latex_preamble
 }
 
 
Signature · 1 line
2.12.2
Acked-by on v1 1/1
#3 lore raw
In reply to Thomas Monjalon
Quoted 10 lines

From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Wednesday, April 19, 2017 1:11 PM
To: Mcnamara, John <[email protected]>
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] doc: fix sphinx warning

Seen with recent version of sphinx:
WARNING: latex_preamble conflicts with latex_elements['preamble'], ignored.

Previously I had this warning, but no more, whooo!