Closed kdm9 closed 1 year ago
Hi @kdm9 ,
I like the idea!
I think we should put the functionality behind an option flag (because explicit > implicit), but we can put it to True
by default. Maybe search_page_directory_fallback
We also need to update docs/options.md
. And of course add some unit tests (at 11k downloads/month I want to be sure changes don't break things).
Would you like to continue working on this?
@timvink great, thanks. I'll remove the prints (oops 😳) and implement the option and update the docs, but it would be great if I could leave the tests to you (I'm unfamiliar with the test suite, and having you write them might uncover issues I would miss)
Thanks @kdm9 ! Will tweak it a bit further and write unit tests & include it in next release.
Just released v2
.
Refactored your code & rewrote the docs for more clarity. It's a great change that makes a lot of sense. Thanks again for pushing this!
Hello, and thanks for a neat plugin.
The attached patch allows paths to be specified relative to a page's source. For example:
Specifically, we check if the file is in the configured data path, and iff not found there, check relative to the page's source directory.