-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Generate API docs with Doxygen #7896
Conversation
This FWIW probably isn't relevant for the use case here, but since nix already leans on sqlite I figure I should mention that doxygen has an optional/experimental sqlite output :) |
If that is useful for e.g. interactive IDE features, it might indeed be relevant. We are, after all, targeting people that want to work on Nix itself, since this is not part of Nix's public interface. |
I haven't really looked into doxygen-output-consuming ide tooling. It could, but I suspect if it already exists it's probably built on the xml output (it's existed longer, it's default/~stable). But it does make it a little easier to build some kinds of tooling. |
A |
Yeah I would do that after your |
Triaged in the Nix team meeting: We absolutely want this, but don't include it in the manual to avoid making the impression this is somehow a public interface. It's just to improve developer experience. Decision: Please add a it as a new makefile target and separate derivation output. Complete discussion
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-03-03-nix-team-meeting-minutes-37/25998/1 |
OK I think this is ready now! |
Discussed in Nix team meeting:
|
We do. These docs are really helpful for getting an overview of how CLI commands are composed through mix-ins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make clear that it's our internal api.
2048984
to
f4ead8d
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-03-06-nix-team-meeting-minutes-38/26056/1 |
OK @edolstra, I think I fixed everything brought up in the meeting. It's all yours now! |
Oops I forgot to note hydra build products as discussed in the meeting. This is done now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start.
The motivation is as stated in issue NixOS#7814: even though the the C++ API is internal and unstable, people still want it to be well documented for sake of learning, code review, and other purposes that aren't predicated on it being stable. Fixes NixOS#7814 Co-authored-by: Robert Hensing <[email protected]>
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/this-month-in-nix-docs-1-march-2023/26913/1 |
Motivation
The motivation is as stated in issue #7814: even though the the C++ API is internal and unstable, people still want it to be well documented for sake of learning, code review, and other purposes that aren't predicated on it being stable.
Per the brief discussion with the Nix team it is:
Basically, it is done analogous to the coverage CI job, which is similarly a "bonus feature".
Context
Fixes #7814
Many things were modeled off of #7901. Thanks @roberth!
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*