Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 869 Bytes

README.md

File metadata and controls

52 lines (35 loc) · 869 Bytes

HTMLProofer

Docker image for HTMLProofer.

Latest version: 4.0.0.rc3

Using image

This image does not try to do any fancy except being up-to-date.

Command line

docker run --rm -it \
  -v $(pwd):/src \
  quay.io/hugoguru/html-proofer:4.0.0.rc3 \
  --allow-hash-href --check-html --empty-alt-ignore

docker-compose

validate:
  image: quay.io/hugoguru/html-proofer:4.0.0.rc3
  command: --allow-hash-href --check-html --empty-alt-ignore
  volumes:
    - .:/src

GitLab CI

html proofer:
  stage: test
  image: quay.io/hugoguru/html-proofer:4.0.0.rc3-ci
  script:
    - |
      htmlproofer \
        --empty-alt-ignore \
        --allow-hash-href \
        --url-swap "https?\:\/\/(www\.example\.com):" \
        dist

Configuration

  • Work directory: /src