This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/website/rebuild_algolia_docs_search_index.sh

12 lines
258 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -eo pipefail
type jq
type docker
docker run -it \
-e API_KEY="${API_KEY:?must be set}" \
-e APPLICATION_ID="${APPLICATION_ID:?must be set}" \
-e "CONFIG=$(jq -r tostring < docsearch.config.json)" \
algolia/docsearch-scraper