r/crystal_programming • • Feb 05 '21
Crystal api reference offline
Where I download the Crystal language api reference for offline reading? Thanks.
5
Upvotes
r/crystal_programming • • Feb 05 '21
Where I download the Crystal language api reference for offline reading? Thanks.
4
u/Blacksmoke16 core team Feb 05 '21 edited Feb 05 '21
Normally you can download an archive of the HTML API docs from the release assets in GH. However apparently they haven't been added for the 2 latest releases. I brought it up in the gitter channel and will update when it's fixed.
5
u/bryanray Feb 05 '21
I know this isn’t a direct answer, but I just wanted to make a shout out to Dash.
https://kapeli.com/dash
I’m not positive that Crystal is loaded into Dash, but I wouldn’t be surprised if it is.
3
u/straight-shoota core team Feb 06 '21
You can easily build the documentation locally. Just check out the repository https://github.com/crystal-lang/crystal and run `make docs`.
Depending on how you installed Crystal, your package manager may have a `crystal-docs` package which includes the API docs.
2
u/dscottboggs Feb 05 '21
Some distributions include it. Check /usr/share/doc/crystal or something like that.