about summary refs log tree commit diff
path: root/src/etc/htmldocck.py
AgeCommit message (Collapse)AuthorLines
2020-07-26python codes cleanupjnozsc-4/+4
2020-06-08Fallback to xml.etree.ElementTreeTomasz Miąsko-1/+4
The xml.etree.cElementTree has been deprecated since Python 3.3 and removed in Python 3.9 https://bugs.python.org/issue36543.
2020-02-08PEP8 format spacing, remove unnecessary local variable assignmentChris Simpkins-14/+26
2019-01-06use utf-8 throughout htmldocckAndy Russell-18/+28
This commit improves compatibility with Python 3, which already uses Unicode throughout. It also fixes a subtle incompatibility stemming from the use of `entitydefs`, which contains replacement text _encoded in latin-1_ for HTML entities. When using Python 3, this would cause `0xa0` to be incorrectly added to the element tree. This meant that there was a rustdoc test that would pass under Python 2 but fail under Python 3, due to an incorrect regex match against the non-breaking space character. This commit triggers that failure in both versions, and also fixes it.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-11Fix spelling in the documentation to htmldocck.pyPhilip Munksgaard-25/+27
2018-06-04slightly improve rustdoc xml path errorGuillaume Gomez-9/+13
2017-09-30let htmldocck.py check for directoriesQuietMisdreavus-0/+18
2017-08-26Allow htmldocck to run using Python 3.kennytm-13/+20
2016-05-30print enum variant fields in docsOliver Schneider-0/+1
2016-04-22Only record the same impl oncemitaa-3/+6
Due to inlining it is possible to visit the same module multiple times during `<Cache as DocFolder>::fold_crate`, so we keep track of the modules we've already visited.
2015-12-10Improve `htmldocck.py` error messagesmitaa-54/+86
2015-04-07rustdoc: Add a primitive page for raw pointersAlex Crichton-1/+2
Closes #15318
2015-02-27Add a way to assert the number of occurrences to htmldocckSeo Sanghyeon-0/+15
2015-01-27Fix PEP8 for htmldocckRicho Healey-15/+45
2015-01-18tests: Warn on the trailing backslash in the template.Kang Seonghoon-0/+3
2015-01-18tests: Tidy and allows multi-line htmldocck commands.Kang Seonghoon-3/+35
2015-01-18tests: Add htmldocck.py script for the use of Rustdoc tests.Kang Seonghoon-0/+316
The script is intended as a tool for doing every sort of verifications amenable to Rustdoc's HTML output. For example, link checkers would go to this script. It already parses HTML into a document tree form (with a slight caveat), so future tests can make use of it. As an example, relevant `rustdoc-*` run-make tests have been updated to use `htmldocck.py` and got their `verify.sh` removed. In the future they may go to a dedicated directory with htmldocck running by default. The detailed explanation of test scripts is provided as a docstring of htmldocck. cc #19723