Skip to content

Writing Documentation

All documentation for the entire ROSflight stack (both firmware and ROS code) belongs in this "MkDocs" webpage. This guide explains how to build the documentation on your own local computer so you can view changes as you write and contribute to the documentation.

Install mkdocs and LaTeX Support

This is easy:

pip install --user mkdocs mkdocs-material pygments pymdown-extensions

(You don't have use to the global pip if you have python environments working, but for beginners, this is the simplest way to do it.)

Run the mkdocs Server

Just type mkdocs serve in the root directory of the firmware repository. It should report to you something like:

[I 170728 07:49:47 server:271] Serving on
[I 170728 07:49:47 handlers:58] Start watching changes

This means that mkdocs is hosting a webpage for you on Navigate to that page in your web browser.

Now, as you make changes to the documentation, you should be able to see it on your browser. Just hit reload from time to time to see your changes.

Adding Pages

To add a new page to the documentation, just take a look at the mkdocs.yml file in the root of the firmware directory. You should be able to figure it out from there.

Adding LaTeX

The syntax for adding LaTeX math inline is \( x \), which renders as x . For adding a block, it's

$$ E = mc^2 $$
which renders as $$ E = mc^2 $$