Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Add API docs #31

Merged
merged 3 commits into from
Mar 30, 2022
Merged

Add API docs #31

merged 3 commits into from
Mar 30, 2022

Conversation

thunderbiscuit
Copy link
Collaborator

@thunderbiscuit thunderbiscuit commented Mar 19, 2022

Description

This PR adds the required files and plugin to generate API docs using Dokka.

Notes to the reviewers

While the process requires some manual input from a maintainer before release, I believe it is now down to manageable state. The process requires the maintainer to apply a patch file to the bdk.kt bindings file, and manually fixing up the hunks that the patch tool cannot automatically resolve, as well as adding new KDocs if anything has been added to the new release. The process requires a few steps but is clearly defined.

I'm not sure where I should officially keep this process explained, but for now it's in #18.

I have done this process 3 times now, learning about the patch and diff commands along the way (picking the right arguments for a successful patch is somewhat of an art). I think I have something that works fairly well, at least for small increments in the API.

All submissions:

  • I've signed all my commits

@thunderbiscuit
Copy link
Collaborator Author

At the moment, only minimal things are added and most of the docstrings are simply suppressing constructs that are built by the bindings library and don't need to appear in the KDocs.

Once we agree on the approach and this gets merged, I'll spend time to actually bring in the full extent of the docs that are in the Rust bdk project.

android/Module.md Outdated Show resolved Hide resolved
jvm/Module.md Outdated Show resolved Hide resolved
@notmandatory
Copy link
Member

Tested and works great for me! I think it's OK to leave the steps to build in #18 until we figure out if/how it can be automated in build.sh.

@thunderbiscuit thunderbiscuit self-assigned this Mar 22, 2022
Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

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

ACK 42b8db8

@notmandatory notmandatory merged commit 4f121f8 into bitcoindevkit:master Mar 30, 2022
@thunderbiscuit thunderbiscuit deleted the api-docs branch March 30, 2022 19:18
@thunderbiscuit thunderbiscuit added this to the Release 0.6.0 milestone Apr 4, 2022
@notmandatory notmandatory mentioned this pull request Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants