Clean up
This commit is contained in:
parent
22f78fbb2f
commit
42d0bfadce
1 changed files with 7 additions and 16 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue