I want to integrate the online documentation a bit nicer into the editor itself. Is it somehow possible to query that page and get the contents of the searched-for entries?

Best case would be, if we can get the queried site content as JSON, that’d be nice, but very unlikely I think.

  • Smorty [she/her]@lemmy.blahaj.zoneOP
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    edit-2
    2 months ago

    It is true that the editor has the build in class reference. I have already tried to retrieve the text from when that pops up, and I have managed to do that partly, however it doesn’t segment anything. The reason why I want a cool format like JSON or maybe YAML is that I can parse it and separate it into variables, which can then be nicely display in smaller UI elements.

    secret reason why I want to segment the docs (CW: overhyped topic)

    Okay, don’t tell this to anyone, because many people don’t want to hear anything about this topic, which is reasonable: it’s abnoxious and overhyped.

    whispering: The reason I want to segment the docs is because I want to embed them and use them as structured input for a locally running LLM for better context.

    shocked crowd sound

    I already made two posts about this on here: This one and this one.