cache: remove duplicate glossary searching
commit2b9c9c17eb11fe6ad74884d1b4ffd2bb519e07fd
authorMatilde Park <matilde.park@urbit.org>
dateMon 2 May 2022, 17:09 (4 years ago)
parent8fe67e5
lib/cache.js+3−1
@@ -27,7 +27,9 @@ function buildSearchIndex(dir) {
2727
2828 const children = fs.readdirSync(dir, { withFileTypes: true });
2929 const pages = children.filter((f) => f.isFile() && f.name !== "_index.md");
30− const subdirs = children.filter((f) => f.isDirectory() && f.name !== "ids");
30+ const subdirs = children.filter(
31+ (f) => f.isDirectory() && f.name !== "ids" && f.name !== "glossary"
32+ );
3133
3234 index.push(
3335 ...pages.map((page) => {