~dmbaturin/soupault

2 2

soupaul novice

Details
Message ID
<20240217114432.241d0018a96a205701eec9be@posteo.net>
DKIM signature
pass
Download raw message
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,
nik gaffney <nik@fo.am>
Details
Message ID
<f06a3725-471d-4d19-9c5d-cd20ce83fa03@fo.am>
In-Reply-To
<20240217114432.241d0018a96a205701eec9be@posteo.net> (view parent)
DKIM signature
pass
Download raw message

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
Details
Message ID
<a76bb9d0-b30d-4b86-8564-abe5d551cf9d@baturin.org>
In-Reply-To
<f06a3725-471d-4d19-9c5d-cd20ce83fa03@fo.am> (view parent)
DKIM signature
missing
Download raw message
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.
Reply to thread Export thread (mbox)