@riboseinc/anafero-cli 0.0.54 → 0.0.55
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/bootstrap.js +7786 -7728
- package/bootstrap.js.map +4 -4
- package/build-site.mjs +6 -8
- package/package.json +1 -1
package/build-site.mjs
CHANGED
|
@@ -317724,22 +317724,21 @@ ${inject.head ?? ""}`;
|
|
|
317724
317724
|
this.field("body");
|
|
317725
317725
|
let done12 = 0;
|
|
317726
317726
|
const total = Object.keys(contentCache).length + Object.keys(resourceDescriptions).length;
|
|
317727
|
+
console.debug("Index pipeline functions during", this.pipeline._stack.map((f3) => f3.label));
|
|
317728
|
+
console.debug("Index search pipeline functions during", this.searchPipeline._stack.map((f3) => f3.label));
|
|
317727
317729
|
for (const [uri, content] of Object.entries(contentCache)) {
|
|
317728
317730
|
done12 += 1;
|
|
317729
317731
|
indexProgress({ state: `adding entry for ${uri}`, total, done: done12 });
|
|
317730
|
-
const label = content?.content?.labelInPlainText?.normalize("NFKD").replace(/\p{Diacritic}/gu, "");
|
|
317732
|
+
const label = content?.content?.labelInPlainText?.normalize("NFKD").replace(/\p{Diacritic}/gu, "").trim();
|
|
317731
317733
|
if (label) {
|
|
317732
317734
|
const entry = {
|
|
317733
317735
|
name: uri,
|
|
317734
317736
|
body: label
|
|
317735
317737
|
};
|
|
317736
|
-
this.add(entry);
|
|
317738
|
+
this.add(entry, { boost: 5 });
|
|
317737
317739
|
} else {
|
|
317738
317740
|
console.warn("No label for", uri);
|
|
317739
317741
|
}
|
|
317740
|
-
if (label?.includes("echelle")) {
|
|
317741
|
-
console.debug("Entry", uri, label);
|
|
317742
|
-
}
|
|
317743
317742
|
}
|
|
317744
317743
|
for (const [uri] of Object.entries(resourceDescriptions)) {
|
|
317745
317744
|
done12 += 1;
|
|
@@ -317749,9 +317748,6 @@ ${inject.head ?? ""}`;
|
|
|
317749
317748
|
([s2, p3, o2]) => p3 === "hasPart" && (s2 === ROOT_SUBJECT || s2 === uri) && !o2.startsWith("data:") && (!isURIString(o2) || !reader.exists(o2))
|
|
317750
317749
|
);
|
|
317751
317750
|
const body = relationsExcludingReferences.map(([, , o2]) => o2).join("").trim().normalize("NFKD").replace(/\p{Diacritic}/gu, "").trim();
|
|
317752
|
-
if (body.includes("echelle")) {
|
|
317753
|
-
console.debug("Subresource", uri, body);
|
|
317754
|
-
}
|
|
317755
317751
|
if (body) {
|
|
317756
317752
|
const entry = {
|
|
317757
317753
|
name: uri,
|
|
@@ -317762,6 +317758,8 @@ ${inject.head ?? ""}`;
|
|
|
317762
317758
|
}
|
|
317763
317759
|
}
|
|
317764
317760
|
});
|
|
317761
|
+
console.debug("Index pipeline functions after", lunrIndex.pipeline._stack.map((f3) => f3.label));
|
|
317762
|
+
console.debug("Index search pipeline functions after", lunrIndex.searchPipeline?._stack?.map((f3) => f3.label));
|
|
317765
317763
|
indexProgress(null);
|
|
317766
317764
|
yield { "/search-index.json": encoder.encode(JSON.stringify(lunrIndex, null, 4)) };
|
|
317767
317765
|
}
|