Commit 2cdf5f17 authored by Pablo Panero's avatar Pablo Panero
Browse files

Theme

parent 16e41244
......@@ -25,6 +25,7 @@ WORKDIR /code
ADD . /code
ENV INVENIO_INSTANCE_PATH=/usr/local/var/cernsearch/var/cernsearch-instance
ENV LOGO_PATH=/static/images/cernsearchicon.png
RUN chmod g=u /etc/passwd && \
chmod +x /code/scripts/*.sh && \
......
......@@ -15,3 +15,4 @@ cd ${INVENIO_INSTANCE_PATH}/static
npm install
invenio collect -v
invenio assets build
mv /code/${LOGO_PATH} ${INVENIO_INSTANCE_PATH}/${LOGO_PATH}
......@@ -331,6 +331,12 @@ objects:
INVENIO_INSTANCE_PATH: ${APP_INSTANCE_PATH}
# App to allow hosts
INVENIO_APP_ALLOWED_HOSTS: ${APP_ALLOWED_HOSTS}
# Invenio Theme
INVENIO_THEME_FRONTPAGE_TITLE: ${SITE_NAME}
INVENIO_THEME_SITENAME: ${SITE_NAME}
INVENIO_THEME_LOGO: ${LOGO_PATH}
INVENIO_THEME_LOGO_ADMIN: ${LOGO_PATH}
parameters:
- name: APP_INSTANCE_PATH
......@@ -338,4 +344,10 @@ parameters:
required: true
- name: APP_ALLOWED_HOSTS
description: "Invenio App allowed hosts. Without protocol (e.g. http) nor salsh ('/') at the end"
required: true
\ No newline at end of file
required: true
- name: SITE_NAME
description: "CERN Search site name (E.g. EDMS, Indico, etc.)"
required: true
- name: LOGO_PATH
description: "CERN Search site logo. Default path is /code/images/"
required: true
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment