Adam Turner
1094556afb
Bump Ruff to 0.7.2
2024-11-03 02:55:19 +00:00
James Addison
b75e695631
Write 'searchindex.js' using minimal JSON separators ( #13062 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-24 17:54:41 +01:00
Adam Turner
3920af4700
Enable the PLW0603 lint in Ruff
2024-10-19 19:05:42 +01:00
danieleades
7546545876
Further improve typing in tests/
( #12816 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-03 20:17:40 +01:00
Adam Turner
76110c3ea0
Add `_DomainsContainer
` for better static typing ( #12783 )
...
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
2024-09-18 03:50:27 +01:00
Adam Turner
0b17bb1029
Always define the builder and `testroot
when using the
app
` fixtureture ( #12775 )
2024-08-12 22:34:03 +01:00
Adam Turner
d03156e078
Format `tests/
` ( #12760 )
2024-08-11 14:58:56 +01:00
James Addison
84c11b2f66
Improve JavaScript test fixture generation ( #12531 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-07-10 19:00:34 +01:00
James Addison
7eb77f2372
HTML Search: omit anchor reference from document titles in the search index. ( #12047 )
2024-07-08 13:34:11 +02:00
James Addison
568e26c797
[tests] JavaScript: refactor test fixtures ( #12102 )
...
This PR allows to serve JavaScript test fixtures using a fixture-based logic as for Python tests.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-06-13 13:07:46 +02:00
Adam Turner
b30088d68f
Bump Ruff to 0.3.7
2024-04-12 21:04:51 +01:00
Adam Turner
462404cb25
Organise tests into directories
2024-01-17 03:56:35 +00:00
James Addison
95fb0e5e57
Ensure that document titles are sorted in `searchindex.js
` ( #11888 )
2024-01-17 01:08:29 +00:00
Pietro Albini
8e768e6c23
Make `searchindex.js
deterministic ( #11665 )
2023-09-16 04:36:51 +01:00
Adam Turner
1fae1470a4
Fix SLOT002 (subclasses of collections.namedtuple() should define `__slots__
`)
2023-08-13 22:32:46 +01:00
Martin Liška
fc4fead40d
Allow parallel execution of tests in `test_search
` ( #11292 )
...
Add various ``app.builder.build_all()`` calls.
2023-04-05 13:54:09 +01:00
Martin Liška
8e26d78b79
Remove hidden state from `test_nosearch
` ( #11291 )
...
Currently, ``test_nosearch`` depends on ``html_search_language='de'``
from a previous test and thus fails if run individually.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-04-05 13:43:24 +01:00
Adam Turner
c8f4a03dac
Fix COM812
2023-02-18 01:58:05 +00:00
Jeremy Maitin-Shepard
44684e1654
Restore correct parallel search index building ( #11192 )
...
Revert b32841e153
to fix parallel search index building
The image-related changes were already reverted in
2a7c40d07f
,
but the search index changes also need to be reverted.
It would be nice to support parallel search index building, but the
necessary support for merging the search indices produced by each
process needs to be added first.
2023-02-15 05:26:10 +00:00
Adam Turner
087522cf79
Rewrite IndexBuilder loading
2023-01-02 17:40:38 +00:00
Adam Turner
8ae81839be
Support searching for index entries ( #10819 )
2022-09-20 22:08:03 +01:00
Martin Liška
7da60f2353
search: support searching for (sub)titles ( #10717 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2022-09-09 02:28:29 +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
Adam Turner
971040b4b7
Merge branch '5.x' into fix-warnings
...
# Conflicts:
# tests/test_search.py
2022-05-02 17:05:42 +01:00
Adam Turner
24e3b7c8c8
.read_text()
-> .read_text(encoding='utf8')
2022-04-27 03:04:19 +01:00
Adam Turner
b536ffabc1
Deprecate sphinx.util.jsdump
2022-04-27 02:59:50 +01:00
Adam Turner
a8827f3329
Catch DeprecationWarning
for docutils.frontend.OptionParser
2022-04-22 04:21:38 +01: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
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
Jakob Lykke Andersen
b6e60d4993
search, store objects as array to retain all
2021-09-25 10:59:49 +02:00
Jakob Lykke Andersen
356583fe8f
search, test update
2021-09-25 10:59:24 +02: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
279e547860
Merge branch '3.x'
2020-11-12 02:50:43 +09:00
François Freitag
0949735210
Sort imports with isort
...
Keep imports alphabetically sorted and their order homogeneous across
Python source files.
The isort project has more feature and is more active than the
flake8-import-order plugin.
Most issues caught were simply import ordering from the same module.
Where imports were purposefully placed out of order, tag with
isort:skip.
2020-11-11 13:19:05 +01:00
Mateusz Lapsa-Malawski
2aa54e54f5
improve test_nosearch
2020-08-07 19:30:12 +01:00
Mateusz Lapsa-Malawski
7aa52e658c
update tests
2020-08-07 19:22:17 +01:00
Takeshi KOMIYA
30b0361f9c
Close #7025 : html search: full text search can be disabled via metadata
2020-02-22 17:34:44 +09:00
Takeshi KOMIYA
4dd8b1022f
test: Use read_text() and read_bytes()
2020-02-01 11:58:51 +09:00
Takeshi KOMIYA
eaf495c3c4
A happy new year!
2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
76e9f57c2e
Merge branch '1.8'
2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75
A happy new year!
2019-01-02 16:00:30 +09:00
jfbu
32d57b8637
Merge branch '1.8'
...
resolved Conflicts:
doc/development/tutorials/todo.rst
sphinx/locale/__init__.py
sphinx/search/zh.py
2018-12-28 12:50:20 +01:00
Timotheus Kampik
221614654f
#5605 fix Chinese search index ( #5611 )
...
generate search index for Latin words correctly if search language is Chinese
2018-12-25 18:41:52 +01:00
Jon Dufresne
bade33c7e4
Remove unnecessary encoding cookie from Python source files
...
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:
https://docs.python.org/3/howto/unicode.html#the-string-type
> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...
Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Jon Dufresne
4cda774566
Improve JS handling in test_search.py
...
- Reuse jsload() in all tests to reduce duplication.
- Fix -2 index to -1, to include the entire JSON string. Was previously
chopping off the final '}'.
- Assert the serialized string ends with a closing parenthesis
2018-11-13 21:25:46 -08:00