Skip to content
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
venv
site
__pycache__

macros/cache/*
!macros/cache/README.md
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This directory contains main documentation files for the Nav2 project. To minimize maintenance efforts, some information is automatically synchronized across different distribution branches. The following files and directories are cloned from the `rolling` branch and symlinked to provide a single source for shared documentation:

- `index.md`
- `images`
- `videos`
- `community`
- `robots_using`
- `about_and_contact`

To update them, edit only the `rolling` branch. Changes from there will be propagated to all distribution versions.
64 changes: 60 additions & 4 deletions docs/community/maintainer_docs/docs_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,74 @@ extra:
ros2_distro: "<distro>"
```

Update `branch` variable in `macros/variables.yml`:
Update `branch` variable and include the new cloning source in `macros/variables.yml`:

```yaml
github_repositories:
navigation2:
owner: "ros-navigation"
...
branch: "<distro>"
...

# This is required for point 3.1
docs.nav2.org:
owner: "ros-navigation"
branch: "rolling" # keep unchanged between distributions
destination_dir: "macros/cache"
data_to_clone:
- "/docs/index.md"
- "/docs/images"
- "/docs/videos"
- "/docs/community"
- "/docs/robots_using"
- "/docs/about_and_contact"
symlinks:
"docs/index.md": "macros/cache/docs.nav2.org/docs/index.md"
"docs/images": "macros/cache/docs.nav2.org/docs/images"
"docs/videos": "macros/cache/docs.nav2.org/docs/videos"
"docs/community": "macros/cache/docs.nav2.org/docs/community"
"docs/robots_using": "macros/cache/docs.nav2.org/docs/robots_using"
"docs/about_and_contact": "macros/cache/docs.nav2.org/docs/about_and_contact"
```

## 3. Update Documentation

### 3.1 Update links
### 3.1 Remove shared content

Delete the following directories and files that are shared across multiple documentation distributions:

- `docs/index.md`
- `docs/images`
- `docs/videos`
- `docs/community`
- `docs/robots_using`
- `docs/about_and_contact`

Include them in `.gitignore`:

```
# For non-rolling branches only
docs/index.md
docs/images
docs/videos
docs/community
docs/robots_using
docs/about_and_contact
```

!!! note

If any new common pages are added, add the following metadata to the header of each shared `.md` file in the Rolling branch to use the "Edit this page" function:

```
---
edit_uri: https://github.com/ros-navigation/docs.nav2.org/tree/rolling/docs/
---
Comment thread
AJedancov marked this conversation as resolved.
```

Additionally, in the released branch, update the paths to the new common pages or directories as specified in sections [2.3](#23-mkdocs-material) and [3.1](#31-remove-shared-content).

### 3.2 Update links

- Update all GitHub links to point to new distribution branch where it applies.
- Update all links referring to ROS 2 Documentation.
Expand All @@ -95,7 +151,7 @@ github_repositories:

**Lyrical**: [https://docs.ros.org/en/lyrical/Tutorials/Beginner-CLI-Tools/Understanding-ROS2-Actions/Understanding-ROS2-Actions.html](https://docs.ros.org/en/lyrical/Tutorials/Beginner-CLI-Tools/Understanding-ROS2-Actions/Understanding-ROS2-Actions.html)

### 3.2 Review tutorials
### 3.3 Review tutorials

Review [tutorials][tutorials] for compatibility with the new distribution, including API and behavior changes.

Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,4 @@ exclude_docs: |
adaptive_tolerance_goal_checker_illustration.py
CancelCoverage.md
ComputeCoveragePath.md
README.md
Loading