José Moreira e5de6be179 add w3c validator plugin 12 lat temu
..
README.md e5de6be179 add w3c validator plugin 12 lat temu
__init__.py e5de6be179 add w3c validator plugin 12 lat temu
wc3_validate.py e5de6be179 add w3c validator plugin 12 lat temu

README.md

w3c_validate plugin

W3C validator (http://validator.w3.org) plugin for generated HTML content.

After all content is generated, output folder is traversed for HTML files, and their content validated on W3C and the results displayed, for example:

-> writing /tmp/_output/sitemap.xml
-> Validating: /tmp/_output/archives.html
ERROR: line: 2; col: 52; message: Bad value http://www.w3.org/1999/html for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).
-> Validating: /tmp/_output/categories.html
ERROR: line: 2; col: 52; message: Bad value http://www.w3.org/1999/html for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).

Dependencies

TODO

[ ] - add tests