This commit is contained in:
Václav Volhejn 2026-01-17 20:08:23 +01:00
parent 22f78fbb2f
commit 42d0bfadce

View file

@ -25,13 +25,13 @@ const availableFunctions = (() => {
seen.add(s); seen.add(s);
// Swap `doc.name` in for `s` in the list of synonyms // Swap `doc.name` in for `s` in the list of synonyms
const synonymsWithDoc = [doc.name, ...synonyms].filter((x) => x && x !== s); const synonymsWithDoc = [doc.name, ...synonyms].filter((x) => x && x !== s);
// functions.push({ functions.push({
// ...doc, ...doc,
// name: s, // update names for the synonym name: s, // update names for the synonym
// longname: s, longname: s,
// synonyms: synonymsWithDoc, synonyms: synonymsWithDoc,
// synonyms_text: synonymsWithDoc.join(', '), synonyms_text: synonymsWithDoc.join(', '),
// }); });
} }
} }
return functions.sort((a, b) => /* a.meta.filename.localeCompare(b.meta.filename) + */ a.name.localeCompare(b.name)); return functions.sort((a, b) => /* a.meta.filename.localeCompare(b.meta.filename) + */ a.name.localeCompare(b.name));
@ -64,14 +64,6 @@ export function Reference() {
} }
} }
// if (entry.name === selectedFunction) {
// return true;
// }
// if (!selectedTag) {
// return false;
// }
if (!search) { if (!search) {
return true; return true;
} }
@ -228,7 +220,6 @@ export function Reference() {
</section> </section>
)) || <p className="font-sans">Searcb or select a tag to get started.</p>} )) || <p className="font-sans">Searcb or select a tag to get started.</p>}
{detailVisibleFunctions.length > 0 && <div className="h-screen" />} {detailVisibleFunctions.length > 0 && <div className="h-screen" />}
{/* {!selectedTag && <p className="font-sans">Select a tag to see the functions.</p>} */}
</div> </div>
</div> </div>
</div> </div>