Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.66 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.66 KB

DIAG Website content

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.

Build and Deploy

Websites

Live websites:

Updating the content

Please see the documentation for guides on updating the sites.

Building the website locally

Install requirements

  1. pip install -r requirements.txt

To build a website:

  1. Run: WEBSITE=website-pathology ./copy_content.sh to copy files for any website (pathology in this example).
  2. cd into a website folder (e.g., website-pathology or any other website): cd website-pathology
  3. Run pelican: pelican --autoreload
  4. Start the development server: pelican --listen

(On Non-windows you can combine step 2 and 3 with pelican --autoreload --listen)

To build the css:

  1. Install npm==7.12.0
  2. Run css build in radboudumc-theme: npm run deploy-watch

Design resources

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.