Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bake-readme

Reusable readme.md maintenance tasks for Bake. readme:update keeps the short release summary and package links in a project's readme.md up to date.

Motivation

A project's readme.md should help people quickly understand what the project does, why it exists, and where to start. Release summaries and package links are useful, but they are easy to forget or leave stale when maintained by hand. Bake Readme refreshes those derived sections while leaving the project's explanation and examples under its authors' control.

Usage

Add this crate to the project's private Bake task executable and link its task library:

[dependencies]
bake-readme = "0.1"
use bake_readme as _;

Then run the task from the project root:

cargo bake readme:update

If readme.md has no authored Releases section, the task adds one with the three latest versioned entries from releases.md. It skips Unreleased and links to the full release history. The task also adds or refreshes a package entry in See Also based on the root Cargo.toml name, description, and repository URL. Existing authored sections and entries are preserved.

A custom path is supported with --path PATH.

Releasing

Prepare a release with cargo bake cargo:version:patch (or minor, major, or bump --version X.Y.Z), then run cargo bake cargo:release and open a pull request. After review and merge, GitHub Actions publishes the release when the configured crates-io environment approves it. Follow the shared Releasing skill for the standard process.

Releases

See releases.md for the full release history.

v0.2.0

  • Remove the redundant bake_readme::readme module; the task adapter is now available at bake_readme::update.

v0.1.6

  • Declare compatibility with the Bake 0.x API so task libraries can share one task registry when upgrading to crate-derived task namespaces.

v0.1.5

  • Use the shared socketry-project Releasing skill for the standard release process and remove references to the duplicate Bake Cargo publishing context.

Contributing

Please open an issue or pull request on GitHub. The readme guidance describes the intended scope and structure of project readme.md files.

Agent Context

Before contributing, read agents.md and the relevant context files it links. If agents.md is missing or out of date, run cargo bake agent:context:install to install context from dependencies and update the index.

About

Reusable readme.md maintenance tasks for Bake

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages