summaryrefslogtreecommitdiff
path: root/docutils/test/functional/tests/misc_rst_html5.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop default settings from individual functional test files.milde2022-11-161-28/+11
| | | | | | | | | Define common defaults for all functional tests in `test_functional.py`. Only specify settings that differ from the default/fallback value in the individual test files. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9249 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Inline ``_default`` in functional testsaa-turner2022-10-271-0/+14
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9180 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add DeprecationWarnings and FutureWarnings for planned changes.milde2021-11-051-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8880 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: add self-link after section headings (feature request #28).milde2021-07-051-1/+1
| | | | | | | | | | | | The "section_self_link" setting triggers this behaviour. As it is currently only implemented for HTML5, the setting is defined for this writer only. The self-link "invisible" by default. The provided stylesheet "responsive.css" gives an example how it can be made visible when hovering over the section heading. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8788 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: small tweaksmilde2021-07-051-1/+6
| | | | | | | | | | | | | Move space character between section number and heading into "sectnum" span. Simplify code in _html_base.py. responsive.css: highlight target of current URL, show an arrow when hovering over section heading to hint at the target of toc-backlinks. Test setting `--toc_backlinks=top` and the "responsive.css" stylesheet. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8787 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Improve accessibility of section headings.milde2021-06-301-0/+13
Mark the internal back-refences from section headings to the ToC with DPub-ARIA role "doc-backref". Use "aria-level" instead of a class argument value for section headings with nesting level > 6 (for level 1 to 6, the level is determined by the HTML tag). Mind that in HTML5, heading level 1 is reserved for the document title and section headings start with level 2. Add functional test sample for deeply nested sections. Merge functional tests for additonal HTML5 features. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8786 929543f6-e4f2-0310-98a6-ba3bd3dd1d04