<commit_before># HTML5 Validator integration for TravisCI

> This was written with static site generators in mind.

Copy the files of this repo to your repository with static HTML5 files and get continuous integrations validation for HTML5.

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 only run tests on branches that have a `.travis.yml`.

This button shows the HTML5 validity of the `gh-pages` branch:
![travisci build status](https://travis-ci.org/svenkreiss/travisci_html5.svg?branch=gh-pages)<commit_msg>more explanation<commit_after># HTML5 Validator integration for TravisCI

> This was written with static site generators in mind.

Copy the files of this repo to your repository with static HTML5 files and get continuous integrations validation for HTML5. Adjust the `URL` parameter inside the `validate.py` file to your website.

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 only run tests on branches that have a `.travis.yml`.

This button shows the HTML5 validity of the `gh-pages` branch:
![travisci build status](https://travis-ci.org/svenkreiss/travisci_html5.svg?branch=gh-pages)


### Technical

On the backend, this does a request to [http://html5.validator.nu/](http://html5.validator.nu/).
{'fraction_non_alphanumeric': 0.07240143369175628, 'fraction_numerical': 0.008602150537634409, 'mean_word_length': 4.721311475409836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1706382', 'n_tokens_mistral': 396, 'n_tokens_neox': 387, 'n_words': 185}