Docsearch Scraper For EMQ Docs
pipenv install --keep-outdated
pipenv shell
export APPLICATION_ID=<YOUR_APPLICATION_ID>
export API_KEY=<YOUR_API_KEY>
python3 -m src.index <CONFIG_FILE_NAME> <PRODUCT> <VERSION>
python3 -m src.index global-config broker v4.3
python3 -m src.index config broker v4.3
CONFIG_FILE_NAME
: global-config
or config
- name: update search index
uses: Swilder-M/docsearch-scraper-simple@v4
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
with:
docs_type: ${{ env.DOCS_TYPE }}
docs_version: ${{ env.VERSION }}