File: make-docs

package info (click to toggle)
python-pubchempy 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: python: 1,619; makefile: 13; sh: 5
file content (12 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#
# Build documentation for PubChemPy using Sphinx.
# Usage: uv run scripts/make-docs [html|clean|pdf|epub|dirhtml|...]

set -e

DOCS_DIR="$(dirname $(dirname "$0"))/docs"
SPHINXOPTS="${SPHINXOPTS:-}"
TARGET="${1:-html}"

exec sphinx-build -M $TARGET "$DOCS_DIR" "$DOCS_DIR/_build" $SPHINXOPTS