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.
https://github.com/godotengine/godot-docs
This is the source for Godot’s documentation. You could clone the repo (in reST format) or download one of the releases (in HTML format) offline, so you wouldn’t even need to query anything online.
The documentation is available on github which might be easier to deal with than scraping the website?
https://github.com/godotengine/godot-docs
Out of interest, what additions would you want to include? The editor has documentation built in as far as I understand
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.