项目作者: adapttive

项目描述 :
Algolia Docsearch GitHub Action
高级语言: Dockerfile
项目地址: git://github.com/adapttive/algolia-docsearch-action.git
创建时间: 2021-03-14T09:24:07Z
项目社区:https://github.com/adapttive/algolia-docsearch-action

开源协议:MIT License

下载


algolia-docsearch-action

Algolia Docsearch Action

Usage

  • sample action config for your project:
  1. name: Algolia Indexer
  2. on:
  3. push:
  4. branches: [ live ]
  5. jobs:
  6. algolia_indexer:
  7. runs-on: ubuntu-latest
  8. env:
  9. APPLICATION_ID: {{YOUR_APP_ID}}
  10. API_KEY: {{YOUR_API_KEY_WITH_WRITE_PERMISSIONS}}
  11. INDEX_NAME: {{YOUR_WEBSITE}} # example.com
  12. 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"}}}'
  13. name: Index Algolia
  14. steps:
  15. - name: Algolia Docsearch Action
  16. id: algolia
  17. uses: adapttive/algolia-docsearch-action@1.1.1