Coder Social home page Coder Social logo

jatowler / ros2_documentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ros2/ros2_documentation

0.0 1.0 0.0 20.12 MB

ROS 2 docs repository

Home Page: https://docs.ros.org/en/rolling

License: Creative Commons Attribution 4.0 International

Makefile 1.56% Python 61.73% C++ 19.44% Shell 7.97% Dockerfile 1.84% HTML 7.46%

ros2_documentation's Introduction

ROS 2 Documentation

This repository contains the sources for the ROS 2 documentation that is hosted at https://docs.ros.org/en. The sources from this repository are built and uploaded to the site nightly by a Jenkins job.

Contributing to the documentation

Contributions to this site are most welcome. Please be sure to read the below sections carefully before contributing.

The site is built using Sphinx, and more particularly using Sphinx multiversion.

Installing prerequisites

pip3 install --user --upgrade -r requirements.txt

Branch structure

This repository is setup with one branch per ROS 2 distribution to handle differences between the distributions. If a change is common to all ROS 2 distributions, it should be made to the rolling branch (and then will be backported as appropriate). If a change is specific to a particular ROS 2 distribution, it should be made to the respective branch.

Source structure

The source files for the site are all located under the source subdirectory. Templates for various sphinx plugins are located under source/_templates. The root directory contains configuration and files required to locally build the site for testing.

Building the site

To build the site for just this branch, type make html at the top-level of the repository. This is the recommended way to test out local changes.

To build the site for all branches, type make multiversion from the rolling branch. This has two drawbacks:

  1. The multiversion plugin doesn't understand how to do incremental builds, so it always rebuilds everything. This can be slow.
  2. When typing make multiversion, it will always check out exactly the branches listed in the conf.py file. That means that local changes will not be shown.

To show local changes in the multiversion output, you must first commit the changes to a local branch. Then you must edit the conf.py file and change the smv_branch_whitelist variable to point to your branch.

Macros

Macros can be used to simplify writing documentation that targets multiple distributions.

Use a macro by including the macro name in curly braces. For example, when generating the docs for Rolling on the rolling branch:

Use Becomes (for Rolling) Example
{DISTRO} rolling ros-{DISTRO}-pkg
{DISTRO_TITLE} Rolling ROS 2 {DISTRO_TITLE}
{DISTRO_TITLE_FULL} Rolling Ridley ROS 2 {DISTRO_TITLE_FULL}
{REPOS_FILE_BRANCH} master git checkout {REPOS_FILE_BRANCH}

The same file can be used on multiple branches (i.e., for multiple distros) and the generated content will be distro-specific.

Contributing to ROS 2

To contribute to the ROS 2 source code project please refer to the ROS 2 contributing guidelines.

ros2_documentation's People

Contributors

ahcorde avatar audrow avatar christophebedard avatar clalancette avatar cottsay avatar davetcoleman avatar dirk-thomas avatar emersonknapp avatar fujitatomoya avatar gbiggs avatar gerkey avatar hidmic avatar ivanpauno avatar jacobperron avatar kscottz avatar kurshakuz avatar mabelzhang avatar maryab-osr avatar mergify[bot] avatar mikaelarguedas avatar mjcarroll avatar nickolai-voyage avatar nuclearsandwich avatar razr avatar rotu avatar sidfaber avatar sloretz avatar stevemacenski avatar tfoote avatar wjwwood avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.