-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .crystaldoc.yml
config file for configuring docs generator
#8
Comments
It would also be cool to have a way to canonicalize projects if a For example, I mostly host my projects on GitLab and often create GitHub mirrors for greater visibility. Could also help with forks - if a project doesn't un-canonicalize in the |
@BlobCodes |
I don't think generating docs should have any requirements except for the source code. Generating code for documented APIs via macros seems like a very questionable endeavour. Especially if that means the APIs are platform specific. Then a central API documentation doesn't make much sense because it can only represent one version. A possible workaround could be to have one or multiple shards that each contains the generated code for a specific platform and thus provides API docs for that platform. The only relevant configuration that could be useful in some cases is a specific file as entry point for the doc generator. |
The question of shards with platform-specific APIs probably deserves a separate discussion. Currently doc generation does not really acknowledge that the same source code could produce different APIs depending on flags and we expect docs to be static.
There are multiple issues with mass-generating code at compile time. For example, it makes it impossible to search or link the sources because they're never stored anywhere. It's also not very efficient to generate sources on every build. That makes all the source code available without requiring any dependendencies, which enables practically all compiler functions except actual linking. It enables doc generation, but also cross-compilation and code analysis. |
Add a
.crystaldoc.yml
file that lists config options for crystaldoc, namely what apt packages should be installed before executing, and what commands should be executed before building docs. This would allow GTK4 binding docs to be builthttps://forum.crystal-lang.org/t/crystaldoc-info-hosted-shard-api-documentation/6018/5?u=nobodywasishere
https://hugopl.github.io/gtk4.cr/
The text was updated successfully, but these errors were encountered: