scripts/make-docs
raw| 1 | #!/bin/bash |
| 2 | # |
| 3 | # Build documentation for PubChemPy using Sphinx. |
| 4 | # Usage: uv run scripts/make-docs [html|clean|pdf|epub|dirhtml|...] |
| 5 | |
| 6 | set -e |
| 7 | |
| 8 | DOCS_DIR="$(dirname $(dirname "$0"))/docs" |
| 9 | SPHINXOPTS="${SPHINXOPTS:-}" |
| 10 | TARGET="${1:-html}" |
| 11 | |
| 12 | exec sphinx-build -M $TARGET "$DOCS_DIR" "$DOCS_DIR/_build" $SPHINXOPTS |