Skip to content

Commit

Permalink
chore(config): update algolia appId, auto-recrawl via GHA (#289)
Browse files Browse the repository at this point in the history
* chore(config): update algolia integration to new appId and index

* ci: add algolia docs reindexing workflow with path filters
  • Loading branch information
bkrem authored Feb 13, 2025
1 parent 6a1de9d commit 7caf735
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/algolia-reindex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Algolia Docs Reindex

on:
push:
branches:
- main
paths:
- 'docs/**'
workflow_dispatch:

jobs:
algolia_reindex:
runs-on: ubuntu-latest
name: Algolia Docs Reindex
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Algolia Crawler Reindex
uses: algolia/algoliasearch-crawler-github-actions@v1
with:
crawler-user-id: ${{ secrets.ALGOLIA_CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
crawler-name: 'reown'
algolia-app-id: 'FNT2FF5Z1N'
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
site-url: 'https://docs.reown.com/'
10 changes: 5 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const config = {
}
],
title: 'Reown Docs',
tagline: 'Reown gives developers the tools to build user experiences that make digital ownership effortless, intuitive, and secure.',
tagline:
'Reown gives developers the tools to build user experiences that make digital ownership effortless, intuitive, and secure.',
url: 'https://docs.reown.com/',
baseUrl: '/',
onBrokenLinks: 'throw',
Expand Down Expand Up @@ -112,9 +113,9 @@ const config = {
themeConfig: {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
algolia: {
appId: 'KEO8ND6AUT',
apiKey: '5921626237dc9040afc258af25d4e77d',
indexName: 'walletconnect',
appId: 'FNT2FF5Z1N',
apiKey: '858103ff345e1d20a487ee99ea8fa03a',
indexName: 'reown',
contextualSearch: true
},
mermaid: {
Expand Down Expand Up @@ -227,7 +228,6 @@ const config = {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false

},
prism: {
darkTheme: darkCodeTheme,
Expand Down

0 comments on commit 7caf735

Please sign in to comment.