Skip to content

Latest commit

 

History

History
92 lines (64 loc) · 2.52 KB

File metadata and controls

92 lines (64 loc) · 2.52 KB

Software Engineering Group at the CAU of Kiel

Modifying the homepage will follow the below procedure.

  1. Clone the repository.
  2. Execute the homepage locally (http://localhost:8080).
  3. Add modifications to the code. Most changes will be applied and shown on the fly.
  4. Check code formatting and broken urls.
  5. Make commits and push to the main branch.

Test-run the homepage locally

Launch the test instance

docker compose up

If it doesn't work try the following method instead:

docker compose up --build

Then open http://localhost:8080 on the browser. Modifying certain files (e.g., _config.yml) will force-quit the current instance.

Shutdown the test instance

docker compose down

Avoid GitHub Action Failures

We can run some of GitHub action jobs locally to avoid GitHub action failures.

Checking code format

Install npm and the Prettier code formatter (Documentation):

sudo dnf install npm
npm install prettier

Check what's wrong:

npx prettier . --check

Apply prettier suggestions:

npx prettier . --write

Fix broken URLs

Install cargo, openssl-devel, and the lychee link checker (Documentation). The package name for openssl-devel differs by the deployed Linux distribution.

curl -sSf 'https://sh.rustup.rs' | sh
sudo dnf install openssl-devel
cargo install lychee

The most up-to-date lychee command is as followed by:

lychee --user-agent 'curl/7.54' --exclude-path README.md --exclude-path _pages/404.md --exclude-path _pages/blog.md --exclude-path _posts/2018-12-22-distill.md --exclude-path _posts/2023-04-24-videos.md --verbose --no-progress './**/*.md' './**/*.html' --exclude researchgate.net --exclude doi.org --exclude acm.org --exclude star-history.com --exclude tilburguniversity.edu --exclude app

If the command is modified, then update the last line in this GitHub action script:

.github/workflows/broken-links.yml

Documentation