From 2b3c5582bd6def03e65918867af9eedb0e0421cf Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Wed, 26 Jun 2024 11:09:58 +0200 Subject: [PATCH] wikijs - add custom css --- README.md | 2 ++ templates/compose/wikijs.yml.j2 | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 8f6643c..1d1a671 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ Example variables wikijs_db_name: db_example wikijs_db_user: db_user wikijs_db_password: 'please-vault-this-too' + wikijs_custom_css: + - custom.css ``` TODO diff --git a/templates/compose/wikijs.yml.j2 b/templates/compose/wikijs.yml.j2 index 671f94a..c6b654e 100644 --- a/templates/compose/wikijs.yml.j2 +++ b/templates/compose/wikijs.yml.j2 @@ -49,6 +49,11 @@ services: volumes: - wikijs__config:/config - wikijs__data:/data +{% if wikijs_custom_css is defined %} +{% for file in wikijs_custom_css %} + - ./custom/css/{{ file }}:/app/wiki/assets/css/{{ file }}:ro +{% endfor %} +{% endif %} ports: - 3001:3000 networks: