|
3 | 3 | This repository contains the sources for the Space ROS documentation which is hosted as: https://space-ros.github.io/docs |
4 | 4 | The sources from this repository are built by GitHub Actions. |
5 | 5 |
|
| 6 | +## Quick Start with Pixi |
| 7 | + |
| 8 | +This project uses [Pixi](https://pixi.sh) for dependency management and task running. To get started: |
| 9 | + |
| 10 | +1. **Install Pixi** (if not already installed): |
| 11 | + Follow the installation instructions at https://pixi.sh |
| 12 | + |
| 13 | +2. **Install dependencies**: |
| 14 | + ```bash |
| 15 | + pixi install |
| 16 | + ``` |
| 17 | + |
| 18 | +3. **Build documentation**: |
| 19 | + ```bash |
| 20 | + # Build single version |
| 21 | + pixi run html |
| 22 | + |
| 23 | + # Build multi-version (for deployment) |
| 24 | + pixi run multiversion |
| 25 | + ``` |
| 26 | + |
| 27 | +4. **Run tests**: |
| 28 | + ```bash |
| 29 | + pixi run test |
| 30 | + ``` |
| 31 | + |
| 32 | +5. **Serve locally** (optional): |
| 33 | + ```bash |
| 34 | + pixi run serve |
| 35 | + ``` |
| 36 | + |
| 37 | +## Available Commands |
| 38 | + |
| 39 | +| Command | Description | |
| 40 | +|---------|-------------| |
| 41 | +| `pixi run html` | Build single version documentation | |
| 42 | +| `pixi run multiversion` | Build multi-version documentation | |
| 43 | +| `pixi run test` | Run doc8 linting tests | |
| 44 | +| `pixi run clean` | Clean build directory | |
| 45 | +| `pixi run serve` | Serve documentation locally | |
| 46 | +| `pixi run ci` | Run CI workflow (test + build) | |
| 47 | +| `pixi run deploy` | Run deployment workflow (test + multiversion) | |
| 48 | + |
| 49 | + |
| 50 | + |
6 | 51 | ## Contributing to the documentation |
7 | 52 |
|
8 | 53 | Contributions to this site are most welcome. |
9 | 54 | Please see the [Contributing to ROS 2 Documentation](https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing/Contributing-To-ROS-2-Documentation.html) page to learn more. |
10 | 55 | Most of the guidelines there apply but the branch structure is much simpler as Space ROS currently has only one supported distribution. |
11 | 56 |
|
| 57 | +### Development Workflow |
| 58 | + |
| 59 | +1. Fork and clone the repository |
| 60 | +2. Install dependencies: `pixi install` |
| 61 | +3. Make your changes to the documentation |
| 62 | +4. Test your changes: `pixi run test` |
| 63 | +5. Build and preview: `pixi run html && pixi run serve` |
| 64 | +6. Submit a pull request |
| 65 | + |
| 66 | + |
| 67 | + |
12 | 68 | ## Contributing to Space ROS |
13 | 69 |
|
14 | 70 | To contribute to the Space ROS and ROS 2 projects please refer to the [ROS 2 contributing guidelines](https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing.html). |
0 commit comments