Skip to content

Commit

Permalink
New test that checks markdown links for issues (#5924)
Browse files Browse the repository at this point in the history
* New test for checking markdown links for issues

* Fix reference to test script

* Changed docs/guides/_index.md from toml to yaml

* Intentional mistake

* Additional logic for dealing with files, commands, indented code blocks, and inline code blocks

* Ignore text within the output shortcode

* Renamed test

* Fix most issues with links

* Test to check slug mismatches

* Test links script can optionally attempt to fix some issues. Update internal links script now replaces more old links

* Clean up output
  • Loading branch information
wildmanonline authored Dec 7, 2022
1 parent 02d7e7e commit 7dfe02c
Show file tree
Hide file tree
Showing 1,191 changed files with 2,521 additions and 2,084 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,23 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

check-links:
name: Check Links (Markdown)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11.x'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-frontmatter
- name: Run tests
run: python ./ci/check-links.py ${{ steps.files.outputs.all }}

docs404:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit 7dfe02c

Please sign in to comment.