CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.22k stars 97 forks source link

Allow to specify the path of the config file #635

Open SebouChu opened 2 weeks ago

SebouChu commented 2 weeks ago

Right now, Pagefind lookups for a config file at the directory that you have run the command in.

Is it possible to add an option to specify the config file path? Something like this?

npx pagefind --config config/pagefind.yaml

I didn't learn Rust so I don't really know how to implement this in a PR 😅

bglw commented 2 weeks ago

Good call — this is a good idea.