Skip to content

ci: Check-docs for all workspace packages#2158

Open
shinigami-777 wants to merge 2 commits intobitcoindevkit:masterfrom
shinigami-777:check-docs
Open

ci: Check-docs for all workspace packages#2158
shinigami-777 wants to merge 2 commits intobitcoindevkit:masterfrom
shinigami-777:check-docs

Conversation

@shinigami-777
Copy link

@shinigami-777 shinigami-777 commented Mar 15, 2026

Description

Issue: #2152

This PR adds a script (ci/check-docs.sh) that checks documentation builds for all workspace packages. The check-docs job is added to the workflow file cont_integration.yml that calls the check-docs.sh script. A justfile recipe just doc added to execute ci/check-docs.sh .

Notes to the reviewers

Currently the bdk_chain and bdk_core checks are failing due to the following errors:

image image

Changelog notice

Checklists

All Submissions:

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@shinigami-777 shinigami-777 changed the title Check docs ci: Check-docs for all workspace packages Mar 15, 2026
@evanlinjin
Copy link
Member

Thanks for this work.

I think it also makes sense to also include the documentation fixes in this PR (as a separate commit).

@ValuedMammal
Copy link
Collaborator

@shinigami-777 Can you add a commit addressing the check-docs failures? I recommend removing the redundant explicit link targets in keychain_txout.rs for types that are already in scope (i.e. bitcoin::Script). Then in spk_client.rs update the docs with a valid link to the KeychainTxOutIndex type.

@shinigami-777
Copy link
Author

Thanks for this work.

I think it also makes sense to also include the documentation fixes in this PR (as a separate commit).

I have added some doc changes to the CONTRIBUTING.md in this commit.

@shinigami-777
Copy link
Author

Updated keychain_txout.rs and spk_client.rs. Now all doc checks are successful.

@ValuedMammal ValuedMammal added documentation Improvements or additions to documentation tests github_actions Pull requests that update GitHub Actions code labels Mar 16, 2026
@ValuedMammal ValuedMammal moved this to Needs Review in BDK Chain Mar 16, 2026
@ValuedMammal ValuedMammal linked an issue Mar 16, 2026 that may be closed by this pull request
10 tasks
@oleonardolima oleonardolima added this to the Chain 0.24.0 milestone Mar 16, 2026
Copy link
Collaborator

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

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

Thanks for working on this one!

I left some comments as I don't see use for a new check-docs.sh file we should probably just call the cargo commands directly. Let's see what other thinks about it.

Also, you could probably squash it into two commits, something like this:

  • ci: add new check-docs job and recipe in justfile
  • fix(docs): in keychain_txout.rs and spk_client.rs

@@ -57,3 +58,7 @@ _test-testenv:

# Run pre-push suite: format, check, and test
pre-push: fmt check test
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: it's also a good idea to add the doc to pre-push too.

Copy link
Author

Choose a reason for hiding this comment

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

I added the doc for pre-push in this commit.

Copy link
Collaborator

@oleonardolima oleonardolima Mar 19, 2026

Choose a reason for hiding this comment

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

I mean, add the doc to the list of commands called (e.g pre-push: fmt check test doc); not a blocker though.

@shinigami-777
Copy link
Author

@oleonardolima Thanks for reviewing. I have made the changes and squashed them in 2 commits: c4b8e93 and 1d1e985

Copy link
Collaborator

@oleonardolima oleonardolima left a comment

Choose a reason for hiding this comment

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

utACK 1d1e985

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 github_actions Pull requests that update GitHub Actions code tests

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

Check cargo rustdoc for all workspace members

4 participants