Skip to content

docs: add usage guide #68

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

Merged
merged 3 commits into from
Jun 26, 2025
Merged

docs: add usage guide #68

merged 3 commits into from
Jun 26, 2025

Conversation

davidhewitt
Copy link
Contributor

This adds a subdirectory of the crate as documentation which would be rendered on docs.rs.

While it's perhaps not the most beautiful way to render a usage guide, I think there are good reasons to do this:

  • easy to discover
  • avoids adding an additional side
  • keeps in sync with this SDK (unlike if we put this in the main logfire docs)
  • can probably get doctesting to run for the examples

(WIP, will push the rest of the content in the next few hours.)

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@davidhewitt
Copy link
Contributor Author

Example in the wild: https://docs.rs/clap/latest/clap/_cookbook/index.html

@davidhewitt davidhewitt marked this pull request as ready for review June 26, 2025 11:50
@davidhewitt
Copy link
Contributor Author

I think this is now good enough that it's ready for review / merge and to be filled out further in follow ups.

@davidhewitt davidhewitt merged commit 86cfa60 into main Jun 26, 2025
7 checks passed
@davidhewitt davidhewitt deleted the dh/usage-guide branch June 26, 2025 13:43
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

Successfully merging this pull request may close these issues.

3 participants