Martin Liška
b1390c4191
Fix detection for out of date files ( #9360 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-05 14:44:41 +01:00
daniel.eades
964fcb2e07
Fix flake8 5.0.0 reported formatting errors
2022-08-01 20:55:47 +02:00
danieleades
25d379fb53
Lint with flake8-bugbear
( #10602 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-07-12 22:55:57 +01:00
Ezio Melotti
1a1491b8a7
Show the repr of the value in some warnings ( #10439 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-06-16 21:07:25 +01:00
jfbu
97f4a036d1
Fix #10434 : extra whitespace in pdf output for highlighted inline code
...
Related: #10251
2022-05-08 11:32:37 +02:00
Takeshi KOMIYA
425a3e6c09
Merge branch '4.x' into 5.x
2022-05-06 03:32:43 +09:00
Takeshi KOMIYA
3805e0646f
Merge pull request #10251 from jbms/fix-inline-syntax-highlight
...
Make code role highlighting consistent with code-block directive
2022-05-06 02:54:42 +09:00
Adam Turner
24e3b7c8c8
.read_text()
-> .read_text(encoding='utf8')
2022-04-27 03:04:19 +01:00
jfbu
184f98ae95
LaTeX: correct footnote marks, extended with page of link target
...
Fix #10188
Footnotes in some LaTeX environments (tables, fulllineitems for object
descriptions) are gathered and appear after the environment, causing the
footnote to possibly appear on a page later than some of the footnote
marks referring it.
With this commit, the footnote mark compares page numbers and
incorporates the destination page number if it turns out to be distinct
from the page where it stands.
2022-04-16 19:33:18 +02:00
Jeremy Maitin-Shepard
099b54cb87
Make code role highlighting consistent with code-block directive
...
Fixes https://github.com/sphinx-doc/sphinx/issues/5157
This is factored out of the sphinx-immaterial theme:
1ef121a612/sphinx_immaterial/inlinesyntaxhighlight.py (L1)
See also:
https://github.com/sphinx-doc/sphinx/pull/6916
2022-03-19 20:37:49 -07:00
Takeshi KOMIYA
aa1bc83c2a
Merge branch '4.x'
2022-03-19 22:58:15 +09:00
Takeshi KOMIYA
f7a0107ddb
Merge branch '4.x'
2022-03-03 02:28:07 +09:00
Adam Turner
5775912455
Collapse single line docstrings
2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1
Remove copyright and licence fields
2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60
Fix module docstring indentation
2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6
Fix module docstring first line
2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59
Remove module titles in docstrings
2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
f72cd83e4d
Merge branch '4.x'
2022-02-19 16:08:05 +09:00
Takeshi KOMIYA
01d06f9ffe
Fix #10175 : LaTeX: named footnote ref is linked to an incorrect footnote
...
A named footnote reference will be converted to a hyperlink to an
incorrect footnote if the name is also used in the different document.
2022-02-13 20:20:42 +09:00
Takeshi KOMIYA
1546b21f89
Fix #9529 : LaTeX: named footnotes are converted to "?"
...
Named auto numbered footnote (ex. ``[#named]``) that is referred
multiple times was rendered to a question mark.
This calls `\sphinxstepexplicit` for every footnote node that is
referred multiple times.
2022-02-06 15:59:01 +09:00
Takeshi KOMIYA
9b142f15e6
test: Add testcase for named footnotes
2022-02-06 14:33:29 +09:00
Takeshi KOMIYA
e4e58a4f27
Close #10062 : Change the default language to 'en'
...
Change the default language to `'en'` if any language is not set in
`conf.py`.
2022-01-12 02:45:52 +09:00
Takeshi KOMIYA
ce8039db1f
Merge branch '4.x'
2022-01-01 20:04:19 +09:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
jfbu
cc8e59e722
Merge branch 'master' into 9985_latex_on_master
2021-12-22 19:51:15 +01:00
jfbu
4235195e77
Fix a spelling typo in tests (s/änhlich/ähnlich)
2021-12-22 12:44:28 +01:00
jfbu
9e8e3f9a6e
LaTeX: separate terms from their definitions by a CR ( fix #9985 )
2021-12-20 18:47:53 +01:00
David Ham
52aac40148
Update tests to match code changes.
2021-07-04 20:15:56 +01:00
David Ham
180c3c92a4
Test for LaTeX container output.
2021-05-15 21:53:36 +01:00
Takeshi KOMIYA
3937ea816f
Fix #9009 : LaTeX: "release" value with underscore leads to invalid LaTeX
...
The "release" variable is not escaped on the LaTeX output.
2021-03-17 01:24:03 +09:00
Takeshi KOMIYA
3059a999b2
Close #8326 : Rename master_doc to root_doc
...
To describe the purpose more accurately, the `master_doc` is now renamed
to `root_doc`. The old name is still available. But it is recommeneded
to use new one from now on.
2021-02-28 17:10:57 +09:00
jfbu
b9c53c8ca6
Merge branch '3.x' into merge_3.x_into_master
...
Resolved Conflicts:
sphinx/texinputs/sphinx.sty
Some hunks needed to go to sphinx/texinputs/sphinxlatexliterals.py,
others already belonged to split files.
2021-02-09 19:03:38 +01:00
jfbu
4a239bb886
Extra references to explicitly numbered footnote get page indication
...
To achieve this the simplest was to use also the \label/\ref mechanism
as for footnotes typeset using footnotetext. Removing the hack into
footnotehyper internal macro, we use an enriched scope, which will
enable references with same number to each generate correct links.
2021-02-06 22:00:47 +01:00
jfbu
6275a7756f
Use \thesphinxscope mark-up (shorter, and may help trick for page scope)
2021-02-06 13:43:12 +01:00
jfbu
628c58abef
Prepare for scope-limited footnote numbering
2021-02-06 10:45:50 +01:00
jfbu
a0b0a08e38
LaTeX footnotes from caption titles now hyperlinked in PDF
...
This is fifth item of #2616
2021-02-05 16:45:12 +01:00
jfbu
fbafb308b8
Merge branch '3.x' into master_with_merged_3.x
2021-02-02 18:01:55 +01:00
jfbu
7c7032dd05
Extend latex footnotes unit test
2021-02-02 00:10:45 +01:00
Takeshi KOMIYA
339ce2f894
Merge branch '3.x'
2021-01-30 11:49:08 +09:00
jfbu
d6e11b89e9
Fix suppression of needed whiteline, encapsulate into \sphinxAtStartPar
...
Define it to do nothing with lualatex engine
2021-01-29 10:40:50 +01:00
jfbu
185a2d27fe
Fix #8780 : long words in narrow columns may not be hyphenated
...
This is done by adding '\hskip0pt\relax\n' whenever a paragraph starts.
2021-01-29 00:24:44 +01:00
jfbu
99a8b7f37f
LaTeX: update default font configuration
...
This replaces times package with tgtermes and tgheros (clones of Times and
Helvetica with better LaTeX support) and the monospace font from txfonts
package (txtt). This font is better matched with Times-like fonts than
Courier clones.
The changes applies to pdflatex/platex/uplatex.
Fixes : #8711
2021-01-20 23:03:08 +01:00
Takeshi KOMIYA
4b452338f9
Merge branch '3.x'
2021-01-01 13:57:19 +09:00
Takeshi KOMIYA
f996859420
A happy new year!
...
.. note::
$ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \;
$ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
1d9eeedde3
Fix #8508 : LaTeX: uplatex becomes a default setting of latex_engine for Japanese
...
Since v2.3, Sphinx supports uplatex as an alternative of latex_engine for Japanese
docs (refs: #4186 , #6841 ). uplatex is able to build a document without conversion
character encoding internally. It allows using unicode characters in documents.
Additionally, uplatex is compatible with platex (current default latex_engine for
Japanese docs).
This changes the default latex_engine for Japanese document to uplatex.
2020-11-29 15:09:49 +09:00
Takeshi KOMIYA
a00d62c445
Merge branch '3.x'
2020-11-22 16:04:07 +09:00
François Freitag
419e145e36
Make tests/ a Python package
...
Allows relative imports.
2020-11-20 19:43:02 +01:00
Takeshi KOMIYA
3a4ae2092a
Merge branch '3.x'
2020-11-21 01:01:36 +09:00
Takeshi KOMIYA
21a3bd4127
refactor: Fix flake8 violations under tests/ directory
2020-11-15 17:15:40 +09:00
Takeshi KOMIYA
279e547860
Merge branch '3.x'
2020-11-12 02:50:43 +09:00