Commit Graph
171 Commits
Author SHA1 Message Date
Adam Turner 8ffd1ad8c3 Bump ty to 0.0.90 (#14763) 2026-10-20 15:13:07 -07:00
Adam Turner 943bf0d191 Use Ruff rule names in place of codes (#14761) 2026-10-20 13:23:50 -07:00
Adam Turner f03a2433a9 Bump Ruff to 0.17.1 (#14760) 2026-10-20 13:12:08 -07:00
Adam Turner 7cae411c60 Isolate the HTML copy-source test output 2026-10-19 17:05:16 -07:00
Adam Turner 6d3331e358 Use the intl fixture for gettext literal-block tests 2026-10-19 17:05:16 -07:00
Adam Turner d19cbb5083 Fix tests for Docutils 1.0 pre-releases 2026-10-19 17:05:16 -07:00
James Addison b04a210129 Tests: adapt HTML escaping to pygments v2.21.0 change-in-behaviour (#14611) 2026-09-18 11:38:07 +02:00
Günter MildeandBénédikt Tran e44a40eb2f Fix two test samples to avoid new Docutils warning. (#14540)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-08-07 22:14:54 +02:00
Bénédikt Tran 31330f8b1a Strip ANSI escape sequences in test_build_linkcheck.py HTTP logs (#14475)
Original patch by Edgar Ramírez Mondragón <edgarrm358@gmail.com>.
2026-06-07 12:06:17 +02:00
Jared DillardandAdam Turner b127b9478a Add `app.add_static_dir()` for copying extension static files (#14219)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-12-31 14:58:12 +00:00
Tim Nordell 20f1c46790 LaTeX: Inhibit breaks for rows with merged vertical cells (#14227) 2025-12-30 23:46:12 +01:00
Adam Turner ce19a75e3c Ignore fewer Ty rules (#14184) 2025-12-15 21:31:10 +00:00
9257a4f1bb Improve type annotations with an 'extract_node' test utility (#14151)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-12-15 18:40:34 +00:00
Adam Turner a5e373ce51 Require Docutils 0.21 or greater (#14154) 2025-12-05 22:37:44 +00:00
a03556feb4 Shrink mypy whitelist for `tests.test_builders.test_build_latex` (#14138)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-12-01 10:58:51 +00:00
Akihiro TakizawaandAdam Turner e591423a96 Always use forward slash (`/`) in opf spines (#14067)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-11-29 02:16:24 +00:00
James Addison 4ea0d9fef4 Revert "Isolate a pair of HTML build 'numfig' test cases (#14100)" (#14106) 2025-11-27 21:49:39 +00:00
Adam Turner a82b34feea Remove 'untyped_defs' mypy overrides (#14103) 2025-11-27 21:16:15 +00:00
James Addison 828bdca03a Isolate a pair of HTML build 'numfig' test cases (#14100) 2025-11-26 19:32:31 +00:00
Adam Turner 45e1ae646c Remove deprecated API (#14095) 2025-11-25 20:15:39 +00:00
Adam Dangoor 19acb6f867 Remove mypy overrides for `tests/test_builders/test_build_html_5_output.py` (#14072) 2025-11-24 22:44:58 +00:00
c06bfceee2 linkcheck: Allow case-insensitive URL comparisons (#14046)
Co-authored-by: James Addison <55152140+jayaddison@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-11-24 22:23:31 +00:00
Stephen FinucaneandAdam Turner 44a98961b2 Use hyphenated version directives (#13714)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-06 00:10:35 +01:00
Adam Turner eaebbec4d1 Refactor `add_sidebars() into _get_sidebars()` (#13863) 2025-09-01 19:10:06 +01:00
James AddisonandAdam Turner e8ab5cf1c5 linkcheck: Fix `linkcheck_allowed_redirects` default sentinel (#13483)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-08-18 22:48:31 +01:00
Jean-François B. 6c9e3209c4 LaTeX: support CSS3 length units (#13657) 2025-08-06 12:10:59 +02:00
Jean-François B. bda34f914d LaTeX: revisit and trim visit_target() (#13616) 2025-08-06 11:35:58 +02:00
Adam Dangoor c780dc467d Remove mypy overrides for `tests/test_builders/test_build_html_*.py` (#13777) 2025-07-31 16:15:04 +01:00
Adam Dangoor 1883c0dfc4 Remove mypy overrides for `tests.test_builders.test_build_html_numfig` (#13775) 2025-07-28 12:49:07 +01:00
Adam Dangoor 9b8dce66cd Remove mypy overrides for `tests/test_builders/test_build_warnings.py` (#13771) 2025-07-27 23:54:23 +01:00
Adam Dangoor ca794cbe06 Remove mypy overrides for `tests/test_builders/test_build_html_tocdepth.py` (#13696) 2025-07-23 19:23:44 +01:00
Jean-François B. 74c1686789 LaTeX: improve the table column widths computed by LaTeX itself
Fix #3447
Fix #8228

With this patch the legacy notion of "problematic cell" is almost
entirely removed, and LaTeX package tabulary will be used more often so
that column widths in tables may get better fit to actual contents.

This works well when the column contains cells with multiple paragraphs,
bullet lists, enumerated lists, or line blocks.  For cells with object
descriptions or admonitions, the column may not fit tightly to the
contents, but other columns will probably be improved.
2025-06-29 21:42:47 +02:00
Bénédikt Tran ca043c3ccd gettext: Ignore trailing backslashes when extracting messages (#13686)
Trailing backslashes are now ignored by the `gettext` builder,
and whitespaces preceding and following them are ignored.
2025-06-22 09:58:01 +02:00
Adam Turner c384ab96c3 Use Docutils translators directly in the writing phase (#13683) 2025-06-20 18:08:02 +01:00
Adam Turner 9c4902f090 Deprecate replacing non-decodable source bytes (#13679) 2025-06-19 09:33:38 +01:00
Adam Turner 987ccb2a97 Prefer `str.partition over str.split(..., maxsize=1)` 2025-06-03 00:37:45 +01:00
James AddisonandAdam Turner 68d56109ff Tests: update LaTeX label test expectations from Docutils r10151 (#13610)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-06-02 23:02:48 +01:00
Jean-François B. 036db81dcd CI/LaTeX: run pdflatex twice when building documents 2025-05-25 17:50:55 +02:00
James Addison e6d67ca53c Ensure Python clock timezone is reset during test teardown (#13537) 2025-05-12 18:13:19 +01:00
Adam Turner 14818ffc01 Bump Ruff to 0.11.3 2025-04-27 19:16:53 +01:00
Adam Turner 3c4b4e3112 Warn on all redirects if `linkcheck_allowed_redirects` is an empty dictionary (#13452) 2025-03-27 19:03:43 +00:00
Adam Turner 292e0266f0 Bump Ruff to 0.9.10 2025-03-19 19:23:39 +00:00
Adam Turner f1fbbfcbb7 Add annotations to several single-argument ('app') test functions 2025-02-16 01:40:30 +00:00
Adam Turner a980fbcafa Add return annotation to several zero-argument test functions 2025-02-15 23:23:56 +00:00
Adam Turner 139d6b0936 Use full URLs for links to issues and pull requests 2025-02-15 21:47:31 +00:00
Adam Dangoor 89797c728a Remove mypy overrides for `tests.test_builders.test_build_text` (#13341) 2025-02-15 20:16:34 +00:00
Colin Marquardt 1431d44769 Fix typo 'unpickable' -> 'unpickleable' (#13344)
Normalize other occurrences of '~picklable' to '~pickleable'.

Note, there is no clear winner in the Python docs regarding usage of '~picklable' vs '~pickleable', so we pick the more greppable version.
2025-02-15 15:06:35 +01:00
Adam Turner b81a7d7477 Improve LaTeX skip decorators 2025-02-11 01:49:14 +00:00
Adam Turner baddae6611 Move `test_log_no_ansi_colors` 2025-02-11 01:42:39 +00:00
Adam Turner bb5716b54a Split out `test_build_all` 2025-02-11 01:34:12 +00:00