jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

Config should be able to take lists of files, or a directory #9

Open jameslittle230 opened 4 years ago

jameslittle230 commented 4 years ago

with wildcards, placeholders, etc

jameslittle230 commented 3 years ago

All files with a certain file extension within a directory should be indexable, with just the path of the directory given

netstx commented 3 years ago

Can we omit the files = [] configuration portion if I'd like to just parse all markdown files in a directory for example? First use case that comes to mind is static generated blogs made with Hugo, etc.

I guess I am a bit confused on how to achieve this, do you mind sharing a configuration example?

jameslittle230 commented 3 years ago

@netstx - This isn't possible today! The best way of working with Stork and a static site generator is outlined in this documentation page -- I use Eleventy as the example instead of Hugo, but the principles are roughly the same.

More broadly, the open GitHub issue indicates that this feature doesn't exist yet, but that I'd like for it to be built in the future.

netstx commented 3 years ago

Thanks for letting me know!