Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonGamerBot-QK committed Oct 9, 2024
1 parent 22247ef commit 8b51ec0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This repository contains all my files for my APCS A class.
### Table of contents:
{contents}

![88x31](https://matdoes.dev/buttons/i/f01eba7fe68df1ca76855ff4c5b1bc9c.gif)
10 changes: 5 additions & 5 deletions scripts/fix_readmes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ const projectsInMd = filesWhichAreDirs
if ([".github", "target"].includes(dir)) return false;
return true;
})
.map((dir) => `- [**${dir}**](./projects/${dir}/README.md)`)
.map((dir) => `- [**${dir}**](./projects/${encodeURIComponent(dir)}/README.md)`)
.join("\n");

fs.writeFileSync(
"./README.md",
`<!--AUTOGENERATED DO NOT TOUCH -->\n` +
fs
.readFileSync("./README.template")
.toString()
.replace("{contents}", projectsInMd),
fs
.readFileSync("./README.template")
.toString()
.replace("{contents}", projectsInMd),
);
require("child_process").execSync(
` git config --global user.email "[email protected]"`,
Expand Down

0 comments on commit 8b51ec0

Please sign in to comment.