django-language-server/.just/docs.just
Josh Thomas 5c821d8591
add basic documentation (#42)
* add basic documentation

* remove leading slash
2024-12-16 16:47:58 -06:00

32 lines
759 B
Text

set unstable := true
justfile := justfile_directory() + "/.just/docs.just"
mkdoc_config := justfile_directory() + "/.mkdocs.yml"
[private]
default:
@just --list --justfile {{ justfile }}
[private]
fmt:
@just --fmt --justfile {{ justfile }}
# Build documentation
[no-cd]
build LOCATION="site": process
uv run --group docs --frozen mkdocs build --config-file {{ mkdoc_config }} --site-dir {{ LOCATION }}
# Serve documentation locally
[no-cd]
serve PORT="8000": process
#!/usr/bin/env sh
HOST="localhost"
if [ -f "/.dockerenv" ]; then
HOST="0.0.0.0"
fi
uv run --group docs --frozen mkdocs serve --config-file {{ mkdoc_config }} --dev-addr localhost:{{ PORT }}
[no-cd]
[private]
process:
uv run docs/processor.py