diff options
author | Sofia Wallin <sofia.wallin@ericsson.com> | 2018-02-22 11:45:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-22 11:45:31 +0000 |
commit | 9c329a1a4e8ca5cf65d93fceadc19413808f0df5 (patch) | |
tree | 7ffa78d99ed56c50b6a7045ad79aeb92b193df8a /opnfv-theme/sphinx_opnfv_theme/__init__.py | |
parent | 2346cd06fd37f39a708e66a282125ab9d647c81e (diff) | |
parent | c1cbdfaf687437baba73fbbe5551907b6913f0a4 (diff) |
Merge "OPNFV Sphinx Theme"
Diffstat (limited to 'opnfv-theme/sphinx_opnfv_theme/__init__.py')
-rw-r--r-- | opnfv-theme/sphinx_opnfv_theme/__init__.py | 15 |
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__))) |