tugraz theme

This commit is contained in:
mb
2020-05-01 18:31:02 +02:00
parent 7099b80486
commit a700a800e5
19 changed files with 1899 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 TUGRAZ.
#
# invenio-theme-tugraz is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""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.
"""
return WebpackBundle(
__name__,
'assets',
entry={
# TODO:
#'invenio-theme-tugraz-js': './js/invenio_tugraz_theme/tugraz.js',
},
dependencies={
'jquery': '3.1.0'
}
)