I would like to get a local/cached version of the documentation (ideally in a pure text or troff format). i really don’t know the elm ecosystem at all but i imagine there is no such thing available.
if there isn’t, is there a way to query https://package.elm-lang.org/ with a rest API to know what is the URL of the page i need to download locally.
Hi @eiro, all packages that you’ve already installed live somewhere in ~/.elm and thanks to this, tools like dmy/elm-doc-preview are able to retrieve their documentation for local usage.
Once installed, you can try the command elm-doc-preview from anywhere and it should open a web page served by a localhost server with the documentation. I also like the --port and --no-browser options.
In addition, if you run elm-doc-preview from an elm project of yours, it will provide the documentation for that project.
I don’t use Zeal, so I can’t tell you that for sure - but you should be able to do it like this:
You can do this using Edit > Options > Docsets > Download.
It is a User Contributed docset, so maybe it will be somewhere deeper than on the main page, hard to tell. Let me know if you have found it and how, please.
EDIT: The URL must be “Feed URL (.xml)” and not “Feed URL”. Both will add the docset, but without .xml in URL it will be saved as .docset instead of Elm.docset.
i just had to seat there and read the thread! still not in my terminal
but zeal is much closer than what i expected and there are other docs i
can download that way.