Skip to content

Check readme stays in sync with source docs - #36

Merged
leighmcculloch merged 2 commits into
mainfrom
readme-check-workflow-job
May 28, 2026
Merged

Check readme stays in sync with source docs#36
leighmcculloch merged 2 commits into
mainfrom
readme-check-workflow-job

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Add a CI job that regenerates README.md from the crate's doc comments and fails if it differs from what's committed. Uses the same cargo +nightly rustdoc -Zunstable-options -wjson plus jq approach already in use in stellar/rs-soroban-sdk, replacing the previous cargo-readme dependency.

Why

Mirror the readme-check pattern from stellar/rs-soroban-sdk so this crate catches stale READMEs in CI the same way.

@leighmcculloch
leighmcculloch marked this pull request as ready for review May 28, 2026 12:27
Copilot AI review requested due to automatic review settings May 28, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a CI-enforced README synchronization check that regenerates README.md from crate-level Rust docs and fails when the committed README is stale.

Changes:

  • Replaces cargo readme with a nightly rustdoc JSON + jq README generation path.
  • Adds a readme GitHub Actions job and includes it in the aggregate complete job.
  • Updates README.md to match the generated crate documentation output.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
README.md Regenerated from crate doc comments to match the new source-of-truth format.
Makefile Updates the readme target to generate README content from rustdoc JSON.
.github/workflows/rust.yml Adds the README consistency check to CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leighmcculloch
leighmcculloch merged commit b36e2f7 into main May 28, 2026
13 checks passed
@leighmcculloch
leighmcculloch deleted the readme-check-workflow-job branch May 28, 2026 12:42
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