skip to navigation
skip to content

Not Logged In

html5validator 0.1.9

Validate HTML5 files.

HTML5 Validator

This was written with static site generators like `Jekyll <http:""/>`_
and `Pelican <http:""/>`_ in mind that push to a static
server. `html5validator` is a command line executable that integrates
well with CircleCI and TravisCI and tests all static html files for
HTML5 validity.

.. image::
.. image::
.. image::

Integration with CircleCI

Create a ``circle.yml`` file:

.. code-block:: yml

- sudo pip install html5validator
- html5validator

in your repository with static html files and get HTML5 validation on every
``git push``.

Integration with TravisCI

Create a ``.travis.yml`` file:

.. code-block:: yml

language: python
- gh-pages
- "2.7"
- "pip install html5validator"
script: "html5validator"

Enable the repository on `TravisCI <https:"">`_.

You probably don't want TravisCI to run on the ``master`` branch but only on
the ``gh-pages`` branch. TravisCI has an option (off by default) to run tests
only on branches that have a ``.travis.yml``.

You can also use this for user pages (repositories of the form ``<username>``)
where the html files are in the master branch. You only have to remove:

.. code-block:: yml

- gh-pages

from ``.travis.yml``. I am using this on
`my own user page <https:"" svenkreiss="""" blob="" master="" .travis.yml="">`_.

pip install

To facilitate the primary use case with ``TravisCI``, this repository also contains a
Python package called ``html5validator`` which can be installed using ``pip``:

.. code-block:: bash

pip install html5validator

This package uses the ` backend <https:"" validator="""">`_
which is written in Java. Therefore, a Java Runtime Environment must be
available on your system.


The backend uses the same validator that powers the
` backend <https:"" validator="""">`_.

If you are using grunt already, maybe consider using the
`grunt-html <https:"" jzaefferer="" grunt-html="">`_ plugin for grunt instead.  
File Type Py Version Uploaded on Size
html5validator-0.1.9.tar.gz (md5) Source 2015-03-03 21MB
  • Downloads (All Versions):
  • 23 downloads in the last day
  • 184 downloads in the last week
  • 905 downloads in the last month