You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tabs-to-subsubsection transform for HTML-cached doctrees in PDF build (#1267)
The Sphinx Makefile uses -M mode, which shares a single _build/.doctrees/
directory across all builders. When `make html` runs first, doctrees are
written with sphinx-tabs HTML node types (SphinxTabsTablist, SphinxTabsTab,
SphinxTabsPanel). When `make latexpdf` runs next, the LatexTabsTransform
encountered this HTML structure instead of the non-HTML fallback it expected,
causing tab labels to render as plain paragraph text rather than
\subsubsection* headings.
Fix by detecting which structure is present (HTML-cached vs non-HTML fallback)
and handling each path correctly. Also replace the deprecated self.app access
with self.env.app to silence the Sphinx 8 deprecation warning.
https://claude.ai/code/session_01UGnrctHsi8vRVecbAm4ncn
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments