Skip to content

Commit

Permalink
fix broken readme links
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Sep 6, 2024
1 parent 7a6b5af commit 13e48d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ Timeline | Contributor | Description
let timelineList = "";

packageInfos.map((info) => {
const packageReadmeLink = `https://github.com/jspsych/jspsych-timelines/blob/main/packages/${info.name}/README.md`;
const authorRender = info.authorUrl ? `[${info.author}](${info.authorUrl})` : info.author;
const packageName = info.name.replace(/^\@jspsych-timelines\//g, "");
const packageReadmeLink = `https://github.com/jspsych/jspsych-timelines/blob/main/packages/${packageReadmeLink}/README.md`;
timelineList = timelineList.concat(
`[${info.name.replace(/^\@jspsych-timelines\//g, "")}](${packageReadmeLink}) | ${authorRender} | ${info.description ? info.description : "foo"} \n`
`[${packageName}](${packageReadmeLink}) | ${authorRender} | ${info.description ? info.description : "foo"} \n`
);
});

Expand Down

0 comments on commit 13e48d0

Please sign in to comment.