diff --git a/.github/workflows/check_md_links.yml b/.github/workflows/check_md_links.yml new file mode 100644 index 000000000..b39fa35a6 --- /dev/null +++ b/.github/workflows/check_md_links.yml @@ -0,0 +1,28 @@ +--- +name: Check Markdown links + +# checking for any dead links in markdown files + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - main + pull_request: + branches: ['*'] + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + config-file: ./mlc_config.json + folder-path: ./docs/ + use-verbose-mode: yes + max-depth: -1 + file-path: ./README.md, diff --git a/docs/01_introduction.md b/docs/01_introduction.md index 49561ef47..64afd49a8 100644 --- a/docs/01_introduction.md +++ b/docs/01_introduction.md @@ -2,7 +2,7 @@ ??? example "Tl;DR - Advantages of the current schema representation" - Rich contexts for a questionnaire with JSON-LD rather than a "flat" csv file. - - A single source of curated assessments from [ReproSchema Library](https://github.com/reproschema-library) + - A single source of curated assessments from [ReproSchema Library](https://github.com/ReproNim/reproschema-library) - Each `item` (i.e question), `activity` (i.e questionnaire), and `protocol` (i.e set of questionnaires) provides unique and persistent identifiers. - Versions of a given questionnaire can be tracked (e.g., PHQ-9, PHQ-8). diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 000000000..850a03bdf --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,9 @@ +{ + "ignorePatterns": [ + {"pattern": "http://127.0.0.1:8000/"}, + {"pattern": "^https://jsonformatter.curiousconcept.com/"}, + {"pattern": "^http.*://schema.repronim.org/.*"}, + {"pattern": "^http://schema.org/version/2.0/"} + + ] +}