Adam Turner
8878bee000
Replace the header image with a new SVG logo
2023-10-04 16:56:46 +01:00
James Addison
71d3eaee75
Add 'noindex' meta robots tag to the search results page ( #11700 )
2023-10-03 14:15:57 +01:00
Adam Turner
d80eab689d
Fix EM10{1,2} (exception must not use a string)
2023-08-13 22:11:15 +01:00
Adam Turner
0a42d91e7e
Fix `test_{html,latex}_warnings
`
2023-08-12 06:40:55 +01:00
Adam Turner
7e9a2066c2
Be more ephemeral (in anchor link title text)
2023-08-12 05:30:38 +01:00
Adam Turner
8111a3a211
Fix `test_html_inventory
` on Windows
2023-08-12 04:23:33 +01:00
Adam Turner
818895a158
Placate `isort
`
2023-08-12 00:27:13 +01:00
Adam Turner
42a6546404
Move `_file_checksum()
to
sphinx.builders.html._assets
`
2023-08-12 00:20:00 +01:00
Adam Turner
44a7820cd9
Raise an error when local asset files contain a `?
`
2023-08-11 22:07:07 +01:00
Adam Turner
b91d763db8
Fix PT011 (`pytest.raises(ValueError)
` is too broad)
2023-08-10 13:11:25 +01:00
Adam Turner
02e011e4ff
Fix PT006 (use tuples in `pytest.mark.parametrize
`)
2023-08-10 13:00:48 +01:00
Adam Turner
8cd677f929
Add a new test for `_file_checksum
`
2023-08-07 21:51:25 +01:00
Adam Turner
85ffb3b0fd
Fix `test_assets_order
` for Pygments 2.16
2023-08-07 21:51:05 +01:00
Adam Turner
49d8304670
Start using `pathlib.Path
and deprecate
sphinx.testing.path
` ( #11526 )
2023-07-28 00:39:12 +01:00
Adam Turner
5cf3dce36e
Deprecate `md5
and
sha1
wrappers in
sphinx.util
` ( #11512 )
2023-07-25 02:29:28 +01:00
Adam Turner
ae206694e6
html builder: Append CRC32 checksum to asset URIs ( #11415 )
2023-05-11 05:19:31 +01:00
Adam Turner
ad473730a3
Remove HTML 4 support ( #11385 )
2023-04-28 11:32:12 +01:00
James Addison
59de8d5202
Revert "Support and prefer `.jinja
to
_t
` for static templates ( #11165 )" ( #11329 )
...
This reverts commit 5d13215b58
.
2023-04-23 19:06:44 +01:00
James Addison
5d13215b58
Support and prefer `.jinja
to
_t
` for static templates ( #11165 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-04-07 18:07:15 +01:00
Jeremy Maitin-Shepard
7a4ce71f6b
Include source in highlighting warnings ( #11150 )
...
If pygments fails to lex a source string as the specified highlight
language, Sphinx prints a warning. Previously, that warning did not
include the actual source text, although it does include location
information.
However, in some cases the location information may be missing, there
may be multiple highlighted literals on the same line, or the rST is
automatically generated somehow. In such cases, it can be difficult
to determine the source text that led to the error.
With this change, the source text is included in the warning.
2023-03-17 15:32:27 +00:00
Adam Turner
6c56988979
Unescape quotation marks where possible
2023-02-18 02:16:50 +00:00
Adam Turner
13442f6901
Fix pytest style issues
2023-02-18 02:16:50 +00:00
Adam Turner
c8f4a03dac
Fix COM812
2023-02-18 01:58:05 +00:00
Adam Turner
2a7c40d07f
Undo parallel image changes
2023-01-10 14:53:17 +00:00
Adam Turner
a1cd19e601
Fix copying images under parallel execution ( #11100 )
2023-01-07 17:35:21 +00:00
Adam Turner
a9b0f2708b
Cache doctrees more efficiently
2023-01-04 05:46:23 +00:00
Adam Turner
4032070e81
Run pyupgrade ( #11070 )
2023-01-02 00:01:14 +00:00
Rotzbua
ede68fa423
Remove obsolete HTML keyword `link rel="shortcut"
` ( #11069 )
...
The link relationship keyword `shortcut` does not appear in the HTML 5 specification [1].
It was used by historic browsers (i.e. Internet Explorer 6) which Sphinx no longer supports.
[1]: HTML5 Specification, 4.6.7.8 Link type "icon", https://html.spec.whatwg.org/#rel-icon
2023-01-01 22:18:13 +00:00
Adam Turner
a6257fc83b
Make copyright text inclusion test date-independent
...
Improve clarity on what the test is looking for in the footer
2023-01-01 19:38:55 +00:00
Adam Turner
920828fe35
Run the `pyupgrade
` tool
2022-10-17 22:39:09 +01:00
Adam Turner
592b46c431
Revert `html_codeblock_linenos_style
` removal ( #10922 )
2022-10-16 16:50:53 +01:00
Adam Turner
e70a0fac6d
Merge branch '5.x'
...
# Conflicts:
# .github/workflows/main.yml
# CHANGES
# sphinx/__init__.py
# sphinx/domains/c.py
2022-10-16 11:24:18 +01:00
Eric Wieser
fa6d42597f
URI-escape image filenames ( #10268 )
...
Without this change, local images with `#` in their name result in incorrect URLs
There is already a similar call to `urllib.parse.quote` for file downloads, suggesting this is a sensible approach.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Takeshi KOMIYA <i.tkomiya@gmail.com>
2022-10-13 17:37:07 +01:00
Martin Liška
e008e16200
Revert "Fix detection for out of date files ( #9360 )" ( #10908 )
...
This reverts commit b1390c4191
.
The change is reverted because some builders don't have
fine-grained support for outdated docs:
https://github.com/sphinx-doc/sphinx/issues/10903#issuecomment-1273199352
2022-10-13 13:16:17 +01:00
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
Martin Liška
0a91adb64d
Extend cross referencing options with values ( #10883 )
...
This change means that text following `=`, `[=`, or ` ` is ignored when
searching for a corresponding option directive to an option cross reference
role. These are commonly used options, for example `--profile=path`,
`--profile[=path]` or `--profile path`.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-02 15:50:53 +01:00
Adam Turner
63dea6172a
Merge branch '5.x'
...
# Conflicts:
# sphinx/locale/__init__.py
2022-09-30 16:15:24 +01:00
Martin Liska
29e6adab12
extend option directive syntax
...
One can cross-reference an option value: :option:`--module=foobar`.
2022-09-27 19:02:45 +01:00
Adam Turner
bb62d2a2ee
Increase minimum Docutils to 0.18
2022-09-27 18:31:47 +01:00
Adam Turner
080517ce55
Increase minimum Docutils to 0.17
2022-09-27 18:31:47 +01:00
Adam Turner
f01d50d695
Merge branch '5.x'
...
# Conflicts:
# CHANGES
# doc/conf.py
# sphinx/__init__.py
# sphinx/builders/html/__init__.py
# sphinx/domains/python.py
# tests/test_build_html.py
2022-09-25 21:36:30 +01:00
Adam Turner
c7c0e4048d
Split out sphinx_highlight.js
2022-09-24 15:10:57 +01:00
Adam Turner
58a4449707
Deprecate HTML 4 support ( #10843 )
2022-09-23 18:12:54 +01:00
Adam Turner
14c9b40f15
Merge branch '5.x'
...
# Conflicts:
# setup.py
# sphinx/application.py
# sphinx/environment/__init__.py
# sphinx/ext/autodoc/directive.py
# tests/test_build_html.py
2022-09-09 09:58:24 +01:00
Adam Turner
f35d2a6cc7
Remove Pygments compatability code ( #10812 )
2022-09-09 05:08:48 +01:00
Adam Turner
a4d41aa889
Merge branch '5.x'
2022-07-17 21:53:12 +01:00
Takeshi KOMIYA
e7fc03bce2
Allow specifying multiple CSS files in themes ( #10465 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-07-17 12:27:43 +01: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
Jean-François B
80198e82aa
Merge branch '5.x' into master
...
Resolved merge conflicts:
sphinx/ext/extlinks.py
sphinx/ext/napoleon/docstring.py
(and removed from the latter a now unused import for flake8 F401
compliance)
2022-06-30 15:00:16 +02:00
Martin Liška
ea46202565
Fix parsing of options with enabled option_emphasise_placeholders ( #10565 )
2022-06-19 22:51:48 +01:00