clean-jsdoc-theme 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/publish.d.mts +1 -1
- package/dist/publish.d.ts +1 -1
- package/dist/publish.js +6 -15
- package/dist/publish.js.map +1 -1
- package/dist/publish.mjs +6 -15
- package/dist/publish.mjs.map +1 -1
- package/package.json +6 -6
package/dist/publish.mjs
CHANGED
|
@@ -78,7 +78,7 @@ async function loadDep(name, requiredExports) {
|
|
|
78
78
|
return mod;
|
|
79
79
|
}
|
|
80
80
|
const loadSetu = () => loadDep("@clean-jsdoc-theme/setu", ["generateSite", "stampSite"]);
|
|
81
|
-
const loadDwar = () => loadDep("@clean-jsdoc-theme/dwar", ["render"
|
|
81
|
+
const loadDwar = () => loadDep("@clean-jsdoc-theme/dwar", ["render"]);
|
|
82
82
|
const loadUtils = () => loadDep("@clean-jsdoc-theme/utils", [
|
|
83
83
|
"validateThemeOpts",
|
|
84
84
|
"createGoogleFontResolver",
|
|
@@ -1312,8 +1312,8 @@ function formatElapsed(ms) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Build-stage narrator backed by `ora`. The setu→dwar pipeline does much more
|
|
1315
|
-
* than a bare jsdoc run (per-page MDX compile, per-island esbuild bundling,
|
|
1316
|
-
*
|
|
1315
|
+
* than a bare jsdoc run (per-page MDX compile, per-island esbuild bundling), so
|
|
1316
|
+
* a 7–8s build can otherwise look hung. `stage(label, fn)`
|
|
1317
1317
|
* starts an ora spinner, runs `fn`, then resolves it to `✔ <label> (<elapsed>)`
|
|
1318
1318
|
* on success or `✖ <label>` on failure. ora handles the spinner animation, TTY
|
|
1319
1319
|
* detection (no animation when piped/CI), and the success/fail symbols.
|
|
@@ -1323,7 +1323,7 @@ function formatElapsed(ms) {
|
|
|
1323
1323
|
* per-page MDX compile/SSR) that blocks the event loop — so the interval can't
|
|
1324
1324
|
* fire and the spinner freezes on one frame, looking hung. Two things keep it
|
|
1325
1325
|
* visibly alive: an elapsed-seconds **heartbeat** appended to the label (so it
|
|
1326
|
-
* advances whenever the loop breathes — module-graph I/O gaps, esbuild
|
|
1326
|
+
* advances whenever the loop breathes — module-graph I/O gaps, esbuild
|
|
1327
1327
|
* subprocess waits), and the `setText` handle, which long stages use to report
|
|
1328
1328
|
* their current sub-step (e.g. the renderer load steps setu → dwar → utils).
|
|
1329
1329
|
*
|
|
@@ -1397,7 +1397,7 @@ async function publish(data, opts, tutorials) {
|
|
|
1397
1397
|
const sourcesPromise = outputSourceFilesEnabled(opts) ? collectSourceFiles(data) : Promise.resolve([]);
|
|
1398
1398
|
const docsPromise = docsDir ? collectDocs(docsDir) : Promise.resolve([]);
|
|
1399
1399
|
const progress = createBuildProgress(opts.progress === false ? null : await loadOra());
|
|
1400
|
-
const [{ generateSite, stampSite }, { render
|
|
1400
|
+
const [{ generateSite, stampSite }, { render }, { validateThemeOpts, createGoogleFontResolver, formatDiagnostics, warningsOnly, formatBuildReport, formatRenderError, normalizeBasePath, withBase, toExtractManifest, normalizeCollapsibleSidebarSections, unmatchedCollapsibleSections, topLevelSectionLabels, normalizeScrollbar }] = await progress.stage("Loading renderer", async ({ setText }) => {
|
|
1401
1401
|
setText("Loading renderer (setu)");
|
|
1402
1402
|
const setu = await loadSetu();
|
|
1403
1403
|
setText("Loading renderer (dwar)");
|
|
@@ -1562,11 +1562,7 @@ async function publish(data, opts, tutorials) {
|
|
|
1562
1562
|
const staticOutputFiles = [];
|
|
1563
1563
|
if (staticFiles) {
|
|
1564
1564
|
const generatedPaths = new Set(generatedFiles.map((f) => f.path));
|
|
1565
|
-
const RESERVED_PREFIXES = [
|
|
1566
|
-
"_assets/",
|
|
1567
|
-
"_islands/",
|
|
1568
|
-
"pagefind/"
|
|
1569
|
-
];
|
|
1565
|
+
const RESERVED_PREFIXES = ["_assets/", "_islands/"];
|
|
1570
1566
|
let skippedConsumed = 0;
|
|
1571
1567
|
for (const f of staticFiles.files) {
|
|
1572
1568
|
if (images.consumed.has(f.absSource)) {
|
|
@@ -1609,11 +1605,6 @@ async function publish(data, opts, tutorials) {
|
|
|
1609
1605
|
console.warn(`clean-jsdoc-theme: ${result.warnings.length} content warning(s) (non-fatal):`);
|
|
1610
1606
|
for (const w of result.warnings) console.warn(formatRenderError(w));
|
|
1611
1607
|
}
|
|
1612
|
-
try {
|
|
1613
|
-
await progress.stage("Indexing search (pagefind)", () => runPagefindAgainstDir(absoluteDestination));
|
|
1614
|
-
} catch (err) {
|
|
1615
|
-
console.warn(`clean-jsdoc-theme: pagefind step skipped (optional) — ${err.message}`);
|
|
1616
|
-
}
|
|
1617
1608
|
}
|
|
1618
1609
|
//#endregion
|
|
1619
1610
|
export { cleanOutputDirEnabled, collectDocs, collectStaticFiles, computeRelPaths, createImageCollector, hasMarkdownPlugin, normalizeColors, normalizeCopyPage, normalizeDocGroups, normalizeMenu, normalizeMeta, normalizePageNav, normalizePlayground, normalizeSectionOrder, normalizeStaticFilesConfig, outputSourceFilesEnabled, overlayDocs, publish, readStaticFilesConfig, resolveDocImages, resolveDocletImages, resolveFavicon, resolveFooter, resolveTutorialImages, sourceLinkToCommentEnabled, staticFileIncluded, staticFileOutputName };
|