summaryrefslogtreecommitdiffstats
path: root/opnfv-theme/sphinx_opnfv_theme/__init__.py
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 12:16:52 -0800
committerRyota MIBU <r-mibu@cq.jp.nec.com>2018-02-06 10:42:15 +0900
commitc1cbdfaf687437baba73fbbe5551907b6913f0a4 (patch)
treef95736a6c6af21304ed1dc7677c845559fd87bbe /opnfv-theme/sphinx_opnfv_theme/__init__.py
parentfb7da06424c1a12ca0f2e1a2c4f1dd99f0adbb51 (diff)
OPNFV Sphinx Theme
This is a standalone theme for OPNFV docs based on the Sphinx Bootstrap Theme used in opnfvdocs. Change-Id: Ie145c0dc9c1e4c1ed0d8d72d687524b4ef5883de Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'opnfv-theme/sphinx_opnfv_theme/__init__.py')
-rw-r--r--opnfv-theme/sphinx_opnfv_theme/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/opnfv-theme/sphinx_opnfv_theme/__init__.py b/opnfv-theme/sphinx_opnfv_theme/__init__.py
new file mode 100644
index 000000000..007927521
--- /dev/null
+++ b/opnfv-theme/sphinx_opnfv_theme/__init__.py
@@ -0,0 +1,15 @@
+"""OPNFV Sphinx Theme"""
+
+from os import path
+
+__version__='0.1.1'
+
+
+def get_html_theme_path():
+ """Return list of HTML theme paths."""
+ local_path = path.abspath(path.dirname(__file__))
+ return [local_path]
+
+def setup(app):
+ """Required by Sphinx to create the theme."""
+ app.add_html_theme('opnfv', path.abspath(path.dirname(__file__)))