Skip to content

Commit

Permalink
Add custom rosdoc2 config (#199)
Browse files Browse the repository at this point in the history
* Add basic landing page

* Update website link and add info to README

* Add rosdoc workflow

* Fix workflow filter

* Use master branch of ros2_control_ci repo
  • Loading branch information
christophfroehlich authored Apr 29, 2024
1 parent b2ae538 commit 5a1e54c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/rosdoc2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: rosdoc2

on:
workflow_dispatch:
pull_request:
paths:
- doc/**
- rosdoc2.yaml
- package.xml


jobs:
check:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-rosdoc2.yml@master
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ repos:
description: Check if copyright notice is available in all files.
entry: ament_copyright
language: system
exclude: doc/conf.py

# Docs - RestructuredText hooks
- repo: https://github.com/PyCQA/doc8
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ control_toolbox
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![codecov](https://codecov.io/gh/ros-controls/control_toolbox/graph/badge.svg?token=0o4dFzADHj)](https://codecov.io/gh/ros-controls/control_toolbox)

This package contains several C++ classes useful in writing controllers.

See the documentation of [ros2_control](http://control.ros.org) and release infos on [index.ros.org](http://index.ros.org/p/control_toolbox).

## Build status
Expand Down
5 changes: 5 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Configuration file for the Sphinx documentation builder.
# settings will be overridden by rosdoc2, so we add here only custom settings

copyright = "2024, ros2_control development team"
html_logo = "https://control.ros.org/master/_static/logo_ros-controls.png"
23 changes: 23 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Welcome to the documentation for control_toolbox
================================================

This package contains several C++ classes useful in writing controllers.

For more information of the ros2_control framework see `control.ros.org <https://control.ros.org/>`__.


API documentation
------------------

.. toctree::
:maxdepth: 2

C++ API <generated/index>
Service Definitions <generated/service_definitions>


Indices and Search
==================

* :ref:`genindex`
* :ref:`search`
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<license>BSD-3-Clause</license>

<url type="website">http://ros.org/wiki/control_toolbox</url>
<url type="website">https://control.ros.org</url>
<url type="bugtracker">https://github.com/ros-controls/control_toolbox/issues</url>
<url type="repository">https://github.com/ros-controls/control_toolbox/</url>

Expand Down

0 comments on commit 5a1e54c

Please sign in to comment.