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

bin+lib mlc

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

17 releases (7 breaking)

✓ Uses Rust 2018 edition

0.9.0 Jan 20, 2020
0.8.0 Jan 11, 2020
0.7.0 Jan 2, 2020
0.6.4 Dec 30, 2019
0.1.1 Jun 7, 2018

#24 in Template engine

Download history 2/week @ 2019-10-14 6/week @ 2019-10-21 2/week @ 2019-10-28 5/week @ 2019-11-04 7/week @ 2019-11-18 4/week @ 2019-11-25 4/week @ 2019-12-02 9/week @ 2019-12-09 18/week @ 2019-12-16 104/week @ 2019-12-23 56/week @ 2019-12-30 59/week @ 2020-01-06 46/week @ 2020-01-13 54/week @ 2020-01-20

116 downloads per month

MIT and MPL-2.0 licenses

48KB
1K SLoC

Markup Link Checker

Build Status

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.

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

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

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

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

Usage

Once you have mlc installed it canned just 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 would be 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.

Contribution

All contributions and comments welcome! Open an issue or create a Pull Request whenever you find a bug or have an idea to improve this crate.

License

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

Dependencies

~8–11MB
~235K SLoC