Closed slusarz closed 1 week ago
Understood the issue. I plan to refactor this part later as there are indeed quite a few problems at the moment.
you can try vitepress-plugin-pagefind@0.4.7
now latest is vitepress-plugin-pagefind@0.4.9
I'm sure it's compatible with the use of dynamic routing
Pages created via dynamic routes (https://vitepress.dev/guide/routing#dynamic-routes) are broken with v0.4.4.
Problem is that new frontmatter code that looks for index exclusion config tries to load non-existent source files.
Example:
This file is auto generated by vitepress from the
/home/foo/docs/release_notes/3.x/[version].md
and/home/foo/docs/release_notes/3.x/[version].paths.js
files.Possible solution (verified working): wrap load code in try/catch, and ignore file if it doesn't exist in source.
From https://github.com/ATQQ/sugar-blog/blob/master/packages/vitepress-plugin-pagefind/src/index.ts#L92: