Hi,
I'm recent user of soupalt. I previously used some other static site generators. I have two questions in mind:
when I create file site/a.html, then soupault stores in output_dir/a/index.html. Is there any way to store in output_dir/a.html (that is preserve relative location)
another thing is search. Did someone implemented a search field, like mdbook does. I know we need some kind of preprocessor before but I want to search as-in-type in my site.
Thanks in advance,
On 2024-02-17 11:44, Xavier B. wrote:
> Hi,> > I'm recent user of soupalt. I previously used some other static site generators. I have two questions in mind:> > when I create file site/a.html, then soupault stores in output_dir/a/index.html. Is there any way to store in output_dir/a.html (that is preserve relative location)
yes. you can try setting clean_urls = false
it's described in the manual
-> https://soupault.app/reference-manual/#clean-urls
z
On 2/17/24 10:51, nik gaffney wrote:
>>> On 2024-02-17 11:44, Xavier B. wrote:>> Hi,>>>> I'm recent user of soupalt. I previously used some other static site >> generators. I have two questions in mind:>>>> when I create file site/a.html, then soupault stores in >> output_dir/a/index.html. Is there any way to store in >> output_dir/a.html (that is preserve relative location)>> yes. you can try setting clean_urls = false> it's described in the manual> -> https://soupault.app/reference-manual/#clean-urls>> z>another thing is search. Did someone implemented a search field, like >mdbook does. I know we need some kind of preprocessor before but I want >to search as-in-type in my site.
I've heard of Stork and similar Bloom filter based things but I haven't
tried to use them yet. What exactly do people normally feed them as
input? I'd imagine the best input would be just the page text stripped
of all the formatting metadata like HTML tags or even Markdown
formatting symbols. Or do they feature built-in workarounds for those cases?
Another question is if it's possible to feed them indexing data input
gradually on a per-page basis.
If gradual input is possible, I'd imagine that one could use a hook
(e.g., https://soupault.app/reference-manual/#hooks-post-index) to
extract text nodes from the page's content container (using
https://soupault.app/reference-manual/#HTML.strip_tags , for example)
and feed it to the indexer.