Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
get all tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgott committed Jul 3, 2024
1 parent fd8195f commit 8b08a80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/pages-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ export const generateNavPaths = (fs, dirPath) => {
};
const secondLvl = new Set(fs.readdirSync(dirPath, "utf8"));

console.log("secondLvl:", secondLvl);
// Find all second-level category pages first so we don't
// repeat them in the sidebar.
secondLvl.forEach((f2) => {
Expand All @@ -171,6 +170,13 @@ export const generateNavPaths = (fs, dirPath) => {

secondLvl.forEach((f2) => {
let fullPath2 = join(dirPath, f2);

Check failure on line 172 in server/pages-helpers.ts

View workflow job for this annotation

GitHub Actions / Lint code base

Argument of type 'unknown' is not assignable to parameter of type 'string'.

// This is a first-level category page that happens to exist on the second
// level.
if (sectionIntros.has(fullPath2)) {
return;
}

const stat = fs.statSync(fullPath2);
section.entries.push(getEntryForPath(fs, fullPath2));
});
Expand Down

0 comments on commit 8b08a80

Please sign in to comment.