Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adapttive/algolia-docsearch-action

Algolia Docsearch GitHub Action
https://github.com/adapttive/algolia-docsearch-action

algolia algolia-docsearch-action github-actions scraper

Last synced: about 2 months ago
JSON representation

Algolia Docsearch GitHub Action

Awesome Lists containing this project

README

        

# algolia-docsearch-action
Algolia Docsearch Action

## Usage

- sample action config for your project:

```yaml
name: Algolia Indexer

on:
push:
branches: [ live ]

jobs:
algolia_indexer:
runs-on: ubuntu-latest
env:
APPLICATION_ID: {{YOUR_APP_ID}}
API_KEY: {{YOUR_API_KEY_WITH_WRITE_PERMISSIONS}}
INDEX_NAME: {{YOUR_WEBSITE}} # example.com
CONFIG: '{"index_name":"example.com","start_urls":[{"url":"https://example.com/blog","selectors_key":"blog"}],"selectors":{"blog":{"lvl0":"h1","lvl1":"h2","lvl2":"h3","lvl3":"h4","lvl4":"h5","lvl5":"#description","text":"#content"}}}'
name: Index Algolia
steps:
- name: Algolia Docsearch Action
id: algolia
uses: adapttive/[email protected]
```