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

Docs don't make it obvious how the pieces connect together #591

Open
epage opened this issue Oct 23, 2024 · 2 comments
Open

Docs don't make it obvious how the pieces connect together #591

epage opened this issue Oct 23, 2024 · 2 comments
Labels

Comments

@epage
Copy link
Contributor

epage commented Oct 23, 2024

There is no top-level example, core types are re-exported, rather than inline in the top-level docs, and many items are in the top-level without being clear when to use them without digging into all of the documentation.

@epage epage added the C-bug label Oct 23, 2024
@polarathene
Copy link
Collaborator

polarathene commented Oct 24, 2024

I remember collaborating with a contributor about a year ago with an example for implementing custom formats, that was not documented well.

Adding here as context / reference if helpful: #479 (comment)


Similarly for the library itself, I had some PRs that may be helpful towards how support for adding formats looked:

Related was a refactor to simplify format support which may have been easier to document and introduced more consistency vs each format doing roughly the same slightly differently. That included some changes to favor serde crates though, notably for YAML which did not age well 😓

HJSON could take a similar approach (detailed config-rs history), and I recall my local copy of config-rs having some other formats that were quite simple with the refactor to add.

@epage
Copy link
Contributor Author

epage commented Oct 24, 2024

I'm even thinking on a more basic level. When I see docs.rs/<crate>, how do I tell what pieces are relevant to what I'm trying to accomplish? This is more about having things like

  • top-level example
  • intra-doc links

etc

What you described would likely better fall under #593.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants