Conditionally import OPNFV Theme 56/8656/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 2 Feb 2018 19:31:39 +0000 (11:31 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 2 Feb 2018 21:02:54 +0000 (13:02 -0800)
commit346bfb707980807c0dafdce07b08514fe2217709
tree178fc612add58337607232d3b68003ead088dad5
parent357ab2b12d3bdb307c757ca73fa3189f061a4fd2
Conditionally import OPNFV Theme

When using the 'opnfv' theme, conf.py needs to run the Python code
'sphinx_opnfv_theme.get_html_theme_path()' in order
to determine the location of package data on the filesystem.

Instead of having every project that wants to use the OPNFV theme set
this explicitly in their conf.py, we conditionally import the theme and
execute the code.

Change-Id: Ic686483fd511bf5e321977c2802f4cfb8986c800
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
docs_conf/conf.py