Skip to content

Commit

Permalink
Add simple rosdoc2 landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 16, 2024
1 parent 9e97c00 commit ebd86c2
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 4 deletions.
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:
- ros2_controllers/doc/**
- ros2_controllers/rosdoc2.yaml
- ros2_controllers/package.xml


jobs:
check:
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-rosdoc2.yml@rosdoc2
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
repos:
# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -26,6 +26,7 @@ repos:
- id: check-symlinks
- id: check-xml
- id: check-yaml
exclude: .*/rosdoc2\.yaml$
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
Expand All @@ -36,7 +37,7 @@ repos:

# Python hooks
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.1
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand All @@ -62,7 +63,7 @@ repos:

# CPP hooks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.1
rev: v18.1.3
hooks:
- id: clang-format
args: ['-fallback-style=none', '-i']
Expand Down Expand Up @@ -104,6 +105,7 @@ repos:
description: Check if copyright notice is available in all files.
entry: ament_copyright
language: system
exclude: .*/conf\.py$

# Docs - RestructuredText hooks
- repo: https://github.com/PyCQA/doc8
Expand Down Expand Up @@ -131,7 +133,7 @@ repos:
exclude: CHANGELOG\.rst|\.(svg|pyc|drawio)$

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
rev: 0.28.1
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand Down
5 changes: 5 additions & 0 deletions ros2_controllers/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"
62 changes: 62 additions & 0 deletions ros2_controllers/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Welcome to the documentation for ros2_controllers
=================================================

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

.. list-table::
:header-rows: 1

* - Package Name
- API
- ROS Index
* - ackermann_steering_controller
- `API <http://docs.ros.org/en/rolling/p/ackermann_steering_controller/>`__
- `ROS Index <https://index.ros.org/p/ackermann_steering_controller/>`__
* - admittance_controller
- `API <http://docs.ros.org/en/rolling/p/admittance_controller/>`__
- `ROS Index <https://index.ros.org/p/admittance_controller/>`__
* - bicycle_steering_controller
- `API <http://docs.ros.org/en/rolling/p/bicycle_steering_controller/>`__
- `ROS Index <https://index.ros.org/p/bicycle_steering_controller/>`__
* - diff_drive_controller
- `API <http://docs.ros.org/en/rolling/p/diff_drive_controller/>`__
- `ROS Index <https://index.ros.org/p/diff_drive_controller/>`__
* - effort_controllers
- `API <http://docs.ros.org/en/rolling/p/effort_controllers/>`__
- `ROS Index <https://index.ros.org/p/effort_controllers/>`__
* - force_torque_sensor_broadcaster
- `API <http://docs.ros.org/en/rolling/p/force_torque_sensor_broadcaster/>`__
- `ROS Index <https://index.ros.org/p/force_torque_sensor_broadcaster/>`__
* - forward_command_controller
- `API <http://docs.ros.org/en/rolling/p/forward_command_controller/>`__
- `ROS Index <https://index.ros.org/p/forward_command_controller/>`__
* - imu_sensor_broadcaster
- `API <http://docs.ros.org/en/rolling/p/imu_sensor_broadcaster/>`__
- `ROS Index <https://index.ros.org/p/imu_sensor_broadcaster/>`__
* - joint_state_broadcaster
- `API <http://docs.ros.org/en/rolling/p/joint_state_broadcaster/>`__
- `ROS Index <https://index.ros.org/p/joint_state_broadcaster/>`__
* - joint_trajectory_controller
- `API <http://docs.ros.org/en/rolling/p/joint_trajectory_controller/>`__
- `ROS Index <https://index.ros.org/p/joint_trajectory_controller/>`__
* - pid_controller
- `API <http://docs.ros.org/en/rolling/p/pid_controller/>`__
- `ROS Index <https://index.ros.org/p/pid_controller/>`__
* - position_controllers
- `API <http://docs.ros.org/en/rolling/p/position_controllers/>`__
- `ROS Index <https://index.ros.org/p/position_controllers/>`__
* - range_sensor_broadcaster
- `API <http://docs.ros.org/en/rolling/p/range_sensor_broadcaster/>`__
- `ROS Index <https://index.ros.org/p/range_sensor_broadcaster/>`__
* - steering_controllers_library
- `API <http://docs.ros.org/en/rolling/p/steering_controllers_library/>`__
- `ROS Index <https://index.ros.org/p/steering_controllers_library/>`__
* - tricycle_controller
- `API <http://docs.ros.org/en/rolling/p/tricycle_controller/>`__
- `ROS Index <https://index.ros.org/p/tricycle_controller/>`__
* - tricycle_steering_controller
- `API <http://docs.ros.org/en/rolling/p/tricycle_steering_controller/>`__
- `ROS Index <https://index.ros.org/p/tricycle_steering_controller/>`__
* - velocity_controllers
- `API <http://docs.ros.org/en/rolling/p/velocity_controllers/>`__
- `ROS Index <https://index.ros.org/p/velocity_controllers/>`__
20 changes: 20 additions & 0 deletions ros2_controllers/rosdoc2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type: 'rosdoc2 config'
version: 1

---

settings:
# Not generating any documentation of code
generate_package_index: false
always_run_doxygen: false
enable_breathe: false
enable_exhale: false
always_run_sphinx_apidoc: false

builders:
# Configure Sphinx with the location of the docs:
- sphinx: {
name: 'ros2_controllers',
sphinx_sourcedir: 'doc',
output_dir: ''
}

0 comments on commit ebd86c2

Please sign in to comment.