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

Added examples of transaction creation to Haddock #698

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

palas
Copy link
Contributor

@palas palas commented Dec 3, 2024

Changelog

- description: |
    Added example of transaction creation with traditional and experimental APIs to Haddock.
  type:
  - test
  - documentation

Context

Prompted by this slack discussion

How to trust this PR

Have a read of the haddock.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

Nice work 👍 . I would move the transaction creation haddocks to Cardano.Api.Experimental.Tx and point to it from here.

@palas palas force-pushed the haddock-for-experimental-api branch from ec017ee to bd4f6ba Compare December 11, 2024 11:33
@palas palas added documentation Improvements or additions to documentation test Adding or reworking tests labels Dec 11, 2024
@palas palas force-pushed the haddock-for-experimental-api branch from 0ddace3 to c9d390f Compare December 13, 2024 14:36
Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

Getting there 👍

@carbolymer
Copy link
Contributor

Outside of the scope of this PR: Maybe could use doctest to make sure that haddock examples didn't bitrot?

@palas
Copy link
Contributor Author

palas commented Jan 7, 2025

Outside of the scope of this PR: Maybe could use doctest to make sure that haddock examples didn't bitrot?

Yes, I was thinking the same. Currently it is not checked by the CI, but at least it is easy to update if we do. And I made a couple of examples using this format in a different PR already (unrelated).

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

Most of the links to modules are broken. We need to fix this. I also need you to work with @olgahryniuk to improve the flow of the documentation.

@palas palas force-pushed the haddock-for-experimental-api branch from 7d3ba15 to a083ac2 Compare February 13, 2025 10:38
@carbolymer
Copy link
Contributor

carbolymer commented Feb 13, 2025

FYI https://github.com/IntersectMBO/cardano-api/actions/workflows/github-page.yml has a trigger, where you can specify a branch. It'll produce an artifact with haddocks e.g.: https://github.com/IntersectMBO/cardano-api/actions/runs/13306164579

Copy link
Contributor

@olgahryniuk olgahryniuk left a comment

Choose a reason for hiding this comment

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

Several typos to fix, please.

Copy link
Contributor

@olgahryniuk olgahryniuk left a comment

Choose a reason for hiding this comment

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

Final suggestions

@palas palas requested a review from Jimbo4350 February 20, 2025 13:23
Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

LGTM 👍 . A few comments need to be addressed and the commits should be squashed.

@palas
Copy link
Contributor Author

palas commented Feb 21, 2025

Outside of the scope of this PR: Maybe could use doctest to make sure that haddock examples didn't bitrot?

#760

@palas
Copy link
Contributor Author

palas commented Feb 21, 2025

@palas palas force-pushed the haddock-for-experimental-api branch from a1bcfa7 to 13ac778 Compare February 21, 2025 16:16
Co-authored-by: olgahryniuk
<67585499+olgahryniuk@users.noreply.github.com>
@palas palas force-pushed the haddock-for-experimental-api branch from 13ac778 to 7c976f6 Compare February 21, 2025 16:35
@palas palas enabled auto-merge February 21, 2025 16:36
@palas palas added this pull request to the merge queue Feb 21, 2025
@Jimbo4350 Jimbo4350 removed this pull request from the merge queue due to a manual request Feb 21, 2025
@Jimbo4350
Copy link
Contributor

Jimbo4350 commented Feb 21, 2025

This comment has not be addressed: #698 (comment)

Apologies it has

@Jimbo4350 Jimbo4350 self-requested a review February 21, 2025 17:08
Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

I guess I was not clear enough. Address the comments please before merging.

@Jimbo4350 Jimbo4350 self-requested a review February 21, 2025 17:11
@Jimbo4350 Jimbo4350 enabled auto-merge February 21, 2025 17:11
@Jimbo4350 Jimbo4350 dismissed their stale review February 21, 2025 17:12

Everything has been addressed

@Jimbo4350 Jimbo4350 added this pull request to the merge queue Feb 21, 2025
Merged via the queue into master with commit 50702e6 Feb 21, 2025
29 checks passed
@Jimbo4350 Jimbo4350 deleted the haddock-for-experimental-api branch February 21, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation test Adding or reworking tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants