docs 369 B

1234567891011
  1. #!/bin/sh
  2. set -ex
  3. # import the existing docs build cmds from docker/docker
  4. DOCSPORT=8000
  5. GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
  6. DOCKER_DOCS_IMAGE="compose-docs$GIT_BRANCH"
  7. DOCKER_RUN_DOCS="docker run --rm -it -e NOCACHE"
  8. docker build -t "$DOCKER_DOCS_IMAGE" -f docs/Dockerfile .
  9. $DOCKER_RUN_DOCS -p $DOCSPORT:8000 "$DOCKER_DOCS_IMAGE" mkdocs serve