Repository navigation
v1.6.0 #1404
v1.6.0
#1404
Replies: 1 comment
|
Awesome update! 👍 mkdocs-materialx also has Pagefind search tightly integrated — you could also use it to generate the Pagefind docs. Give it a try here: https://jaywhj.github.io/mkdocs-materialx/differences.html |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
👋 A little overdue, but this release knocks out a healthy selection of bug reports, and includes a lot of work from the community. Thanks to everyone who contributed ❤️ - @bglw
Multilingual Segmentation
Pagefind's extended build now segments Chinese, Japanese, and Thai pages with ICU4X, replacing the previous dependency (PR #1383). Alongside producing a smaller binary, ICU4X segments a lot closer to the
Intl.Segmenterused in the browser on the search query (which is ICU4C). This closes out a mixture of latent and reported issues where the different segmentation between indexing and searching makes for iffy results. It's not perfect yet, but it's a darn sight closer.Bonuses:
Fewer Fragment Files
Pagefind now has an option to limit the total number of fragment files produced, for hosting providers that cap the number of uploaded files. Contributed in PR #1020 — thanks @yakovsh !
This limit is set with
--max-fragments/max_fragments, and applies per language. When applied, multiple fragments are bundled together and loaded as a set when required.See 📘 Max fragments.
Explicit Sub-Result Titles
Added support for explicit sub-result titles. Any element with both an
idand adata-pagefind-titleattribute can be used as a sub-result (PR #1282 — thanks @samuel-williams-shopify !)See 📘 Defining a sub result explicitly.
Component UI
sortattribute to<pagefind-config>, to order results by a sort key (PR Add a sort attribute to <pagefind-config> #1326)max-sub-resultsattribute to<pagefind-searchbox>(PR Add max-sub-results attribute to <pagefind-searchbox> #1324)placeholdersetter to<pagefind-searchbox>and<pagefind-modal-trigger>(PR Add a placeholder setter to the trigger and searchbox components #1321)configureInstancenow applies to an instance that already exists but has not loaded yet (PR Apply configureInstance options to existing unloaded instances #1323)Search Results & Options
excerptEllipsisoption to mark the truncated ends of excerpts (PR Add an opt-in excerptEllipsis search option #1320)"cafe latte"can match a page containingcafé latte(PR Fix exact phrase matching across diacritic variants #1386 — thanks @sean0407 !)imageandimage_altmetadata (PR Decode HTML entities in the automatic image metadata #1393 — thanks @digilist !)Indexing & Performance
flatMapfor better performance and memory management 🚄 #1238 — thanks @sanjaiyan-dev !)Fixes & Tweaks
sysconfig.is_python_buildcan be found by searchingis_python_build--exclude-selectorshard-erroring when a single selector could not be parsed (PR fix(pagefind): skip exclude selectors that cannot be parsed #1312 — thanks @dualfroz !)--verbose(PR Only log per-page warning details when verbose #1314)UI Translations
This discussion was created from the release v1.6.0.
All reactions