Contributing to Documentation

Making quick fixes to existing text or raising issues is very easy. More complicated changes will require you to set up the Gitbook toolchain. If you want to help, get in touch.

You will need a Github login to make and submit changes to this guide.

Overview

This guide is written in markdown wiki syntax and stored in the Github mavlink/MAVSDK-docs repo. The book is hosted on Gitbook.com and is automatically rebuilt whenever the master branch of the repo is updated. You can also rebuild it locally using the Gitbook toolchain.

The API Reference section is compiled from source code into markdown using a separate toolchain and then copied into Github. Updates to the reference should be made in the source code repository (see API Reference below for more information).

The guide is licensed under CC BY 4.0 - if you make any changes then they will be made available under the same license.

Making a Quick Fix

Simple fixes to an existing page can be made directly on Github:

  1. Click the Edit button in the top toolbar to open the page

    Edit page

  2. Make required changes in the editor section near the top of the page.

  3. At the bottom of the page, add a comment and select the second radio button to create a new branch.

    Edit page

  4. Follow the on-screen instructions to create a pull request with your change.

Raising an Issue

To raise an issue against the documentation:

  1. Open the page with problem content.
  2. Click the Bug button in the top toolbar.

    Raise bug

    This will open a bug in Github, seeded with the URL/name for the current page.

  3. Enter enough information for someone to understand the problem, and ideally to fix it.

Making a Big Change

If you want to make more significant changes or additions to the documentation you will need to set up Git and the Gitbook toolchain (this allows you to render the documentation and check that links work).

For setup information see: Gitbook toolchain.

API Reference

The C++ source code is annotated using comments using Doxygen syntax. You can extract the documentation to markdown files (one per class) on macOS or Linux using the instructions in Build API Reference Documentation.

In order to include new API reference in the SDK Documentation it must be manually added to the Github repository:

© MAVSDK Development Team 2017-2023. License: CC BY 4.0            Updated: 2023-12-27 03:10:20

results matching ""

    No results matching ""