Skip to content

hugoguru/docker-html-proofer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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