-
Notifications
You must be signed in to change notification settings - Fork 8
feat: move content-indexer to docs repo #921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b48726f
feat: migrate content-indexer to docs repo
dslovinsky 7f20c5f
feat: build out separate functionality for content-indexer params
dslovinsky 5548457
chore: switch to type: module
dslovinsky 8a1dd65
feat: switch to tsx from ts-node
dslovinsky 671d213
feat: config env vars in content-indexer scripts
dslovinsky 1be65ef
fix: content-indexer bugs
dslovinsky 2e186f0
fix: content-indexer bugs re:sdk nav tree merge
dslovinsky 1c5cfe4
feat: port over changelog functionality to content-indexer
dslovinsky 93f195b
feat: remove markdown syntax from algolia content field
dslovinsky 2101a10
refactor: reduce duplicate code
dslovinsky 2c31f11
build: configure tests and test coverage
dslovinsky d89c5e2
docs: update content-indexer readme
dslovinsky 98fa73b
fix: TS issue
dslovinsky dbad862
feat: only update algolia in prod & add TTL to preview redis entries
dslovinsky 25525ad
build: remove unnecessary chokidar dep
dslovinsky 3e45c40
chore: remove Algolia base index name env var
dslovinsky 06d4544
chore: remove unused redis env vars
dslovinsky 7ef0eaf
feat: create github actions to run indexers automatically
dslovinsky 8bef3b7
Merge branch 'main' of github.com:alchemyplatform/docs into ds/conten…
dslovinsky 101ac90
chore: remove coverage report from git
dslovinsky f4f0331
chore: add coverage/ to gitignore
dslovinsky 470017b
chore: remove repo dispatch trigger for GH pages deploy
dslovinsky 7336a4a
Merge branch 'main' of github.com:alchemyplatform/docs into ds/conten…
dslovinsky 5f21596
feat: add description field to algolia records
dslovinsky 74b2b39
fix: add missing algolia descriptions for section pages
dslovinsky b5b4d96
chore: remove unused func
dslovinsky b085a0c
fix: use paths instead of title/breadcrumb for algolia objectID seed
dslovinsky 42e4aae
fix: docs homepage bug caused by .js imports
dslovinsky fc4e017
chore: use .ts imports rather than .js where possible
dslovinsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Content Indexer Environment Variables | ||
| # Copy this file to .env.local and fill in your actual values | ||
|
|
||
| # ============================================================================ | ||
| # GitHub API (Required for SDK indexer and production mode) | ||
| # ============================================================================ | ||
| # Get a token at: https://github.com/settings/tokens | ||
| # Permissions needed: public_repo (read access to public repositories) | ||
| GH_TOKEN=your_github_token_here | ||
|
|
||
| # ============================================================================ | ||
| # Redis / Upstash KV (Required for all indexers) | ||
| # ============================================================================ | ||
| # Used to store path indices and navigation trees | ||
| # Get these from your Upstash dashboard: https://console.upstash.com/ | ||
| KV_REST_API_URL=your_kv_url_here | ||
| KV_REST_API_TOKEN=your_kv_token_here | ||
|
|
||
| # ============================================================================ | ||
| # Algolia (Required for all indexers) | ||
| # ============================================================================ | ||
| # Used for search indexing | ||
| # Get these from your Algolia dashboard: https://www.algolia.com/ | ||
| ALGOLIA_APP_ID=your_app_id_here | ||
| ALGOLIA_ADMIN_API_KEY=your_admin_api_key_here | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: Index Changelog | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - "fern/changelog/**" | ||
|
|
||
| jobs: | ||
| index-changelog: | ||
| name: Index Changelog | ||
| runs-on: ubuntu-latest | ||
| # Only run when files are added or removed, not modified | ||
| if: | | ||
| github.event.head_commit && | ||
| ( | ||
| github.event.head_commit.added[0] != null || | ||
| github.event.head_commit.removed[0] != null | ||
| ) && | ||
| ( | ||
| contains(join(github.event.head_commit.added, ','), 'fern/changelog/') || | ||
| contains(join(github.event.head_commit.removed, ','), 'fern/changelog/') | ||
| ) | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: ./.github/actions/setup-pnpm | ||
|
|
||
| - name: Run changelog indexer | ||
| run: pnpm index:changelog | ||
| env: | ||
| KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }} | ||
| KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }} | ||
| ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | ||
| ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Index Main Content | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - "fern/docs.yml" | ||
|
|
||
| jobs: | ||
| index-main: | ||
| name: Index Main Content | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: ./.github/actions/setup-pnpm | ||
|
|
||
| - name: Run main content indexer | ||
| run: pnpm index:main | ||
| env: | ||
| KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }} | ||
| KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }} | ||
| ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | ||
| ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Index SDK References | ||
|
|
||
| on: | ||
| repository_dispatch: | ||
| types: | ||
| - index-sdk-references | ||
|
|
||
| jobs: | ||
| index-sdk: | ||
| name: Index SDK References | ||
| runs-on: ubuntu-latest | ||
| # Only run if the dispatch came from the aa-sdk repository | ||
| if: github.event.client_payload.source == 'alchemyplatform/aa-sdk' | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: ./.github/actions/setup-pnpm | ||
|
|
||
| - name: Run SDK indexer | ||
| run: pnpm index:sdk | ||
| env: | ||
| KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }} | ||
| KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }} | ||
| ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | ||
| ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.