pelican-plugins / search

Pelican plugin that adds site search capability
47 stars 9 forks source link

add other options to stork.toml #4

Closed lioman closed 1 year ago

lioman commented 2 years ago

Feature Request

Stork has some other options in stork.toml to control index like stemming or url_prefix. It is needed if your pelican content is not written in English or the site has a certain structure.

Implementation options

  1. pipe all current settings to stork in a one to one matter like STORK_URL_PREFIX will be url_prefix in input
  2. add one setting like STORK_INPUT_OPTIONS to have all settings in one place.

The benefit of the latter is that we do not need to change anything, if stork add new options. But it is perhaps a bit more complex from a user perspective and easier to mess up.

I'm willing to implement it, but just wanted to discuss options first

lioman commented 2 years ago

Just thought about it again and I'm really in favour of the second option. I will implement it like this, if nobody has concerns.