- Submodule services/pageindex/upstream (shallow), run-pageindex.sh, .env.example - Docs: service-pageindex, pageindex-semantic-documents, index updates
12 lines
408 B
Bash
Executable File
12 lines
408 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run PageIndex CLI from vendored upstream (semantic tree index for PDF / Markdown).
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
UP="${ROOT}/upstream"
|
|
if [[ ! -f "${UP}/run_pageindex.py" ]]; then
|
|
echo "Missing ${UP}/run_pageindex.py — run: git submodule update --init services/pageindex/upstream" >&2
|
|
exit 1
|
|
fi
|
|
cd "${UP}"
|
|
exec python3 run_pageindex.py "$@"
|