Skip to content

Add various updates to docs #234

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 2 commits into from
Mar 4, 2025
Merged

Add various updates to docs #234

merged 2 commits into from
Mar 4, 2025

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Mar 4, 2025

This updates the docs to include how to run diplomat-gen.

It also includes adding an example to the README and the lib.rs header. It may be worthwhile to look into unifying those in the future.

Once we have a good setup for handling TimeZoneProviders, it may be worth while looking into including Now into the docs that can run in CI. For now I went with a rather simple example to show conversion of PlainDate with an ISO calendar to a PlainDate with a japanese calendar.

The examples are nice to see, but they do show a slight weakness in the API ergonomics that using TemporalResult is not always ideal. I think the primary reason the TemporalResult is there is due to a fallible conversion from us -> ICU4X. But I'm not entirely sure it is 100% fallible. It would be worth confirming if we could use an expect on as_icu4x. It would probably dramatically increase our API ergonomics.

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs look great!

@nekevss nekevss merged commit 4b0aa9b into main Mar 4, 2025
8 checks passed
@nekevss nekevss deleted the small-docs-update branch March 4, 2025 03:21
@jedel1043 jedel1043 added the C-documentation Improvements or additions to documentation label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants