ci: diff to origin/master silently
add dotted bottom line between ingredients on desktop
add filter separator
This is the code for generating a static recipe website from plain-text recipe files in a specific format.
The static site generator was originally developed for https://fathub.org/. Since the development of the original project seems to have seized, this is a slightly improved version of the original generator.
The recipes themselves are not part of the fathub static site
generator - instead they are split off to make it easier to run a
fathub
instance with your own data, or use the data with a different
frontend e.g. a native application.
# 1. get the site genarator source code:
$ git clone https://git.sr.ht/~puer-robustus/fathub
# 2. clone the recipe files to fathub/dataset:
$ cd fathub
$ git clone https://git.sr.ht/~puer-robustus/fathub-data dataset
# 3. create a venv, activate it, and install the dependencies:
$ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install -r requirements_build.txt
# 4. if you want to aid the development, also install the
# the development requirements ...
$ python3 -m pip install -r requirements_dev.txt
# ... and install the configured pre-commit hooks:
$ pre-commit install --install-hooks
# 5. build the static html files locally:
$ ./build.sh
# 6. you can now serve the website on localhost:8000 with:
$ cd public_html && python3 -m http.server
If you find a bug, would like to request/propose a feature, or would like to add a recipe, please send a mail/patch to this mailing list.
The format for the recipes and the ingredient info pages is documented in the README of the data repository.