ENH: Add script to add project links in the NiPreps SVG chart #85
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Checks the existence of links within docs | |
| --- | |
| name: Check links | |
| on: | |
| push: | |
| branches: [mkdocs] | |
| pull_request: | |
| branches: [mkdocs] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Force to use color | |
| env: | |
| FORCE_COLOR: true | |
| jobs: | |
| link-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| - name: Install MkDocs | |
| run: pip install -r requirements.txt | |
| - name: Build site | |
| run: mkdocs build | |
| - name: Check links | |
| uses: tcort/github-action-markdown-link-check@v1 | |
| with: | |
| use-quiet-mode: yes | |
| config-file: .markdown-link-check.json | |
| folder-path: site | |
| file-extension: .html |