From 7f4cede621534c9f1ce77abfe20b6b32f324aa8f Mon Sep 17 00:00:00 2001 From: Yejin Kelly Joo Date: Tue, 7 Jul 2026 21:16:05 +0900 Subject: [PATCH] fix(api): restore /api/ page visibility under Docusaurus 3.10 - 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 after client-side hydration, restoring the intended hide-until-hydrated behavior Co-Authored-By: Claude Signed-off-by: Yejin Kelly Joo --- src/css/custom.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index acb4062ac..186bbae67 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -304,14 +304,17 @@ pre, code, .codeBlockLines_node_modules-\@docusaurus-theme-classic-lib-theme-Cod /** * Prevent redocusaurus from displaying html before its styles are fully -* loaded. This prevents large icons from being displayed before they -* properly styled. +* loaded. This prevents large icons from being displayed before they +* properly styled. +* Docusaurus sets data-has-hydrated="true" on once client-side +* hydration completes (the body[data-rh] attribute this hack previously +* relied on stopped being emitted as of Docusaurus 3.10). */ .redocusaurus { display: none; } -body[data-rh] .redocusaurus { +html[data-has-hydrated='true'] .redocusaurus { display: block; }