From a1e24c571820d8081a2619ceb31f59b60864540c Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Mon, 9 Dec 2024 14:30:43 +0100 Subject: [PATCH] More --- justfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 23dc619..6d59e6f 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,7 @@ set export := true set dotenv-load := true +EXAMPLE_DIRNAME := "example" VENV_DIRNAME := ".venv" VERSION := `sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml` @@ -67,7 +68,11 @@ default: uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs docs/_build/html @example: - cd example && python manage.py runserver + if test -e {{ EXAMPLE_DIRNAME }}; then \ + cd {{ EXAMPLE_DIRNAME }} && python manage.py runserver; \ + else \ + echo "Example not found."; \ + fi @publish: porcelain branch docs build uv publish