Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Dec 9, 2024
1 parent 2cac657 commit a1e24c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -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`

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a1e24c5

Please sign in to comment.