Files
cleverclaude-core/scripts/deploy_docs.sh
T
2025-08-01 18:38:09 -04:00

18 lines
435 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Deploy documentation with version tagging
VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
ALIAS="latest"
echo "Deploying docs for version: $VERSION"
# Build docs
mkdocs build
# Deploy with mike
mike deploy --push --update-aliases "$VERSION" "$ALIAS"
mike set-default --push "$ALIAS"
echo "Documentation deployed successfully!"