Deploy to production: strikes removal, worker 301 redirects, plan pricing updates#143
Merged
Conversation
…system mode The custom MutationObserver in themeCookieSync.js wrote the theme cookie on every data-theme change, silently promoting system-mode visitors (no cookie) out of system mode the first time the OS or Docusaurus flipped the attribute. syncThemeCookie() only writes the cookie when one already exists, so OS-following users stay OS-following. Closes #142
…ribers Expand the retired subscribers section to explicitly require employer, job title, and end date. Rename "Unemployed" to "Not Currently Working" to use more neutral language.
Plan pages previously lacked any monthly/annual price information, and the upgrade examples used an outdated $108/year Starter annual price. - Add Pricing sections to Free Forever, Starter, Trader, Quant, Prime - Add Pricing sections to Starter Trial and Trader Trial clarifying $0 for 30 days, no card required, no renewal/extension, and automatic conversion to Free Forever (never auto-billed) when the trial ends - Update upgrades.md: Starter annual is now $144/year ($12/mo billed annually) and recalculate the affected upgrade-credit examples
Deletes the Strikes endpoint docs across API, Python, PHP, and Go SDK references, scrubs remaining mentions, and adds client-side redirects from the removed pages to the equivalent chain endpoint. The API endpoint itself remains live for backward compatibility.
The client-redirects plugin emits tiny HTML files with a <meta http-equiv="refresh"> tag. The worker now detects those stubs coming back from Pages and returns a proper HTTP 301 instead, which gives non-browser clients (curl, fetch, bots, LLM scrapers) real redirect semantics and fixes the post-deploy integration tests, which fetch every URL in the production sitemap with Accept: text/markdown and expect redirected paths to resolve to markdown on the target.
|
Review the following changes in direct dependencies. Learn more about Socket for 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
Deploys the accumulated staging changes to production. Seven commits, three themes:
Options strikes endpoint removal
Strikesendpoint docs across API, Python, PHP, and Go SDKs (4 pages, ~1,140 lines)sdk-requirements.mdchainpage/v1/options/strikes/API endpoint itself remains live for backward compatibilityWorker: meta-refresh → HTTP 301 conversion
worker/handler.jsnow detects the small HTML stubs emitted bydocusaurus-plugin-client-redirectsand returns a proper301with an absoluteLocationheader instead of proxying the meta-refresh HTMLAccept: text/markdownand hit redirect stubs as raw HTMLPlan pricing and content tweaks
syncThemeCookie()upgraded to @marketdataapp/ui v4.3.0 to preserve system modeTest plan
www.marketdata.app/docs/api/options/strikesredirects to/chaincurl -I www.marketdata.app/docs/api/troubleshooting/http-status-codesreturns301(not a 200 meta-refresh stub)