Skip to content

This action checks whether there are any dead links in the documentation of your repository. Based on check-html-links from Modern Web.

License

Notifications You must be signed in to change notification settings

modernweb-dev/check-html-links-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This action checks whether there are any dead links in the documentation of your repository. Based on check-html-links from Modern Web.

This action will run in a folder with html and js files. In other words, that comes after your Jekyll, Yarn, or any other compilation step.

Note: Does not test external links, only internal ones :).

Latest version : V1

Inputs

doc-folder

Optional The location of the documentation folder. Default "dist".

Outputs

result

The complete console output of the folder

Example usage

Snippet

uses: modernweb-dev/check-html-links-action@v1
with:
  doc-folder: '_site'

Here is a complete Example workflow that will check the result of the folder _dist in the root of your repository on each push:

on: [push]

jobs:
  check_html_links_job:
    runs-on: ubuntu-latest
    name: A job to test check-html-links-action
    steps:
    - uses: actions/checkout@v2
    - name: check-html-links-action step
      id: check-links
      uses: modernweb-dev/check-html-links-action@v1
      with:
        doc-folder: 'test-site'

Tests

See test repository and latest status here.

LICENSE

MIT

Author

Modern Web