Justin Mayer a4df915490 Minor improvements to W3C Validator plugin README | %!s(int64=11) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=11) %!d(string=hai) anos | |
__init__.py | %!s(int64=11) %!d(string=hai) anos | |
wc3_validate.py | %!s(int64=11) %!d(string=hai) anos |
This is a plugin for Pelican that submits generated HTML content to the W3C Markup Validation Service.
After all content is generated, the output folder is traversed for HTML files, and the content is submitted to the W3C validator, after which the results are 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.
-> 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.
Note: The above output assumes you have called Pelican with the --debug
flag. Otherwise, you will see errors (if any) but not the file currently being
validated.
py_w3c, which can be installed with pip:
$ pip install py_w3c
[ ] - add tests