Skip to content

This repository stores all the content for the diag websites.

License

Notifications You must be signed in to change notification settings

DIAGNijmegen/website-content

Repository files navigation

DIAG Website content

Build and Deploy Optimize Images

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.

Websites

Live websites:

Updating the content

Please see the documentation for guides on updating the sites.

Building the website locally

Requirements: Linux environment (on Windows via WSL) and Python 3 (we use Ubuntu with conda/miniconda istalled and a conda environment)

Preparations:

  1. Install dependencies: pip install -r requirements.txt
  2. Run bash ./parse_publications.sh to download and parse the publication files.
  3. Run: LOCAL=1 WEBSITE=website-pathology bash ./copy_content.sh to copy files for any website.

Building the website:

  1. cd into the website folder: cd website-pathology
  2. Run pelican: pelican --autoreload --listen
  3. Visit http://localhost:8000

To build the css:

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

To automatically build and host the website in a docker image, follow the instruction in the docker folder.

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.

Pipeline

pipeline