Skip to content

Update effect-docs extension - #28006

Merged
raycastbot merged 5 commits into
raycast:mainfrom
rvaccone:ext/effect-docs
May 17, 2026
Merged

raycastbot merged 5 commits into
raycast:mainfrom
rvaccone:ext/effect-docs

Conversation

@rvaccone

@rvaccone rvaccone commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Effect removed llms.txt, which this extension used to populate the guide search. Switched the source to the Starlight docs sidebar HTML, which provides the same list of guides.

Screencast

Screenshots are in the metadata/ folder. I updated them since the previous shots showed llms.txt descriptions that are no longer present.

effect-docs-1

Checklist

- Merge branch \'contributions/merge-1778991903929\'
- Pull contributions
- Update the intitial release to not use the template
- Resolved changes from Raycast
- Pull contributions
- Merge pull request raycast#1 from rvaccone/fix/replace-llms-txt-with-docs-sidebar
- Address CodeRabbit review
- Replace removed llms.txt source with docs sidebar scrape
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: effect-docs Issues related to the effect-docs extension AI Extension platform: macOS labels May 17, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

@raycastbot raycastbot added the OP is author The OP of the PR is the author of the extension label May 17, 2026
@rvaccone
rvaccone marked this pull request as ready for review May 17, 2026 05:07
@greptile-apps

greptile-apps Bot commented May 17, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Adapts the guide-search source from the now-removed llms.txt file to the Starlight docs sidebar HTML, using a depth-tracking nav extractor and a generalized fetchWithCache<T> helper that serves both the guide and API indexes.

  • Sidebar parsing (parse-guide.ts): replaces parseLlmsTxt with parseDocsSidebar, which locates the <nav aria-label="Main"> element, counts opening/closing nav tags to find its boundary, then extracts section headings and href links while deduplicating and filtering to /docs/ paths.
  • Cache refactor (fetch-with-cache.ts): the old text-only helper is replaced with a generic fetchWithCache<T> that accepts a parse callback, adds a structural runtime guard in readCache, and bumps the guides cache key to effect-docs-sidebar-v2 to avoid serving data in the old llms.txt format.
  • Subtitle fallback (search-effect.tsx): getGuideSubtitle surfaces description → section → derived URL path, disambiguating identically-named entries such as "Runtime".

Confidence Score: 5/5

The guide-source migration is self-contained; logic is sound, cache key is bumped to prevent stale-format hits, and the Array.isArray guards in the hooks prevent bad data from reaching the UI.

All changes are correctly scoped to the guide-source migration. The only nit is a hardcoded date in the changelog instead of the standard placeholder.

No files require special attention beyond the CHANGELOG.md date placeholder.

Important Files Changed

Filename Overview
extensions/effect-docs/CHANGELOG.md Update entry uses a hardcoded date instead of the required {PR_MERGE_DATE} placeholder.
extensions/effect-docs/src/utils/parse-guide.ts Replaced parseLlmsTxt with parseDocsSidebar that scrapes the Starlight HTML sidebar; uses depth-tracking nav extraction, attribute parsing, and decodeEntities with apos/nbsp support now added.
extensions/effect-docs/src/utils/fetch-with-cache.ts Generalised from a string-only cache helper to a generic fetchWithCache<T> with a readCache structural validator; stale-while-revalidate pattern preserved.
extensions/effect-docs/src/utils/fetch-guides.ts Source URL changed from llms.txt to the Starlight docs sidebar page; cache key bumped to effect-docs-sidebar-v2 to avoid stale data from the old format.
extensions/effect-docs/src/utils/fetch-api.ts Simplified by delegating to the new generic fetchWithCache; no behaviour change.
extensions/effect-docs/src/search-effect.tsx Added getGuideSubtitle to derive a useful subtitle from description, section, or URL path; subtitle now falls back through multiple sources for disambiguation.
extensions/effect-docs/src/types.ts description on DocItem made optional to reflect that the new sidebar source doesn't provide descriptions.
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
extensions/effect-docs/CHANGELOG.md:3
Update entries must use the `{PR_MERGE_DATE}` placeholder — hardcoding a date bypasses the automatic date injection that happens at merge time and breaks the Raycast changelog convention.

```suggestion
## [Replace Removed llms.txt Source] - {PR_MERGE_DATE}
```

Reviews (3): Last reviewed commit: "Update CHANGELOG.md and optimise images" | Re-trigger Greptile

@0xdhrv 0xdhrv self-assigned this May 17, 2026

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 6d5ded4 into raycast:main May 17, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension: effect-docs Issues related to the effect-docs extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants