Commit Graph

19603 Commits

Author SHA1 Message Date
Jean-François B
4dbb62b9cd LaTeX: optional rounded corners for framing of code-blocks
Via a new configuration verbatimradius of 'sphinxsetup', which defaults
to 0pt.

If this dimension is non zero, the LaTeX package pict2e will be loaded
to help construct frames with rounded corners for code-blocks.  And if
the LaTeX package pict2e was not found, a LaTeX warning is issued during
PDF build.
2022-07-05 09:56:40 +02:00
Jean-François B
ae6b9a4d6a LaTeX: move a recently added code line near where it is now used 2022-07-05 09:13:08 +02:00
Jeremy Maitin-Shepard
66f9ee4afd Make -P (pdb) work better with exceptions triggered from events
Previously, if an exception was raised from an event listener, and the
`-P` option was specified, the debugger would be started not for the
original error but for the `ExtensionError` wrapping it that was
raised by `EventManager.emit`.  That made it difficult to debug the
error.

With this change, when `-P` is specified, wrapping of errors in
`ExtensionError` is disabled, which allows pdb to debug the original
error.
2022-07-04 18:48:44 -07:00
Adam Turner
137e63065d
Use Docutils 0.19 footnote styles (#10599) 2022-07-04 22:46:27 +01:00
Jean-François B
d4c8e84228 Fix #10638: LaTeX code-blocks when highlighted token uses \fcolorbox
This commit also does some internal refactoring in order to ease up
projected PRs.
2022-07-04 19:11:07 +02:00
Jean-François B
7e76f2c307 CHANGES: improve mark-up for a few cross-referencing issues 2022-07-03 18:46:06 +02:00
Jean-François B
2ac802fbd4 Fix #10633 LaTeX: upstream framed.sty color leak bug 2022-07-03 14:42:26 +02:00
Jean-François B
5ffe1e879e Update CHANGES for PR #10619 2022-07-03 12:14:24 +02:00
Jean-François B
aae64baac0
Merge pull request #10619 from jfbu/latex_coloredshadows
LaTeX: refactor sphinxShadowBox to allow colors for frame and shadow
2022-07-03 12:10:42 +02:00
Takeshi KOMIYA
a9cd517c04
Merge pull request #10632 from sphinx-doc/update_lock-threads
CI: Update lock-threads to v3
2022-07-03 14:27:36 +09:00
Takeshi KOMIYA
5c22bd86ef CI: Update lock-threads to v3 2022-07-03 14:05:46 +09:00
Takeshi KOMIYA
6de301eaff
Merge pull request #10630 from sphinx-doc/dependabot/github_actions/peter-evans/create-pull-request-4
Bump peter-evans/create-pull-request from 3 to 4
2022-07-03 13:44:04 +09:00
Takeshi KOMIYA
5c27d02868
Merge pull request #10629 from sphinx-doc/dependabot/github_actions/deadsnakes/action-2.1.1
Bump deadsnakes/action from 2.0.1 to 2.1.1
2022-07-03 13:43:49 +09:00
Takeshi KOMIYA
6c85a91e17
Merge pull request #10627 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-07-03 13:33:24 +09:00
dependabot[bot]
0b9f96dfe1
Bump peter-evans/create-pull-request from 3 to 4
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-03 04:27:11 +00:00
dependabot[bot]
9e0841fd89
Bump deadsnakes/action from 2.0.1 to 2.1.1
Bumps [deadsnakes/action](https://github.com/deadsnakes/action) from 2.0.1 to 2.1.1.
- [Release notes](https://github.com/deadsnakes/action/releases)
- [Commits](https://github.com/deadsnakes/action/compare/v2.0.1...v2.1.1)

---
updated-dependencies:
- dependency-name: deadsnakes/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-03 04:27:08 +00:00
Takeshi KOMIYA
d6bf2fdfb7
Merge pull request #10628 from turrisxyz/Dependabot-GitHub-Actions
chore: Included githubactions in the dependabot config
2022-07-03 13:26:43 +09:00
naveen
a1f4e972fd chore: Included githubactions in the dependabot config
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-07-03 01:29:18 +00:00
tk0miya
ca53b2eefc Update message catalogs 2022-07-03 00:22:59 +00:00
Jean-François B
9efb9e3137 Merge branch '5.0.x' into 5.x 2022-07-02 17:51:27 +02:00
Jean-François B
213c29b3aa Fix #10506 (again): replacements to Pygments escapes
Relates: pygments/pygments#2172
2022-07-02 17:32:12 +02:00
danieleades
13fb17468e
Remove redundant static typing casts (#10612) 2022-07-02 11:04:31 +01:00
Adam Turner
8d99168794
Use get_settings() from Docutils 0.19 (#10624) 2022-07-02 10:56:29 +01:00
neilnaveen
cf8d5357fc
Set permissions for GitHub Actions (#10607) 2022-07-02 10:40:42 +01:00
Jean-François B
0d3f606dff LaTeX: code comments on sphinxShadowBox for topic directive 2022-07-01 09:42:52 +02:00
Jean-François B
6afde2e301 LaTeX: refactor sphinxShadowBox to allow colors for frame and shadow 2022-06-30 22:40:47 +02:00
Jean-François B
b9736f2348 Merge branch '5.0.x' into 5.x 2022-06-30 12:19:02 +02:00
Jean-François B
a7ef63a1fd LaTeX: fix #10506 (make Pygments \PYG macro \protected) 2022-06-30 12:01:36 +02:00
Jean-François B
c327f090d4 LaTeX: refactor \spx@fcolorbox to fix #10610 2022-06-30 09:49:30 +02:00
Jean-François B
52d8f3a3bc LaTeX: (cont'd) fix of code comments and slight refactoring 2022-06-30 00:00:16 +02:00
Jean-François B
2566f6e757 LaTeX: internal optimizations and comments 2022-06-29 23:18:58 +02:00
Jean-François B
d089b5c92d LaTeX: fix #10615 (relates: #10577) 2022-06-29 21:56:31 +02:00
Jean-François B
2e77290348 LaTeX: partially fix color issues for wrapped code lines with pagebreak
This does not fix entirely #10610 but it does sufficiently for it not to
require reverting #10577 which tried to solve #8686 conundrum.  In
extreme cases, the #8686 problem meant that some contents disappeared
at page bottom, so it is probably better to maintain #10577 which
will avoid any such overflow of code beyond its frame, even though in
some specific cases (a colored entity such as a long string is partly on
both pages), some syntax highlighting gets lost.

There are anyhow other issues with colors for wrapped code lines, even
with no pagebreaks involved, such as #10615.  This patch does not change
the situation there.
2022-06-29 18:48:40 +02:00
Jean-François B
9741d1341d LaTeX comments 2022-06-29 10:57:14 +02:00
Jean-François B
099d40805e
Merge pull request #10609 from jfbu/latex_comments_code-blocks
LaTeX: some code comments (technical) and minor changes
2022-06-28 00:01:32 +02:00
Jean-François B
d9681ab1b6 LaTeX: some code comments (technical) and minor changes 2022-06-27 23:37:52 +02:00
danieleades
12e86ff0e1
Use the flake8-comprehensions lint plugin (#10601) 2022-06-26 14:43:05 +01:00
Joachim Jablon
663a5b7781
py domain: Ignore aliases for resolving :any: cross-references (#10089)
Co-authored-by: Joachim Jablon <joachim.jablon@people-doc.com>
2022-06-26 13:04:15 +01:00
Antony Lee
03c1e1b15c
Replace napoleon.iterators by simpler stack implementation (#9856) 2022-06-26 12:40:42 +01:00
jfbu
d730c55f13 [DOC] Fix sectioning level in usage/configuration.rst
The conf.py example ended up as sub-section of previous one
2022-06-26 11:36:38 +02:00
Jean-François B
40841ae80c
LaTeX: fix #8686 Text can fall out of code-block at end of page (#10577)
When wrapping long code lines, recover the TeX "hbox"es and trick fancyvrb into considering each as an input code line.  This way, pagebreaks are allowed.  No change to existing output (in particular, codeline number is printed only once) when the wrapped line had place on current page.
2022-06-26 10:19:44 +02:00
jfbu
f74cc3fcaa Minor cross-linking improvements in usage/restructuredtext/roles.rst 2022-06-26 09:51:39 +02:00
jfbu
8ecbe8a15a Improve mark-up in docs (follow-up to PR #10366) 2022-06-26 09:30:22 +02:00
jfbu
d4aba4b935 Fix markup in CHANGES for a 5.1.0 Features added entry 2022-06-26 09:12:06 +02:00
Takeshi KOMIYA
26982d50bd
Merge pull request #10581 from tk0miya/10579_i18n_UnboundLocalError
Fix #10579: i18n: UnboundLocalError is raised on translating raw directive
2022-06-26 14:14:36 +09:00
Takeshi KOMIYA
d5aa0f4ab7
Merge pull request #10600 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-06-26 14:14:10 +09:00
tk0miya
e8b9bb857e Update message catalogs 2022-06-26 00:23:54 +00:00
Adam Turner
68bc916cf4
Test with Docutils 0.19 prereleases (#10598) 2022-06-25 22:15:30 +01:00
Jean-François B
5a24fec8de
Fix build failure for Docutils 0.18.0 (#10597) 2022-06-25 21:15:04 +01:00
Jean-François B
4b482334a2
Fix duplicated field term colons for Docutils 0.18+ (#10595)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-06-25 20:10:34 +01:00