Skip to content

Commit 2de86f8

Browse files
Add custom rosdoc2 config (#132) (#135)
* Add basic rosdoc2 landing page * Add rosdoc2 workflow * Add correct homepage link for ros2 * Remove build_testing * Use master branch of ros2_control_ci repo (cherry picked from commit 3b381d1) Co-authored-by: Christoph Fröhlich <[email protected]>
1 parent 9aa3680 commit 2de86f8

File tree

7 files changed

+47
-7
lines changed

7 files changed

+47
-7
lines changed

.github/workflows/rosdoc2.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: rosdoc2
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- control_msgs/doc/**
8+
- control_msgs/rosdoc2.yaml
9+
- control_msgs/package.xml
10+
11+
12+
jobs:
13+
check:
14+
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-rosdoc2.yml@master

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ repos:
104104
description: Check if copyright notice is available in all files.
105105
entry: ament_copyright
106106
language: system
107+
exclude: doc/conf.py
107108

108109
# Docs - RestructuredText hooks
109110
- repo: https://github.com/PyCQA/doc8

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
control_msgs
22
===========
33

4+
control_msgs contains base messages and actions useful for controlling robots. It provides representations for controller setpoints and joint and cartesian trajectories.
5+
46
See [control_msgs documentation](https://index.ros.org/p/control_msgs/) on index.ros.org
57

68

control_msgs/CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ set(srv_files
4747
srv/QueryTrajectoryState.srv
4848
)
4949

50-
if(BUILD_TESTING)
51-
find_package(ament_lint_auto REQUIRED)
52-
ament_lint_auto_find_test_dependencies()
53-
endif()
54-
5550
rosidl_generate_interfaces(${PROJECT_NAME}
5651
${action_files}
5752
${msg_files}

control_msgs/doc/conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
# settings will be overridden by rosdoc2, so we add here only custom settings
3+
4+
copyright = "2024, ros2_control development team"
5+
html_logo = "https://control.ros.org/master/_static/logo_ros-controls.png"

control_msgs/doc/index.rst

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Welcome to the documentation for control_msgs
2+
===============================================
3+
4+
control_msgs contains base messages and actions useful for controlling robots. It provides representations for controller setpoints and joint and cartesian trajectories.
5+
6+
For more information of the ros2_control framework see `control.ros.org <https://control.ros.org/>`__.
7+
8+
API documentation
9+
------------------
10+
11+
.. toctree::
12+
:maxdepth: 2
13+
14+
Action Definitions <generated/action_definitions>
15+
Message Definitions <generated/message_definitions>
16+
Service Definitions <generated/service_definitions>
17+
18+
19+
Indices and Search
20+
==================
21+
22+
* :ref:`genindex`
23+
* :ref:`search`

control_msgs/package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<version>4.4.0</version>
66
<description>
77
control_msgs contains base messages and actions useful for
8-
controlling robots. It provides representations for controller
8+
controlling robots. It provides representations for controller
99
setpoints and joint and cartesian trajectories.
1010
</description>
1111
<maintainer email="[email protected]">Bence Magyar</maintainer>
1212

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

15-
<url>http://ros.org/wiki/control_msgs</url>
15+
<url type="website">https://control.ros.org</url>
1616
<author email="[email protected]">Stuart Glaser</author>
1717

1818
<buildtool_depend>ament_cmake</buildtool_depend>

0 commit comments

Comments
 (0)