Sign inSign up

mtlynch/htmlproofer

By mtlynch

•Updated over 3 years ago

Docker image for htmlproofer Ruby Gem

Image
0

10K+

mtlynch/htmlproofer repository overview

⁠HTML Proofer, Dockerized

CircleCI Docker Pulls

HTML validation, made easy. This repository is the HTML Proofer⁠ Ruby gem wrapped up in a Docker container, so you don't have to fuss with installing things like Ruby⁠ or Nokogiri⁠.

⁠Usage

Requires Docker⁠.

docker run mtlynch/htmlproofer

This will print out the usage instructions. Arguments for the htmlproofer CLI⁠ can then be appended to the command. Note that it's not (yet) recommended this be used against live sites due to this issue⁠.

⁠Directory of files

e.g. those created by a static site builder like Jekyll⁠ or Hugo⁠. You will need to mount the directory as a data volume⁠ so it's available in the container, like so:

docker run -v /absolute/path/to/site/:/mounted-site mtlynch/htmlproofer /mounted-site
⁠Single file

You can also mount a single file, like so:

docker run -v /absolute/path/to/file.html:/mounted-file.html mtlynch/htmlproofer /mounted-file.html

Tag summary

Content type

Image

Digest

sha256:f72326c5a…

Size

137.1 MB

Last updated

over 3 years ago

docker pull mtlynch/htmlproofer