Sign inSign up

18fgsa/html-proofer

By 18fgsa

•Updated over 8 years ago

HTML validation made easy using HTML Proofer

Image
1

100K+

18fgsa/html-proofer repository overview

⁠HTML Proofer, Dockerized Build Status

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 18fgsa/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⁠.

⁠Single file

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 18fgsa/html-proofer /file.html
⁠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/dir/:/site 18fgsa/html-proofer /site
⁠GitLab CI

You can use this image in GitLab CI, just configure job in .gitlab-ci.yml like this:

test:
  image: 18fgsa/html-proofer:gitlab-ci
  script:
    - htmlproofer _site --empty-alt-ignore

Tag summary

Content type

Image

Digest

Size

45.3 MB

Last updated

over 8 years ago

docker pull 18fgsa/html-proofer