docs icon indicating copy to clipboard operation
docs copied to clipboard

Documentation "Search" for script section (ie. >D) does NOT show existing content

Open mi-hol opened this issue 11 months ago • 8 comments

Example:

Searching for script section gives "no matching documents" despite the search string being shown in Table of Content on the right. Maybe a configuration issue related to special characters like ">" is causing this issue?

Image

mi-hol avatar Jan 17 '25 11:01 mi-hol

PR https://github.com/tasmota/docs/pull/1460 uncovered an issue with theme mkdocs/material search being unsupported since 2020. Details are published in developer's blog post severe issues in theme "material"

Today I had a reboot loop with the text: "FRC: Some settings have been reset (3)". I seemed to remember having read about this somewhere, but did not manage to find it.

There is nothing worse than existing documentation that can't be found!

Never had such a bad search experience with documentation using theme "Read the Docs"

My journey:

  1. searching for exact wording =>0 hits

Image

  1. Relaxing the wording =>0 hits

Image

  1. allowing all words => just has way too many hits for being useful!

Image

mi-hol avatar Feb 08 '25 15:02 mi-hol

Usually it works well if you have a good single search word like FRC, but no hits.

Combined words can be searched like +boot +loop or "boot" "loop" (Boot loops are what causes Tasmota to reset features until able without crashing again)

sfromis avatar Feb 13 '25 21:02 sfromis

Usually it works well if you have a good single search word like FRC

Unfortunately nearly all "sections" in Tasmota scripting language are only 2 char long (i.e. ">B") but material-theme search requires 3 chars as minimum for search to work!

@blakadder it seems you are the maintainer focusing on documentation, may I kindly ask for your view regarding future doc framework?

mi-hol avatar Feb 14 '25 12:02 mi-hol

Usually it works well if you have a good single search word like FRC

Unfortunately nearly all "sections" in Tasmota scripting language are only 2 char long (i.e. ">B") but material-theme search requires 3 chars as minimum for search to work!

@blakadder it seems you are the maintainer focusing on documentation, may I kindly ask for your view regarding future doc framework?

If you are you asking me if I intend to change the entire documentation framework to fit the needs of a single documentation page while Ctrl+F exists?

No.

blakadder avatar Feb 14 '25 12:02 blakadder

To be clear, I was only responding to your troubles with searching for a sentence, not about the reasonably useless searching for >D when there is only one page to look into for such.

sfromis avatar Feb 14 '25 12:02 sfromis

change the entire documentation framework to fit the needs of a single documentation page

that was from my view just the last "nail in the coffin" of theme "material". It seems PR https://github.com/tasmota/docs/pull/1460 uncovering an issue with theme mkdocs/material search being unsupported since 2020. did go unnoticed. Details are published in developer's blog post severe issues in theme "material"

mi-hol avatar Feb 14 '25 17:02 mi-hol

the reasonably useless searching for >D when there is only one page to look into for such.

Could you perhaps put yourself "into the shoes of a newbie" trying to understand a Tasmota script found in a forum. Now considering that perspective, would you mind to elaborate on that?

mi-hol avatar Feb 15 '25 09:02 mi-hol

The point is that users searching for >D would not be "raw newbies", but come from a basis of wanting to use the scripter feature.

Sure, the rudimentary docs search box is far from being a "real search engine", for such you still have https://www.google.com/search?q=tasmota+">d" to zone in on relevant pages. And ctrl-F inside pages, of course.

More generally, while there is a Tasmota docs page about the scripter, it is not really great for wanting to understand a random script without already having spent a learning curve to get into the concepts of how the thing works. Meaning already knowing where the relevant docs page is.

sfromis avatar Feb 15 '25 11:02 sfromis