Skip to content

Commit

Permalink
Add jazzy and rename default branch to rolling (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored May 13, 2024
1 parent f1c4307 commit 60c465f
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: "Create PR Stats"

on:
workflow_dispatch:
pull_request: # run if the file changed on a PR to master
pull_request: # run if the file changed on a PR to rolling
branches:
- master
- rolling
paths:
- 'make_help_scripts/create_pr_stats.py'
push: # run if the file changed by pushes to master
push: # run if the file changed by pushes to rolling
branches:
- master
- rolling
paths:
- 'make_help_scripts/create_pr_stats.py'
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-sphinx-check-single-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: ros-controls/control.ros.org
ref: master
ref: rolling
fetch-depth: 0
- uses: actions/setup-python@v5
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sphinx-check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
branches:
- master
- rolling
schedule:
# Run every morning to ensure component documentation is up to date on deployment
- cron: '23 5 * * *'
Expand All @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
BRANCH: [humble, iron, master]
BRANCH: [humble, iron, jazzy, rolling]
steps:
- uses: actions/checkout@v4
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/sphinx-check-page-multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
BASE_BRANCH:
description: 'Chose branch to run on'
required: true
default: 'master'
default: 'rolling'
type: choice
options:
- humble
- iron
- master
- jazzy
- rolling
pull_request:
branches:
- master
- rolling
paths:
- 'make_help_scripts/**'
- 'conf.py'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sphinx-check-warnings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
branches:
- master
- rolling
schedule:
# Run every morning to ensure component documentation is up to date on deployment
- cron: '23 5 * * *'
Expand All @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
BRANCH: [humble, iron, master]
BRANCH: [humble, iron, jazzy, rolling]
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sphinx-make-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
branches:
- master
- rolling
schedule:
# Run every morning to ensure component documentation is up to date on deployment
- cron: '23 5 * * *'
Expand Down
21 changes: 15 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ multiversion: Makefile
sphinx-multiversion $(SPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html
@echo Step 3: Deleting temporary commits
./make_help_scripts/delete_tmp_commits.py
@echo Step 4: Create correct index
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=master/index.html\" /></head></html>" > "$(BUILDDIR)"/html/index.html
@echo Step 4: Create correct index + legacy master version
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=rolling/index.html\" /></head></html>" > "$(BUILDDIR)"/html/index.html
# legacy, renamed Rolling version from "master" to "rolling"
@cp -r "$(BUILDDIR)"/html/rolling/ "$(BUILDDIR)"/html/master
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=../rolling/index.html\" /></head></html>" > "$(BUILDDIR)"/html/master/index.html

multiversion-with-errors: Makefile
@echo Building multi version documentation without API
Expand All @@ -91,8 +94,11 @@ multiversion-with-errors: Makefile
sphinx-multiversion $(SPHINXOPTS) -W --keep-going $(SOURCEDIR) $(BUILDDIR)/html
@echo Step 3: Deleting temporary commits
./make_help_scripts/delete_tmp_commits.py
@echo Step 4: Create correct index
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=master/index.html\" /></head></html>" > "$(BUILDDIR)"/html/index.html
@echo Step 4: Create correct index + legacy master version
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=rolling/index.html\" /></head></html>" > "$(BUILDDIR)"/html/index.html
# legacy, renamed Rolling version from "master" to "rolling"
@cp -r "$(BUILDDIR)"/html/rolling/ "$(BUILDDIR)"/html/master
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=../rolling/index.html\" /></head></html>" > "$(BUILDDIR)"/html/master/index.html

multiversion-with-api: Makefile
@echo Building multi version documentation with API
Expand All @@ -106,8 +112,11 @@ multiversion-with-api: Makefile
./make_help_scripts/delete_sub_repos.py
@echo Step 5: Building multiversion API
./make_help_scripts/create_api_multi_version.py
@echo Step 6: Create correct index
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=master/index.html\" /></head></html>" > "$(BUILDDIR)"/html/index.html
@echo Step 6: Create correct index + legacy master version
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=rolling/index.html\" /></head></html>" > "$(BUILDDIR)"/html/index.html
# legacy, renamed Rolling version from "master" to "rolling"
@cp -r "$(BUILDDIR)"/html/rolling/ "$(BUILDDIR)"/html/master
@echo "<html><head><meta http-equiv=\"refresh\" content=\"0; url=../rolling/index.html\" /></head></html>" > "$(BUILDDIR)"/html/master/index.html

.PHONY: help Makefile html-with-errors html-with-api multiversion multiversion-with-api multiversion-with-errors html-all-subrepos html-all-subrepos-with-api html-all-subrepos-with-errors linkcheck-all-subrepos-with-api

Expand Down
9 changes: 6 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
ros_distro = "rolling"
distro_title = "Rolling"
distro_title_full = "Rolling Ridley"
repos_file_branch = "master"
repos_file_branch = "rolling" # for single version only

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -199,10 +199,10 @@
elif os.environ.get('BASE_BRANCH') is not None:
base_branch = os.environ.get('BASE_BRANCH')
else:
base_branch = "master"
base_branch = "rolling"

# Add branches you want to whitelist here.
smv_branch_whitelist = r"^(foxy|galactic|humble|iron|"+ base_branch + r")$"
smv_branch_whitelist = r"^(foxy|galactic|humble|iron|jazzy|"+ base_branch + r")$"
smv_released_pattern = r"^refs/(heads|remotes/[^/]+)/(foxy|galactic|humble|iron).*$"
smv_remote_whitelist = r"^(origin)$"
smv_latest_version = "iron"
Expand All @@ -213,6 +213,7 @@
"galactic": "Galactic Geochelone",
"humble": "Humble Hawksbill",
"iron": "Iron Irwini",
"jazzy": "Jazzy Jalisco",
"rolling": "Rolling Ridley",
}

Expand Down Expand Up @@ -331,6 +332,7 @@ def smv_rewrite_configs(app, config):
# this map is used to match branches of control.ros.org to ROS distros, e.g., DISTRO macro
branch_distro = {
base_branch: "rolling",
"jazzy": "jazzy",
"iron": "iron",
"humble": "humble",
"foxy": "foxy",
Expand All @@ -339,6 +341,7 @@ def smv_rewrite_configs(app, config):
# this map is used to match branches of control.ros.org to REPOS_FILE_BRANCH macro
subrepo_branch = {
base_branch: "master",
"jazzy": "jazzy",
"iron": "iron",
"humble": "humble",
"foxy": "foxy",
Expand Down
12 changes: 11 additions & 1 deletion make_help_scripts/deploy_defines.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
elif os.environ.get('BASE_BRANCH') is not None:
base_branch = os.environ.get('BASE_BRANCH')
else:
base_branch = "master"
base_branch = "rolling"
print(f"Using base_branch: {base_branch}")

build_dir = "_build"
Expand Down Expand Up @@ -63,6 +63,7 @@ def add_pr_stats_file():
"galactic": "galactic",
"humble": "humble",
"iron": "iron",
"jazzy": "jazzy",
base_branch: "rolling" # master is rolling, PRs are tested on rolling
}

Expand All @@ -77,6 +78,7 @@ def add_pr_stats_file():
"galactic": "galactic",
"humble": "humble",
"iron": "iron",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": os.environ.get('ROS2_CONTROL_PR')
Expand All @@ -88,6 +90,7 @@ def add_pr_stats_file():
"galactic": "galactic",
"humble": "humble",
"iron": "iron",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": os.environ.get('ROS2_CONTROLLERS_PR')
Expand All @@ -99,6 +102,7 @@ def add_pr_stats_file():
"galactic": "galactic",
"humble": "humble",
"iron": "iron",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": os.environ.get('ROS2_CONTROL_DEMOS_PR')
Expand All @@ -110,6 +114,7 @@ def add_pr_stats_file():
"galactic": "galactic",
"humble": "humble",
"iron": "iron",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": os.environ.get('GAZEBO_ROS2_CONTROL_PR')
Expand All @@ -121,6 +126,7 @@ def add_pr_stats_file():
"galactic": "galactic",
"humble": "humble",
"iron": "iron",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": os.environ.get('GZ_ROS2_CONTROL_PR')
Expand All @@ -132,6 +138,7 @@ def add_pr_stats_file():
"galactic": "ros2-master",
"humble": "ros2-master",
"iron": "ros2-master",
"jazzy": "ros2-master",
"rolling": "ros2-master" # master is rolling
},
"pr": None
Expand All @@ -143,6 +150,7 @@ def add_pr_stats_file():
"galactic": "galactic-devel",
"humble": "humble",
"iron": "master",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": None
Expand All @@ -154,6 +162,7 @@ def add_pr_stats_file():
"galactic": "master",
"humble": "master",
"iron": "master",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": None
Expand All @@ -165,6 +174,7 @@ def add_pr_stats_file():
"galactic": "humble",
"humble": "humble",
"iron": "master",
"jazzy": "master",
"rolling": "master" # master is rolling
},
"pr": None
Expand Down

0 comments on commit 60c465f

Please sign in to comment.