-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* API docs for the whole stack via doxygen (#278) * Use all repositories for doxygen * Switch API also for multi-version * Convert bash scripts to python * Fix check_links * Add branch_version for every repo * Update .gitignore * Abort only if subrepos have uncommited changes * Checkout correct branches for multiversion-api * Fix ci-format.yml * Update exclude patterns * Readd delete_sub_repos * Add debug output * Add pycache to gitignore * Fix multiversion (PR) workflow * Fix ref * Fix ref * Fix refs for PR workflow * Fix add_sub_repos * Add debug output * Delete sub-repos at the correct time * Try to set the correct branch also for PRs * Fix multiversion-PR with sphinx * Fix api_multi_version * Add ROS version to doxygen output * Last text updates * Run wf only if relevant settings have changed * Apply suggestions from code review Co-authored-by: Sai Kishor Kothakota <[email protected]> --------- Co-authored-by: Sai Kishor Kothakota <[email protected]> * Fix deploy defines for humble --------- Co-authored-by: Christoph Fröhlich <[email protected]> Co-authored-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Christoph Froehlich <[email protected]>
- Loading branch information
1 parent
9e06aa0
commit 959759b
Showing
27 changed files
with
623 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
reviewer-stats | ||
path: ~/reviews | ||
- name: Copy stats | ||
run: ./make_help_scripts/add_pr_stats | ||
run: ./make_help_scripts/add_pr_stats.py | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --hook-stage manual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "Build Multiversion Page" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
BASE_BRANCH: | ||
description: 'Chose branch to run on' | ||
required: true | ||
default: 'master' | ||
type: choice | ||
options: | ||
- humble | ||
- iron | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'make_help_scripts/**' | ||
- 'conf.py' | ||
|
||
jobs: | ||
build-multiversion: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade --requirement requirements.txt | ||
shell: bash | ||
- name: Install generate_parameter_library | ||
run: | | ||
cd | ||
git clone https://github.com/PickNikRobotics/generate_parameter_library.git | ||
cd generate_parameter_library/generate_parameter_library_py/ | ||
python -m pip install . | ||
shell: bash | ||
- name: Install doxygen and graphviz | ||
run: sudo apt-get install -y doxygen graphviz | ||
- name: Build multiversion with API | ||
env: | ||
BASE_BRANCH: ${{ github.event.inputs.BASE_BRANCH }} | ||
BASE_BRANCH_PR: ${{ github.event.pull_request.head.ref }} | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
make multiversion-with-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
# ignore pages build by sphinx | ||
_build/* | ||
|
||
# ignore python cache | ||
**/__pycache__/ | ||
|
||
# ignore other docs that are included either by checkout or symlink | ||
doc/ros2_control | ||
doc/ros2_control_demos | ||
doc/ros2_controllers | ||
doc/gazebo_ros2_control | ||
doc/gz_ros2_control | ||
doc/control_msgs/ | ||
doc/control_toolbox/ | ||
doc/kinematics_interface/ | ||
doc/realtime_tools/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) 2023 ros2_control maintainers | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from deploy_defines import add_pr_stats_file | ||
|
||
add_pr_stats_file() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) 2023 ros2_control maintainers | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import os | ||
import subprocess | ||
import deploy_defines | ||
|
||
def add_sub_repositories(base_branch): | ||
# checkout a base for defined starting point | ||
print(f"base_branch: {base_branch}") | ||
print(f"base_version: {deploy_defines.branch_version[base_branch]}") | ||
os.chdir(deploy_defines.base_dir) | ||
for repo_name, repo_details in deploy_defines.repos.items(): | ||
repo_path = os.path.join("doc", repo_name) | ||
branch = repo_details["branch_version"][deploy_defines.branch_version[base_branch]] | ||
if not os.path.isdir(repo_path): | ||
print(f"Create {repo_path} and checkout {branch} branch") | ||
subprocess.run(["git", "clone", "-b", branch, repo_details["url"], repo_path], check=True) | ||
else: | ||
print(f"Update {repo_path} and checkout {branch} branch") | ||
os.chdir(repo_path) | ||
subprocess.run(["git", "fetch", "origin"], check=True) | ||
subprocess.run(["git", "checkout", branch], check=True) | ||
subprocess.run(["git", "pull"], check=True) | ||
os.chdir(deploy_defines.base_dir) | ||
if repo_details["pr"]: | ||
PR = repo_details["pr"] | ||
print(f"checkout PR: {PR}") | ||
os.chdir(repo_path) | ||
subprocess.run(["git", "fetch", "origin", f"{PR}:PR"], check=True) | ||
subprocess.run(["git", "checkout", "PR"], check=True) | ||
os.chdir(deploy_defines.base_dir) | ||
|
||
if __name__ == "__main__": | ||
add_sub_repositories(deploy_defines.base_branch) | ||
deploy_defines.add_pr_stats_file() |
Oops, something went wrong.