diff options
Diffstat (limited to 'opnfv-theme/sphinx_opnfv_theme/__init__.py')
-rw-r--r-- | opnfv-theme/sphinx_opnfv_theme/__init__.py | 16 |
1 files changed, 16 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..2bf05c3ae --- /dev/null +++ b/opnfv-theme/sphinx_opnfv_theme/__init__.py @@ -0,0 +1,16 @@ +"""OPNFV Sphinx Theme""" + +from os import path + +__version__ = '0.2.0' + + +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__))) |