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 CHANGED
@@ -40,8 +40,8 @@ of every page for LLMs. No CSS or build config required to get started.
40
40
  - **Fast & framework-free** — server-rendered pages with lazily-hydrated Preact
41
41
  islands; each page loads only the JS it actually uses.
42
42
  - **Search built in** — a fuzzy command palette (`Ctrl K`) over titles,
43
- descriptions, content, and per-member deep links, plus an optional
44
- [Pagefind](https://pagefind.app/) full-text index.
43
+ descriptions, content, and per-member deep links. Always on, nothing to
44
+ configure.
45
45
  - **Guides + API in one site** — hand-written Markdown guides and the
46
46
  auto-generated reference share one sidebar and one search.
47
47
  - **Localization built in** — declare your locales and the `clean-jsdoc` CLI
@@ -74,7 +74,7 @@ Add a `jsdoc.json`:
74
74
  }
75
75
  ```
76
76
 
77
- Build, then serve over HTTP (Pagefind needs HTTP to load its index):
77
+ Build, then serve over HTTP (the island chunks and the search index are fetched, which `file://` blocks):
78
78
 
79
79
  ```sh
80
80
  jsdoc -c jsdoc.json
@@ -207,7 +207,7 @@ interface JSDocOpts {
207
207
  /**
208
208
  * Build-stage progress output (`jsdoc.json` `"opts": { "progress": false }`).
209
209
  * The setu→dwar pipeline does noticeably more than a bare jsdoc run (per-page
210
- * MDX compile, per-island esbuild bundling, the Pagefind index), so by default
210
+ * MDX compile, per-island esbuild bundling, the island cache), so by default
211
211
  * the bridge narrates each stage with its elapsed time. Set `false` to silence
212
212
  * the stage lines (the build report still prints).
213
213
  */
package/dist/publish.d.ts CHANGED
@@ -207,7 +207,7 @@ interface JSDocOpts {
207
207
  /**
208
208
  * Build-stage progress output (`jsdoc.json` `"opts": { "progress": false }`).
209
209
  * The setu→dwar pipeline does noticeably more than a bare jsdoc run (per-page
210
- * MDX compile, per-island esbuild bundling, the Pagefind index), so by default
210
+ * MDX compile, per-island esbuild bundling, the island cache), so by default
211
211
  * the bridge narrates each stage with its elapsed time. Set `false` to silence
212
212
  * the stage lines (the build report still prints).
213
213
  */
package/dist/publish.js CHANGED
@@ -72,7 +72,7 @@ async function loadDep(name, requiredExports) {
72
72
  return mod;
73
73
  }
74
74
  const loadSetu = () => loadDep("@clean-jsdoc-theme/setu", ["generateSite", "stampSite"]);
75
- const loadDwar = () => loadDep("@clean-jsdoc-theme/dwar", ["render", "runPagefindAgainstDir"]);
75
+ const loadDwar = () => loadDep("@clean-jsdoc-theme/dwar", ["render"]);
76
76
  const loadUtils = () => loadDep("@clean-jsdoc-theme/utils", [
77
77
  "validateThemeOpts",
78
78
  "createGoogleFontResolver",
@@ -1306,8 +1306,8 @@ function formatElapsed(ms) {
1306
1306
  }
1307
1307
  /**
1308
1308
  * Build-stage narrator backed by `ora`. The setu→dwar pipeline does much more
1309
- * than a bare jsdoc run (per-page MDX compile, per-island esbuild bundling, the
1310
- * Pagefind index), so a 7–8s build can otherwise look hung. `stage(label, fn)`
1309
+ * than a bare jsdoc run (per-page MDX compile, per-island esbuild bundling), so
1310
+ * a 7–8s build can otherwise look hung. `stage(label, fn)`
1311
1311
  * starts an ora spinner, runs `fn`, then resolves it to `✔ <label> (<elapsed>)`
1312
1312
  * on success or `✖ <label>` on failure. ora handles the spinner animation, TTY
1313
1313
  * detection (no animation when piped/CI), and the success/fail symbols.
@@ -1317,7 +1317,7 @@ function formatElapsed(ms) {
1317
1317
  * per-page MDX compile/SSR) that blocks the event loop — so the interval can't
1318
1318
  * fire and the spinner freezes on one frame, looking hung. Two things keep it
1319
1319
  * visibly alive: an elapsed-seconds **heartbeat** appended to the label (so it
1320
- * advances whenever the loop breathes — module-graph I/O gaps, esbuild/Pagefind
1320
+ * advances whenever the loop breathes — module-graph I/O gaps, esbuild
1321
1321
  * subprocess waits), and the `setText` handle, which long stages use to report
1322
1322
  * their current sub-step (e.g. the renderer load steps setu → dwar → utils).
1323
1323
  *
@@ -1391,7 +1391,7 @@ async function publish(data, opts, tutorials) {
1391
1391
  const sourcesPromise = outputSourceFilesEnabled(opts) ? collectSourceFiles(data) : Promise.resolve([]);
1392
1392
  const docsPromise = docsDir ? collectDocs(docsDir) : Promise.resolve([]);
1393
1393
  const progress = createBuildProgress(opts.progress === false ? null : await loadOra());
1394
- const [{ generateSite, stampSite }, { render, runPagefindAgainstDir }, { validateThemeOpts, createGoogleFontResolver, formatDiagnostics, warningsOnly, formatBuildReport, formatRenderError, normalizeBasePath, withBase, toExtractManifest, normalizeCollapsibleSidebarSections, unmatchedCollapsibleSections, topLevelSectionLabels, normalizeScrollbar }] = await progress.stage("Loading renderer", async ({ setText }) => {
1394
+ const [{ generateSite, stampSite }, { render }, { validateThemeOpts, createGoogleFontResolver, formatDiagnostics, warningsOnly, formatBuildReport, formatRenderError, normalizeBasePath, withBase, toExtractManifest, normalizeCollapsibleSidebarSections, unmatchedCollapsibleSections, topLevelSectionLabels, normalizeScrollbar }] = await progress.stage("Loading renderer", async ({ setText }) => {
1395
1395
  setText("Loading renderer (setu)");
1396
1396
  const setu = await loadSetu();
1397
1397
  setText("Loading renderer (dwar)");
@@ -1556,11 +1556,7 @@ async function publish(data, opts, tutorials) {
1556
1556
  const staticOutputFiles = [];
1557
1557
  if (staticFiles) {
1558
1558
  const generatedPaths = new Set(generatedFiles.map((f) => f.path));
1559
- const RESERVED_PREFIXES = [
1560
- "_assets/",
1561
- "_islands/",
1562
- "pagefind/"
1563
- ];
1559
+ const RESERVED_PREFIXES = ["_assets/", "_islands/"];
1564
1560
  let skippedConsumed = 0;
1565
1561
  for (const f of staticFiles.files) {
1566
1562
  if (images.consumed.has(f.absSource)) {
@@ -1603,11 +1599,6 @@ async function publish(data, opts, tutorials) {
1603
1599
  console.warn(`clean-jsdoc-theme: ${result.warnings.length} content warning(s) (non-fatal):`);
1604
1600
  for (const w of result.warnings) console.warn(formatRenderError(w));
1605
1601
  }
1606
- try {
1607
- await progress.stage("Indexing search (pagefind)", () => runPagefindAgainstDir(absoluteDestination));
1608
- } catch (err) {
1609
- console.warn(`clean-jsdoc-theme: pagefind step skipped (optional) — ${err.message}`);
1610
- }
1611
1602
  }
1612
1603
  //#endregion
1613
1604
  exports.cleanOutputDirEnabled = cleanOutputDirEnabled;