Important
This project is no longer maintained by me and is now managed by the Fachschaft Informatik (asinf). For further information, please visit https://github.com/asinf/unia.xyz.
A simple URL shortener from unia.xyz to University of Augsburg's webpages hosted on Netlify and using Netlify's speedy CDN-based Redirects API.
Modify redirects.toml
and run python build.py
. The build script will then parse the routing rules and generate the webpage and redirects file for Netlify.
- Fork this repository.
- Make changes as necessary.
- Commit and push changes to your own fork.
- Open a Pull Request on GitHub.
If your Pull Request is accepted and merged into main
, all changes will be automagically deployed and you will be able to see your changes on unia.xyz within minutes.
Quickly hacked together, but it works. And it works in the following way:
- Parse
./redirects.toml
. - Fetch Base CSS from jsdelivr. We are using new.css.
- Minify Custom CSS with rcssmin.
- Create output folder
./out/
if not exists. - Generate
./out/index.html
using Jinja2. - Generate
./out/_redirects
using Jinja2.