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:
- Pathology: https://www.computationalpathologygroup.eu
- Retina: https://www.a-eyeresearch.nl
- RSE: https://rse.diagnijmegen.nl
- AI for Health: https://www.ai-for-health.nl
- RTC: https://rtc.diagnijmegen.nl
- DIAG (main website): https://www.diagnijmegen.nl
Please see the documentation for guides on updating the sites.
Install requirements
- pip install -r requirements.txt
To build a website:
- Run:
WEBSITE=website-pathology ./copy_content.sh
to copy files for any website (pathology in this example). - cd into a website folder (e.g., website-pathology or any other website): cd website-pathology
- Run pelican:
pelican --autoreload
- Start the development server:
pelican --listen
(On Non-windows you can combine step 2 and 3 with pelican --autoreload --listen
)
To build the css:
- Install npm==7.12.0
- Run css build in
radboudumc-theme
:npm run deploy-watch
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.