Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (21 loc) · 2.16 KB

CONTRIBUTING.md

File metadata and controls

31 lines (21 loc) · 2.16 KB

Contributing

Welcome to the FRC 167 Documentation! We welcome any relevant contributions to the book.

Project Structure

This project uses an open-source Rust utility called mdBook to compile Markdown files into an HTML book. To work on the project, you must first install Rust. Instructions for that are available here. Then, run the following shell command to install mdBook:

cargo install mdbook

Documentation for mdBook is available here (incidentally, the mdBook documentation is an mdBook itself). The most important ideas from the mdBook documentation are:

  • Book metadata resides in book.toml
  • All Markdown and media files belong in the src directory
  • The layout of the book (chapters, sections, etc.) is described in src/SUMMARY.md
  • Use the shell command mdbook build to compile the book (or use mdbook watch to automatically compile after file changes)
  • The HTML output of the book is generated in the book directory

Branches

These docs use something similar to the GitFlow branching model. The main difference is that there aren't any pre-release (bug-fix) branches for this project. There are three perpetual branches: devel, master, and gh-pages.

  • The devel branch is where writing and editing occur. You can commit directly onto this branch, but feature branches are preferred.
  • When changes are ready for release, they get merged into the master branch from devel. You should never commit onto master directly.
  • A GitHub workflow automatically compiles the book from the master branch and pushes it onto the gh-pages branch. The published book on GitHub pages uses the gh-pages branch as its source.

How to Contribute

For minor changes (fixing typos, improving code samples, etc.), simply submit a PR and briefly explain your changes. For major changes (rewriting, adding, or deleting sections/chapters), open an issue for discussion with others before working on and submitting a PR. Do not submit a PR for any changes that do not compile.