Deploy: worker improvements, markdown serving, and tests#128
Merged
MarketDataApp merged 4 commits intomainfrom Feb 25, 2026
Merged
Deploy: worker improvements, markdown serving, and tests#128MarketDataApp merged 4 commits intomainfrom
MarketDataApp merged 4 commits intomainfrom
Conversation
- Extract worker logic into handler.js for testability - Add 28 unit tests and 162 integration tests (vitest) - Serve clean markdown for .md URLs and Accept: text/markdown header - Strip frontmatter, imports, and convert MDX components to markdown - Redirect /docs/sdk-php/* to GitHub Pages - Point editUrl to self-hosted .md URLs instead of raw GitHub
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
.mdURLs andAccept: text/markdownheader — strips frontmatter, imports, converts MDX components to headings/docs/sdk-php/*→ GitHub Pages with doubled directory fixlevel = 404)Test plan
www.marketdata.app/docs/api/options/chain.mdreturns clean markdownAccept: text/markdownheader returns markdown on any docs page/docs/sdk-php/classes/MarketDataApp-Enums-Range.htmlredirects to GitHub Pages/docs/api/universal-parameters/feedredirects to/modecd worker && yarn testpasses