Thanks for your interest in improving the Copper Book! Contributions of all kinds are welcome : fixes, clarifications, new content, and more.
Install the tools:
cargo install mdbook justRun just to see all available commands:
justBuild the book:
just buildServe locally with live-reload:
just serveThis starts a local server (default: http://localhost:3000) and opens the book in your browser. Edits to files in book/src/ trigger an automatic rebuild.
Chapters are ordered by their position in book/src/SUMMARY.md, not by their
filename, so there is nothing to renumber. To add a chapter:
- Create a slug-named file in
book/src/, e.g.book/src/my-new-topic.md. - Add a line linking to it in
book/src/SUMMARY.mdat the position you want.
mdBook generates the chapter numbers automatically from the order in SUMMARY.md.
-
Fork this repository on GitHub.
-
Clone your fork locally:
git clone https://github.com/<your-username>/copper-rs-book.git cd copper-rs-book
-
Create a branch for your changes:
git checkout -b my-change
-
Make your edits in
book/src/and verify them locally withmdbook serve --open. -
Commit and push your changes:
git add . git commit -m "Describe your change" git push origin my-change
-
Open a Pull Request against the
mainbranch of this repository.
That's it, we'll review your PR and get it merged. Thank you!