Skip to content

Commit 7dfe02c

Browse files
New test that checks markdown links for issues (linode#5924)
* 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
1 parent 02d7e7e commit 7dfe02c

File tree

1,191 files changed

+2521
-2084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,191 files changed

+2521
-2084
lines changed

.github/workflows/test.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,23 @@ jobs:
7777
env:
7878
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
7979

80+
check-links:
81+
name: Check Links (Markdown)
82+
runs-on: ubuntu-latest
83+
steps:
84+
- uses: actions/checkout@v2
85+
- name: Set up Python
86+
uses: actions/setup-python@v3
87+
with:
88+
python-version: '3.11.x'
89+
architecture: 'x64'
90+
- name: Install dependencies
91+
run: |
92+
python -m pip install --upgrade pip
93+
pip install python-frontmatter
94+
- name: Run tests
95+
run: python ./ci/check-links.py ${{ steps.files.outputs.all }}
96+
8097
docs404:
8198
runs-on: ubuntu-latest
8299
steps:

0 commit comments

Comments
 (0)