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
Jon Dufresne
4f4e225775
Replace all six.BytesIO with io.BytesIO
2018-09-23 18:38:06 -07:00
Jon Dufresne
490e4aed41
Remove unnecessary object from class definitions
...
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Jakob Lykke Andersen
dd711a7dc7
Search: make a difference between fullname and dispname
2018-06-10 17:16:58 +02:00
Takeshi KOMIYA
f7027049b1
Fix flake8 violations
2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
4448902977
Fix #4169 : Chinese language doesn't trigger Chinese search automatically
2017-10-21 01:42:53 +09:00
Takeshi KOMIYA
c57e47e042
Year++
2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
19d2d56e36
Fix IndexBuilder.prune() and load() supports _filenames field
2017-02-21 00:17:38 +09:00
Takeshi KOMIYA
1f973caf06
Fix #3349 : Result of `IndexBuilder.load()
` is broken
2017-02-20 16:33:37 +09:00
Takeshi KOMIYA
cf2061dfad
Fix flake8 violations
2017-01-26 01:13:17 +09:00
shimizukawa
baaef9146d
pytest: remove deprecated with_app decorator functions
2017-01-06 01:14:47 +09:00
Takeshi KOMIYA
e04fe845c7
Fix #3039 : English stemmer returns wrong word if the word is capitalized
2016-10-17 21:09:58 +09:00
Takeshi KOMIYA
53ea1cb280
Fix #3045 : HTML search index creator should ignore "raw" content if now html
2016-10-17 16:08:37 +09:00
Timotheus Kampik
de7c93756c
allow search hits in body text that are in title of other doc #2891 ( #2971 )
...
* allow search hits in body text that are in title of other doc #2891
* shorten lines/add line breaks #2891
* remove out-commented LoC, simplify check #2891
2016-10-11 00:42:41 +09:00
Timotheus Kampik
05ad82ffa8
Merge branch 'master' into fix-stemming-removes-short-words-from-search-results
2016-07-10 11:44:35 +02:00
Takeshi KOMIYA
31c6beb578
Merge pull request #2454 from mgeier/html-sourcelink-txt
...
Add option html_sourcelink_suffix
2016-07-06 01:43:18 +09:00
Takeshi KOMIYA
88c026d0bd
Merge branch 'stable'
2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
80921b2ab8
Fix flake8 violation under tests/
2016-06-12 00:02:11 +09:00
Matthias Geier
3ecb08c5a9
TESTS: Add missing docname in test_search.py
2016-06-07 15:17:12 +02:00
Timotheus Kampik
475ebf6c36
Merge branch 'master' into fix-stemming-removes-short-words-from-search-results
2016-06-04 17:35:16 +02:00