crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.26k stars 1.61k forks source link

Fix generate docs for builtins `HOST_TRIPLE` and `TARGET_TRIPLE` #14570

Closed straight-shoota closed 2 months ago

straight-shoota commented 2 months ago

When we originally added these constants in #13823 we overlooked that we also need to make the doc generator aware they are builtins which should be included in the doc output. This is of course a bit brittle setup and we should try to find a better solution, but for now this patch fixes that these two constants show up in the API docs.

crysbot commented 2 months ago

This pull request has been mentioned on Crystal Forum. There might be relevant details there:

https://forum.crystal-lang.org/t/how-to-get-system-and-architecture/6819/2