CLean up site generation

This commit is contained in:
James Thompson
2026-03-23 04:29:25 +00:00
parent 716baafbc1
commit 90073c1d7a
40 changed files with 487 additions and 880 deletions

36
Makefile Normal file → Executable file
View File

@@ -1,6 +1,6 @@
SERVICES=traefik whoami gitea nextcloud qbittorrent jellyfin devbox obsidian n8n supersync
SERVICES=traefik whoami gitea nextcloud devbox
.PHONY: up down restart backup docs generate-docs logs status
.PHONY: up down restart backup init-env env-sync docs generate-docs serve-docs logs status
up:
@for svc in $(SERVICES); do \
@@ -36,8 +36,38 @@ status:
backup:
./backup.sh
init-env:
@echo "Initializing .env files from .env.example..."
@find . -path './.git' -prune -o -type f -name '.env.example' -print | while read -r example; do \
env_file="$${example%.example}"; \
if [ -f "$$env_file" ]; then \
echo "Skip (exists): $$env_file"; \
else \
cp "$$example" "$$env_file"; \
echo "Created: $$env_file"; \
fi; \
done
env-sync:
python3 scripts/check_env_sync.py --fix
generate-docs:
python3 scripts/generate_docs.py
docs: generate-docs
mkdocs build
@command -v uvx >/dev/null 2>&1 || { \
echo "Error: uvx is not installed or not in PATH."; \
echo "Install with: curl -LsSf https://astral.sh/uv/install.sh | sh"; \
echo "Then run: source $$HOME/.local/bin/env"; \
exit 1; \
}
uvx --from mkdocs-material --with mkdocs-include-markdown-plugin mkdocs build
serve-docs: generate-docs
@command -v uvx >/dev/null 2>&1 || { \
echo "Error: uvx is not installed or not in PATH."; \
echo "Install with: curl -LsSf https://astral.sh/uv/install.sh | sh"; \
echo "Then run: source $$HOME/.local/bin/env"; \
exit 1; \
}
uvx --from mkdocs-material --with mkdocs-include-markdown-plugin mkdocs serve --dev-addr 0.0.0.0:8000