This repository stores all the content and source code for the DIAG websites. From this repository multiple Pelican-powered websites are built, based on a central content database.
Live websites:
Please see the documentation for guides on updating the sites.
Requirements: Linux environment (on Windows via WSL) and Python 3 (we use Ubuntu with conda/miniconda istalled and a conda environment with PYTHON=3.9)
Preparations:
pip install -r requirements.txt
bash ./parse_publications.sh
to download and parse the publication files.LOCAL=1 WEBSITE=website-pathology bash ./copy_content.sh
to copy files for any website. If you get an error cp: cannot create directory 'website-pathology/output/images': No such file or directory
, then you should make this folder: mkdir -p website-pathology/output/images
and try againBuilding the website:
cd website-pathology
pelican --autoreload --listen
http://localhost:8000
To build the css:
radboudumc-theme
: npm run deploy-watch
To automatically build and host the website in a docker image, follow the instruction in the docker folder.
If you design an image/poster or similar for the website, please store the
design files (if not too big) in the directoy content/src/
in the apropriate
subtree. This allows others to update media more easily should they ever become
outdated.