You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that searching for starts should provide a single result for string.starts_with, from the version of the docs that you're looking at.
This might mean that separate search indexes will need to be maintained, and I don't know if Zola supports that. Or maybe there'll be some trick for filtering the index, but then I'm worried that the index will grow too large over time as new versions are added.
So there might need to be some kind of manual solution. There's a lot of preprocessing of the docs going on in xtask, so maybe a search index could be generated there, rather than relying on Zola's solution.
The text was updated successfully, but these errors were encountered:
It seems like a manually generated search index will be needed. convert_docs in xtask parses the original Koto markdown docs and prepares them for the website, and it might be simple enough to extend the logic so that it adds entries to a search index. A separate xtask command would also be ok if it would be simpler.
The Koto REPL's help command also builds up its search index by parsing the markdown docs, see here for the implementation.
It would be great to be able to search the docs.
Zola supports generating a search index, but I don't know how that will work with versioned docs.
I think that searching for
starts
should provide a single result forstring.starts_with
, from the version of the docs that you're looking at.This might mean that separate search indexes will need to be maintained, and I don't know if Zola supports that. Or maybe there'll be some trick for filtering the index, but then I'm worried that the index will grow too large over time as new versions are added.
So there might need to be some kind of manual solution. There's a lot of preprocessing of the docs going on in
xtask
, so maybe a search index could be generated there, rather than relying on Zola's solution.The text was updated successfully, but these errors were encountered: