Skip to content

Commit eab6187

Browse files
committed
set root-selector and exclude-selectors
1 parent cf4a465 commit eab6187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search/pagefind.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function build_search_index(root, docs, config, rootpath)
2929

3030
pattern = "*/{$(join(config.index_versions, ","))}/**/*.{html}"
3131

32-
run(`npx pagefind --site $(root) --glob $(pattern)`)
32+
run(`npx pagefind --site $(root) --glob $(pattern) --root-selector article --exclude-selectors pre`)
3333
end
3434

3535
end

0 commit comments

Comments
 (0)