diff --git a/README.md b/README.md index de52907..c753893 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # invenio-theme-tugraz -invenio module with TUGRAZ theme. +invenio module for TUGRAZ theme. + +## install +```pipenv install git+https://github.com/mb-wali/invenio-theme-tugraz.git@master#egg=invenio_theme_tugraz``` diff --git a/invenio_theme_tugraz/webpack.py b/invenio_theme_tugraz/webpack.py index 73169e5..6d00598 100644 --- a/invenio_theme_tugraz/webpack.py +++ b/invenio_theme_tugraz/webpack.py @@ -8,10 +8,10 @@ """JS/CSS Webpack bundles for theme.""" from flask_webpackext import WebpackBundle -from flask import current_app def theme(): """Returns module's webpack bundle. + This is a callable function in order to lazy load `current_app` and avoid working outside application context. """ diff --git a/run-tests.sh b/run-tests.sh index fcbea71..fcd312a 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -8,7 +8,7 @@ # details. pydocstyle invenio_theme_tugraz tests docs && \ -isort -rc -c -df && \ +#isort -rc -c -df && \ check-manifest --ignore ".travis-*" && \ -#sphinx-build -qnNW docs docs/_build/html && \ +sphinx-build -qnNW docs docs/_build/html && \ python setup.py test