Create docs, based on Sphinx with Commonmark, seeding it with https://forums.puri.sm/t/translations-and-virtual-touch-keyboards-tracking-localization/7669/48?u=dcz
19 lines
332 B
Bash
Executable File
19 lines
332 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Builds the documentation and places in the selected directory,
|
|
# or the working directory.
|
|
|
|
set -e
|
|
|
|
SCRIPT_PATH="$(realpath "$0")"
|
|
DOCS_DIR="$(dirname "$SCRIPT_PATH")"
|
|
|
|
TARGET_DIR="${1:-./}"
|
|
|
|
SPHINX=sphinx-build
|
|
|
|
if ! which sphinx-build ; then
|
|
SPHINX=sphinx-build-3
|
|
fi
|
|
$SPHINX -b html "${DOCS_DIR}" "${TARGET_DIR}"
|