moss/html-proofer
Test your rendered HTML files to make sure they're accurate.
363
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.
Requires Docker.
docker run moss/html-proofer
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.
You will need to mount the file as a data volume so it's available in the container, like so:
docker run -v /absolute/path/to/file.html:/file.html moss/html-proofer /file.html
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/dir/:/site moss/html-proofer /site
docker pull moss/html-proofer