Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made search case insensitive #2374

Merged
merged 21 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b858db5
- Changed LunrJs to MinisearchJs for client-side search
Hetarth02 Jul 5, 2023
34303e0
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl i…
Hetarth02 Jul 16, 2023
1fb8e07
- Updated the duplication issue
Hetarth02 Jul 16, 2023
724bd89
- Corrected typo
Hetarth02 Jul 16, 2023
bb1dbc4
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl
Hetarth02 Aug 24, 2023
defe107
New Search Modal UI (#2202)
Hetarth02 Aug 24, 2023
f32d6de
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl
Hetarth02 Aug 24, 2023
984ef8c
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl
Hetarth02 Sep 26, 2023
149bdd0
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl
Hetarth02 Oct 15, 2023
24d8a5f
Merge branch 'JuliaDocs:master' into master
Hetarth02 Nov 4, 2023
60ca700
Merge branch 'JuliaDocs:master' into master
Hetarth02 Nov 10, 2023
be00b02
Merge branch 'JuliaDocs:master' into master
Hetarth02 Nov 13, 2023
b2feabd
Merge branch 'JuliaDocs:master' into master
Hetarth02 Nov 13, 2023
85828de
Merge branch 'JuliaDocs:master' into master
Hetarth02 Dec 10, 2023
c055ceb
- Fixed search case sensitivity
Hetarth02 Dec 10, 2023
4a514c2
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl i…
Hetarth02 Jan 19, 2024
a89e356
- Removed changelog extra content due to EOL (End of line) mismatch
Hetarth02 Jan 19, 2024
e250ebb
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl
Hetarth02 Jan 23, 2024
9fcdd32
Merge branch 'master' of https://github.com/Hetarth02/Documenter.jl i…
Hetarth02 Jan 23, 2024
29c06d6
Apply suggestions from code review
mortenpi Jan 25, 2024
588273e
Update CHANGELOG.md
mortenpi Jan 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed
mortenpi marked this conversation as resolved.
Show resolved Hide resolved

* Made search case insensitive ([#2373], [#2374])
mortenpi marked this conversation as resolved.
Show resolved Hide resolved
* The search in the HTML output now prioritizes prefix matches. ([#2203], [#2375])

### Fixed
Expand Down Expand Up @@ -1776,12 +1775,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#2348]: https://github.com/JuliaDocs/Documenter.jl/issues/2348
[#2364]: https://github.com/JuliaDocs/Documenter.jl/issues/2364
[#2365]: https://github.com/JuliaDocs/Documenter.jl/issues/2365
<<<<<<< HEAD
[#2373]: https://github.com/JuliaDocs/Documenter.jl/issues/2373
[#2374]: https://github.com/JuliaDocs/Documenter.jl/issues/2374
[#2375]: https://github.com/JuliaDocs/Documenter.jl/issues/2375
[#2406]: https://github.com/JuliaDocs/Documenter.jl/issues/2406
[#2408]: https://github.com/JuliaDocs/Documenter.jl/issues/2408
=======
[#2375]: https://github.com/JuliaDocs/Documenter.jl/issues/2375
>>>>>>> origin/master
[JuliaLang/julia#36953]: https://github.com/JuliaLang/julia/issues/36953
[JuliaLang/julia#38054]: https://github.com/JuliaLang/julia/issues/38054
[JuliaLang/julia#39841]: https://github.com/JuliaLang/julia/issues/39841
Expand Down
4 changes: 4 additions & 0 deletions assets/html/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ let index = new minisearch({
word = word
.replace(/^[^a-zA-Z0-9@!]+/, "")
.replace(/[^a-zA-Z0-9@!]+$/, "");

word = word.toLowerCase();
}

return word ?? null;
Expand All @@ -150,6 +152,8 @@ let index = new minisearch({
word = word
.replace(/^[^a-zA-Z0-9@!]+/, "")
.replace(/[^a-zA-Z0-9@!]+$/, "");

word = word.toLowerCase();
}

return word ?? null;
Expand Down
Loading