[dts] [PATCH v1] doc: use the rtd theme for the dts docs

John McNamara john.mcnamara at intel.com
Fri Jun 23 14:44:19 CEST 2017


Use the dpdk.org style ReadTheDocs theme for the DTS user docs,
when available.

Signed-off-by: John McNamara <john.mcnamara at intel.com>
---
 doc/dts_gsg/conf.py | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/doc/dts_gsg/conf.py b/doc/dts_gsg/conf.py
index 6a8c679..568150e 100644
--- a/doc/dts_gsg/conf.py
+++ b/doc/dts_gsg/conf.py
@@ -1,5 +1,5 @@
 #   BSD LICENSE
-#   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
+#   Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
 #   All rights reserved.
 #
 #   Redistribution and use in source and binary forms, with or without
@@ -28,13 +28,14 @@
 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-import subprocess
+try:
+    import sphinx_rtd_theme
 
-project = 'DPDK Test Suite'
-
-copyright = '2015, dpdk.org'
-
-#version = subprocess.check_output(["make","-sRrC","../../", "showversion"])
+    html_theme = "sphinx_rtd_theme"
+    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+except:
+    pass
 
+project = 'DPDK Test Suite'
+copyright = '2017, dpdk.org'
 master_doc = 'index'
-
-- 
2.7.4



More information about the dts mailing list