Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ jobs:
if: "${{ github.event.inputs.invenio-override-branch != '' && !startsWith( github.ref, 'refs/tags') }}"
run: sed -i 's/invenio-override", branch = "main"/invenio-override", branch = "${{ github.event.inputs.invenio-override-branch }}"/g' pyproject.toml

- name: Change pyproject.toml override MUG
run: sed -i 's/-override ~/-override[marc21] ~/g' pyproject.toml

- name: Relock uv
run: |
source .venv/bin/activate
Expand Down
10 changes: 4 additions & 6 deletions Dockerfile.mug
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RUN uv sync --frozen
# to use rspack
ENV INVENIO_WEBPACKEXT_PROJECT="invenio_assets.webpack:rspack_project"

COPY ./themes/MUG/invenio.cfg ${INVENIO_INSTANCE_PATH}
# Replace variables.less
COPY themes/MUG/variables.less ${VIRTUAL_ENV}/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/variables.less
COPY themes/MUG/overrides.less ${VIRTUAL_ENV}/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/overrides.less

RUN invenio collect --verbose && invenio webpack create

Expand All @@ -17,15 +19,11 @@ COPY ./app_data/ ${INVENIO_INSTANCE_PATH}/app_data/
COPY ./assets/ ${INVENIO_INSTANCE_PATH}/assets/
COPY ./static/ ${INVENIO_INSTANCE_PATH}/static/
COPY ./translations ${INVENIO_INSTANCE_PATH}/translations/
COPY ./templates ${INVENIO_INSTANCE_PATH}/templates/
# COPY ./templates ${INVENIO_INSTANCE_PATH}/templates/

# copy MUG-specific templates (e.g., comment-template.html)
COPY ./themes/MUG/templates/ ${INVENIO_INSTANCE_PATH}/templates/

# Replace variables.less
COPY themes/MUG/variables.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/variables.less
COPY themes/MUG/overrides.less /opt/env/lib/python3.12/site-packages/invenio_override/assets/semantic-ui/less/invenio_override/overrides.less

WORKDIR ${INVENIO_INSTANCE_PATH}/assets
RUN pnpm install
RUN pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Each image has a correspondent instance _variant_ that a user can choose to depl
| Name | Description |
|---|---|
| ``Dockerfile`` | Dockerfile used to build base image, without theme. - no variant, used for local testing. |
| ``Dockerfile.mug`` | Dockerfile used to build MUG image. (with Publications) - variant **mug** |
| ``Dockerfile.mug`` | Dockerfile used to build MUG image (Research Results only; no Publications). - variant **mug** |
| ``Dockerfile.oer`` | Dockerfile used to build Educational Resources image (OER). - variant **oer** |
| ``Dockerfile.basic`` | Dockerfile used to base invenio-override image (no OER or Publications) and also base invenio theme (without invenio-override) - variants **basic** and **vanilla** |

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ dependencies = [
"uwsgi >=2.0",
"uwsgitop >=0.11",
"uwsgi-tools >=1.1.1",
"invenio-curations==0.4.0",
"invenio-curations==0.6.0",
"invenio-global-search>=0.3.0",
"invenio-override ~=0.0.6",
"invenio-override ~=0.0.7",
"setuptools <82"
]

[tool.setuptools]
py-modules = []

[tool.uv.sources]
invenio-curations = { git = "https://github.com/tu-graz-library/invenio-curations", branch = "main"}
invenio-override = { git = "https://github.com/sharedRDM/invenio-override", branch = "main"}
#invenio-override = { git = "https://github.com/sharedRDM/invenio-override", branch = "main"}
17 changes: 17 additions & 0 deletions themes/MUG/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# MUG theme – Changelog

Changes specific to the Medical University of Graz (MUG) repository theme.

---

## Release v0.2.0-beta

### Language & UI

- **Invenio in English only** – German language version is not used for MUG; interface is English only.

### Features

- **[FEATURE] Metadata: Set default publisher** – Default publisher configured for MUG.
- **[FEATURE] Restrict community creation** – Community creation restricted as required for MUG.
- **[FEATURE] Change colour of access status badges** – Access status badges updated to MUG styling.
Loading
Loading