fix: restore /api/ page visibility under Docusaurus 3.10#827
Merged
Conversation
- switch the redocusaurus anti-FOUC CSS unlock from `body[data-rh]` to `html[data-has-hydrated='true']` - the Docusaurus 3.9.2 -> 3.10.1 bump stopped emitting the `data-rh` body attribute, so the guard rule never matched and the fully-rendered redoc content stayed `display: none` forever, blanking the API reference page - `data-has-hydrated="true"` is the attribute Docusaurus 3.10+ officially stamps on <html> after client-side hydration, restoring the intended hide-until-hydrated behavior Co-Authored-By: Claude <Opus 4.8> <noreply@anthropic.com> Signed-off-by: Yejin Kelly Joo <yejinkellyjoo@gmail.com>
✅ Deploy Preview for test-twitter-preview-testing-3 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
GasperX93
approved these changes
Jul 7, 2026
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.
What does this PR resolve? 🚀
Fixes the blank
/api/page (Bee API reference) on docs.ethswarm.org.body[data-rh]tohtml[data-has-hydrated='true'].Cause: The
/api/page is hidden by design (.redocusaurus { display: none }) and revealed once the page hydrates. That reveal rule keyed off thedata-rhattribute that react-helmet used to stamp on<body>. The Docusaurus 3.9.2 → 3.10.1 bump (merged in #822) stopped emittingdata-rhon the body, so the reveal rule never matched — redoc rendered its full content into the DOM but it stayeddisplay: noneforever, leaving a blank page. This first shipped to production with the #825 release tag, which is why it looked like #825's fault, but #825 (the OpenAPI v2.8.1 sync) was innocent.Details 📝
data-has-hydrated="true"is the attribute Docusaurus 3.10+ officially sets on<html>after client-side hydration completes — the correct, supported replacement for the oldbody[data-rh]signal. Same intended behavior (hide until hydrated), durable mechanism./api/renders the full Bee API 8.1.0 reference (menu, operations, samples); homepage unaffected.Checklist ✅
masterand resolved conflictsnpm run buildsucceedsnpm run check:links) where relevantstatic/llms.txtupdated if pages were added / renamed / deletedSwarmvsswarm, ..)git commit -s)