Skip to content

emqx/docsearch-scraper

Repository files navigation

Docsearch Scraper

Scrape documentation and push to Algolia Search. Available as a GitHub Action.

Install

uv sync

Set ENV

export APPLICATION_ID=<YOUR_APPLICATION_ID>
export API_KEY=<YOUR_API_KEY>

Run

uv run python -m src.index <PRODUCT> <VERSION>

# Example
uv run python -m src.index broker v4.3

Use as GitHub Action

- name: update search index
  uses: emqx/docsearch-scraper@main
  env:
    APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID_NEXT }}
    API_KEY: ${{ secrets.ALGOLIA_API_KEY_NEXT }}
    BASE_URL: https://docs.emqx.com
  with:
    docs_type: ${{ env.DOCS_TYPE }}
    docs_version: ${{ env.VERSION }}

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors