Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ jobs:
run: npm run build
- name: Build JSDoc
run: npm run jsdoc
- name: Test broken links
run: npm run test:links
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,7 @@ npm run lint:js -- --fix

### Check for broken links

Build the site
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is not required anymore?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's managed by "pretest:links": "npm run build"


```sh
hugo --minify
```

and run
To check for broken links, run the following command:

```sh
npm run test:links
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "hugo --minify",
"test": "npm run lint:markdown && npm run lint:css && npm run lint:js && npm run test:links",
"pretest:links": "npm run build",
"test:links": "linkinator ./public --recurse --skip '^https?://(www.linkedin.com|twitter.com|localhost:3000/api/|stackoverflow.com|github.com/organizations/OpenTermsArchive/settings/personal-access-token-requests|joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12|openai.com|github.com|www.nytimes.com)' --verbosity error",
"test:links": "linkinator ./public --recurse --verbosity error",
"lint:markdown": "markdownlint *.md content/**/*.md",
"lint:css": "stylelint \"themes/opentermsarchive/assets/css/*.css\"",
"lint:js": "eslint themes/opentermsarchive/assets/js/",
Expand Down
Loading