| """What this pipeline indexes. |
| |
| Split out so the rest of the scripts contain no ROS-specific knowledge. The |
| Zephyr build (github.com/eoinjordan/zephyrproject-rag) runs the same chunker, |
| retriever and trainer against a different config; keeping the project-specific |
| parts in one file is what makes that true rather than aspirational. |
| """ |
|
|
| from __future__ import annotations |
|
|
| PROJECT = "ROS 2" |
| REPO = "https://github.com/ros2/ros2_documentation.git" |
|
|
| |
| |
| |
| DEFAULT_REF = "rolling" |
|
|
| |
| DOC_ROOT = "source" |
|
|
| |
| |
| SKIP_DIRS = { |
| "_static", |
| "_templates", |
| "_build", |
| "images", |
| "Images", |
| } |
|
|
| |
| SKIP_FILES = { |
| "conf.py", |
| "index.rst", |
| "requirements.txt", |
| "404.rst", |
| } |
|
|
| |
| |
| |
| SKIP_SECTION_PATTERN = ( |
| r"changes since|package (list|changes)|^bugs?$|contributors|complete changelog" |
| ) |
|
|
| |
| |
| |
| |
| |
| HISTORICAL_PATTERN = r"Releases/|Release-Notes|Changelog|Distributions/" |
|
|
| |
| DOC_URL = "https://docs.ros.org/en/rolling/{path}.html" |
|
|
| SUMMARY = ( |
| "ROS 2 is an open-source robotics middleware suite: libraries and tools for " |
| "building robot applications, covering communication, tooling, simulation " |
| "and hardware abstraction." |
| ) |
|
|
| |
| |
| EXAMPLES = [ |
| "How do I write a minimal publisher and subscriber in Python?", |
| "What is the difference between a service and an action?", |
| "How do I create a custom message type in a package?", |
| "How do I configure QoS settings for a topic?", |
| "What does colcon build --symlink-install actually do?", |
| "How do I write a lifecycle node?", |
| ] |
|
|