Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 2.45 KB

README.md

File metadata and controls

63 lines (47 loc) · 2.45 KB

html5validator

dockeri.co

MIT License GitHub issues GitHub PRs

Convenience wrapper for the html5validator Python package that can validate HTML, CSS and SVG files. Packs all required dependencies into a container image that you can use with your CI/CD pipeline.

Supported Tags

  • latest
  • 0.4.2
  • 0.4.0

Usage

Validate all HTML, CSS and SVG files in your current local directory and its subfolders:

docker run --rm -v $(pwd):/app:ro painless/html5validator

Validate your repository's HTML, CSS and SVG files, located in a html folder, with GitLab CI:

# .gitlab-ci.yml

html5validator:
  image: painless/html5validator
  script: html5validator --root html/ --also-check-css --also-check-svg --show-warnings

Obviously, the use is similar with other CI services.

Development