aboutsummaryrefslogtreecommitdiffstats
path: root/doc/guides/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/guides/conf.py')
-rw-r--r--doc/guides/conf.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/guides/conf.py b/doc/guides/conf.py
index c3cd0bd6..39880752 100644
--- a/doc/guides/conf.py
+++ b/doc/guides/conf.py
@@ -47,11 +47,17 @@ except:
# Python 3.
import configparser
+try:
+ import sphinx_rtd_theme
-project = 'Data Plane Development Kit'
-
-if LooseVersion(sphinx_version) >= LooseVersion('1.3.1'):
html_theme = "sphinx_rtd_theme"
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+except:
+ print('Install the sphinx ReadTheDocs theme for improved html documentation '
+ 'layout: pip install sphinx_rtd_theme')
+ pass
+
+project = 'Data Plane Development Kit'
html_logo = '../logo/DPDK_logo_vertical_rev_small.png'
latex_logo = '../logo/DPDK_logo_horizontal_tag.png'
html_add_permalinks = ""