DataDesigner/fern/scripts
Lawrence Lane fba8f0b1b0
fix(docs): unbreak published Fern site (#615)
* fix(docs): shrink inline base64 images in notebook HTML outputs

The image notebooks (5, 6) emit `IPython.display.HTML` blocks containing
inline `data:image/png;base64,...` URIs to render side-by-side image
grids. Those bypassed the existing `image/png` MIME shrinker and shipped
multi-MB strings through the `text/html` branch, producing 1.8 MB and
4.6 MB .ts modules. Fern's hosted SSR bundler couldn't render the
version, taking every page down with a Server Components error.

Add `shrink_inline_b64_in_html()` so the html branch resizes embedded
base64 images through the same 800px JPEG q=82 path the standalone
image branch already uses. Apply in-place to the committed bundles:
notebook 5 1.8 MB → 423 KB, notebook 6 4.6 MB → 1.3 MB. Other outputs
preserved.

Signed-off-by: Lawrence Lane <llane@nvidia.com>

* fix(docs): migrate leftover MkDocs tab syntax to Fern Tabs

The agent-rollout-ingestion concept page still used PyMdown
`=== "Title"` tab blocks left over from the MkDocs source. Fern's MDX
runtime doesn't recognize the syntax, breaking the published page.
Convert the five tab blocks to Fern's <Tabs>/<Tab title="..."> JSX
components, preserving titles, intro text, and code snippets verbatim.

Signed-off-by: Lawrence Lane <llane@nvidia.com>

* fix(docs): convert leftover MkDocs admonition to Fern Tip

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Lawrence Lane <llane@nvidia.com>

---------

Signed-off-by: Lawrence Lane <llane@nvidia.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Andre Manoel <165937436+andreatgretel@users.noreply.github.com>
2026-05-07 18:28:11 -03:00
..
ipynb-to-fern-json.py fix(docs): unbreak published Fern site (#615) 2026-05-07 18:28:11 -03:00