- Clone the repository.
- Execute the homepage locally (http://localhost:8080).
- Add modifications to the code. Most changes will be applied and shown on the fly.
- Check code formatting and broken urls.
- Make commits and push to the main branch.
docker compose up
Then open http://localhost:8080 on the browser. Modifying certain files (e.g., _config.yml) will force-quit the current instance.
docker compose down
We can run some of GitHub action jobs locally to avoid GitHub action failures.
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
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
-
al-folio is an academic-focused homepage theme built for the Jekyll static site generator.
-
Jekyll uses the Liquid template langauge. You can find the documentaion here.