README.md: update

This commit is contained in:
Emi Vasilek 2024-10-12 00:20:05 +02:00
parent 8a9ae16ad3
commit ae3ee28ab4

View file

@ -4,7 +4,13 @@ Comfy Recipes is a simple application that renders your recipes into HTML.
Documentation is available at <https://comfy.city/comfy-recipes/docs> Documentation is available at <https://comfy.city/comfy-recipes/docs>
## Building the python package ## Running
```sh
docker run -v ./recipes:/recipes git.comfy.city/Emi/comfy-recipes:latest build /recipes
```
## Building
### Building the python package
Make sure you have hatchling and build modules installed. Make sure you have hatchling and build modules installed.
```sh ```sh
python3 -m build python3 -m build
@ -15,17 +21,17 @@ The package can now be installed with
pip install dist/comfy-recipes-*-py3-none-any.whl pip install dist/comfy-recipes-*-py3-none-any.whl
``` ```
## Building the docker container ### Building the docker container
```sh ```sh
docker buildx build -t git.comfy.city/Emi/comfy-recipes:local . docker buildx build -t git.comfy.city/Emi/comfy-recipes:local .
``` ```
The container can now be ran The container can now be ran
```sh ```sh
docker run --rm git.comfy.city/Emi/comfy-recipes:local docker run -v ./recipes:/recipes git.comfy.city/Emi/comfy-recipes:local build /recipes
``` ```
## Building the documentation ### Building the documentation
```sh ```sh
cd docs cd docs
mdbook build mdbook build