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 13e48d0 commit 3390109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
21 changes: 4 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,17 @@ The `/packages` directory also contains two template sub-folders that can be use




### Timelines

Timeline | Contributor | Description
----------- | ----------- | -----------
[arrow-flanker](https://github.com/jspsych/jspsych-timelines/blob/main/packages/@jspsych-timelines/arrow-flanker/README.md) | [Josh de Leeuw](https://github.com/jodeleeuw) | Arrow flanker task for jsPsych
[false-memory](https://github.com/jspsych/jspsych-timelines/blob/main/packages/@jspsych-timelines/false-memory/README.md) | [Cherrie Chang](https://github.com/cchang-vassar) | False memory task for jsPsych
[spatial-cueing](https://github.com/jspsych/jspsych-timelines/blob/main/packages/@jspsych-timelines/spatial-cueing/README.md) | [Cherrie Chang](https://github.com/cchang-vassar) | A shareable timeline of the Posner spatial cueing task.
[arrow-flanker](https://github.com/jspsych/jspsych-timelines/blob/main/packages/arrow-flanker/README.md) | [Josh de Leeuw](https://github.com/jodeleeuw) | Arrow flanker task for jsPsych
[false-memory](https://github.com/jspsych/jspsych-timelines/blob/main/packages/false-memory/README.md) | [Cherrie Chang](https://github.com/cchang-vassar) | False memory task for jsPsych
[spatial-cueing](https://github.com/jspsych/jspsych-timelines/blob/main/packages/spatial-cueing/README.md) | [Cherrie Chang](https://github.com/cchang-vassar) | A shareable timeline of the Posner spatial cueing task.
## Using timelines from this repository
















The modules in this repository can be loaded via a CDN or via NPM. The CDN is the easiest way to get started. For example, to load the [arrow-flanker]() timeline from the CDN, you would add the following script tag to your HTML document:

```html
Expand Down
4 changes: 2 additions & 2 deletions update-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ function updateRootReadme() {
Timeline | Contributor | Description
----------- | ----------- | -----------\n`;

const guidelinesHead = "## Using timelines from this repository\n";
const guidelinesHead = "## Using timelines from this repository\n\n";

let timelineList = "";

packageInfos.map((info) => {
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`;
const packageReadmeLink = `https://github.com/jspsych/jspsych-timelines/blob/main/packages/${packageName}/README.md`;
timelineList = timelineList.concat(
`[${packageName}](${packageReadmeLink}) | ${authorRender} | ${info.description ? info.description : "foo"} \n`
);
Expand Down

0 comments on commit 3390109

Please sign in to comment.