From ef02d6e745c5330a00cd404f402586a92e22f674 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 7 Oct 2026 12:04:38 -0400 Subject: [PATCH 1/2] doc: revert redesign Signed-off-by: avivkeller --- tools/doc/web.doc-kit.config.mjs | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/tools/doc/web.doc-kit.config.mjs b/tools/doc/web.doc-kit.config.mjs index ad8a9ee21be0..d6c8a477c1e0 100644 --- a/tools/doc/web.doc-kit.config.mjs +++ b/tools/doc/web.doc-kit.config.mjs @@ -5,29 +5,6 @@ import { pathToFileURL } from 'node:url'; const require = createRequire(import.meta.url); -// Gate HTML generation for high-memory machines -// -// TODO(@avivkeller): Lower the amount of memory -// we use. -const hasEnoughMemory = totalmem() > 5 * (1024 ** 3); - -// The HTML generator bundles its CSS with Lightning CSS, which ships as a -// native binding that is not available on every platform we build on. -// Probe for it up front and skip HTML generation when it cannot be loaded, -// rather than failing partway through the build. -// -// TODO(@avivkeller): Fall back to WASM on machines -// without native implementations of our dependencies -const canLoadLightningCSS = () => { - try { - require('lightningcss'); - return true; - } catch (error) { - console.warn(`Skipping HTML generation: unable to load lightningcss (${error.message.split('\n')[0]})`); - return false; - } -}; - const fromRoot = (path) => pathToFileURL(join(import.meta.dirname, '..', '..', path)).href; @@ -36,7 +13,7 @@ export default { target: [ 'legacy-json-all', - hasEnoughMemory && canLoadLightningCSS() && 'section-pages', + 'legacy-html-all' ].filter(Boolean), global: { From f481daeb5b9caa78f265b77724d5fde000d56fb4 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 7 Oct 2026 12:13:20 -0400 Subject: [PATCH 2/2] fixup! --- tools/doc/web.doc-kit.config.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/doc/web.doc-kit.config.mjs b/tools/doc/web.doc-kit.config.mjs index d6c8a477c1e0..7288f5ec18a7 100644 --- a/tools/doc/web.doc-kit.config.mjs +++ b/tools/doc/web.doc-kit.config.mjs @@ -1,10 +1,7 @@ import { createRequire } from 'node:module'; -import { totalmem } from 'node:os'; import { join } from 'node:path'; import { pathToFileURL } from 'node:url'; -const require = createRequire(import.meta.url); - const fromRoot = (path) => pathToFileURL(join(import.meta.dirname, '..', '..', path)).href; @@ -13,7 +10,7 @@ export default { target: [ 'legacy-json-all', - 'legacy-html-all' + 'legacy-html-all', ].filter(Boolean), global: {