#markup #html #markdown #link-checker #broken

bin+lib mlc

The markup link checker (mlc) checks for broken links in markup files

38 releases (11 breaking)

new 0.13.7 Sep 16, 2020
0.13.2 Jul 21, 2020
0.9.1 Jan 29, 2020
0.6.4 Dec 30, 2019
0.1.1 Jun 7, 2018

#121 in Text processing

Download history 61/week @ 2020-05-30 2/week @ 2020-06-06 19/week @ 2020-06-13 28/week @ 2020-06-20 96/week @ 2020-06-27 72/week @ 2020-07-04 105/week @ 2020-07-11 85/week @ 2020-07-18 23/week @ 2020-07-25 12/week @ 2020-08-01 72/week @ 2020-08-08 39/week @ 2020-08-15 1/week @ 2020-08-22 72/week @ 2020-08-29 159/week @ 2020-09-05 36/week @ 2020-09-12

269 downloads per month

MIT license

66KB
1.5K SLoC

Markup Link Checker

Build Status

asciicast

Check for broken links in markup files. Currently html and markdown files are supported. The Markup Link Checker can easily be integrated in your CI/CD pipeline to prevent broken links in your markup docs.

Fast execution because of async usage.

Install

There are different ways to install and use mlc.

Cargo

Use rust's package manager cargo to install mlc from crates.io:

cargo install mlc

Download Binaries

To download a compiled binary version of mlc go to github releases and download the binaries compiled for x86_64-unknown-linux-gnu.

CI/CD Pipeline Integration

Binary

To integrate mlc in your CI pipeline running in a linux x86_64 environment you can add the following commands to download the tool:

curl -L https://github.com/becheran/mlc/releases/download/v0.13.7/mlc -o mlc
chmod +x mlc

For example take a look at the ntest repo which uses mlc in the CI pipeline.

Docker

Use the mlc docker image from the docker hub which includes mlc.

Usage

Once you have mlc installed, it can be called from the command line. The following call will check all links in markup files found in the current folder and all subdirectories:

mlc

Another example is to call mlc on a certain directory or file:

mlc ./docs

Call mlc with the --help flag to display all available cli arguments:

mlc -h

See the reference for all available command line arguments.

Changelog

Checkout the changelog file to see the changes between different versions.

License

This project is licensed under the MIT License - see the LICENSE file for more details.

Dependencies

~9–13MB
~290K SLoC