rust/src/librustdoc/html
bors 7c3f0d6f30 Auto merge of #107141 - notriddle:notriddle/max-lev-distance-2023, r=GuillaumeGomez
rustdoc: compute maximum Levenshtein distance based on the query

Preview: https://notriddle.com/notriddle-rustdoc-demos/search-lev-distance-2023/std/index.html?search=regex

The heuristic is pretty close to the name resolver, maxLevDistance = `Math.floor(queryLen / 3)`.

Fixes #103357
Fixes #82131

Similar to https://github.com/rust-lang/rust/pull/103710, but following the suggestion in https://github.com/rust-lang/rust/pull/103710#issuecomment-1296360267 to use `floor` instead of `ceil`, and unblocked now that https://github.com/rust-lang/rust/pull/105796 made it so that setting the max lev distance to `0` doesn't cause substring matches to be removed.
2023-02-06 02:09:00 +00:00
..
highlight rustdoc: rename syntax highlighting CSS class attribute to attr 2022-10-31 13:55:39 -07:00
length_limit Remove from librustdoc and clippy too 2023-01-27 20:44:19 -08:00
markdown Extend rustdoc hashtag prepended line test 2022-12-11 14:39:09 +01:00
render rustdoc: trait bound formatting 2023-02-04 19:10:04 +01:00
static Auto merge of #107141 - notriddle:notriddle/max-lev-distance-2023, r=GuillaumeGomez 2023-02-06 02:09:00 +00:00
templates rustdoc: remove meta keywords from HTML 2023-01-30 12:20:06 -07:00
toc Format the world 2019-12-22 17:42:47 -05:00
url_parts_builder Document and test UrlPartsBuilder::push_fmt 2022-01-14 12:05:35 -08:00
escape.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
format.rs rustdoc: trait bound formatting 2023-02-04 19:10:04 +01:00
highlight.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
layout.rs rustdoc: remove meta keywords from HTML 2023-01-30 12:20:06 -07:00
length_limit.rs Remove from librustdoc and clippy too 2023-01-27 20:44:19 -08:00
markdown.rs Remove from librustdoc and clippy too 2023-01-27 20:44:19 -08:00
mod.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
sources.rs rustdoc: remove meta keywords from HTML 2023-01-30 12:20:06 -07:00
static_files.rs Inline CSS background images directly into the CSS 2023-02-01 11:51:02 +01:00
tests.rs rustdoc: avoid many Symbol to String conversions. 2022-01-14 11:57:18 -08:00
toc.rs fix clippy perf lints 2022-05-24 13:35:54 -04:00
url_parts_builder.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00