Skip to content
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

Minimal documentation of cgp crate #45

Open
marvin-hansen opened this issue Dec 29, 2024 · 0 comments
Open

Minimal documentation of cgp crate #45

marvin-hansen opened this issue Dec 29, 2024 · 0 comments

Comments

@marvin-hansen
Copy link

From the website:

"provide at least minimal documentation inside the cgp crate,
to help onboarding programmers to projects that use the cgp crate."
https://contextgeneric.dev/blog/early-preview-announcement/#document-the-cgp-crate

The goal is, to add the bare minimum to core crates to get programmers started
and guide contribors.

Non-goal is explaining concept, for that the book remains the reference.

marvin-hansen added a commit to marvin-hansen/cgp that referenced this issue Dec 29, 2024
…cro components

Addresses issue:
contextgeneric#45

Add detailed Rust docstrings to core macro implementation files, improving code
understanding and maintainability. Documentation follows Rust best practices with
clear examples and detailed explanations.

Each file's documentation includes:
- Clear overview and purpose
- Detailed function/struct documentation
- Arguments and return value descriptions
- Practical code examples
- Implementation notes and edge cases
- Type parameter explanations where applicable

All examples are marked with `ignore` where they depend on the full CGP framework
context. Documentation has been verified with `cargo test --doc` and `cargo doc`.

Part of the ongoing effort to improve CGP framework documentation and usability.

 Signed-off-by: Marvin Hansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant