Skip to content

Commit 2ced777

Browse files
authored
Merge pull request #53 from space-ros/migrate-from-docker-and-make-to-pixi
Migrate docs to Pixi to simplify workflow
2 parents 3850721 + d686062 commit 2ced777

File tree

9 files changed

+6127
-114
lines changed

9 files changed

+6127
-114
lines changed

.github/workflows/spaceros.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,21 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515

16-
- name: Setup Python
17-
uses: actions/setup-python@v1
16+
- uses: prefix-dev/setup-pixi@v0.9.1
1817
with:
19-
python-version: 3.8
18+
pixi-version: v0.56.0
19+
cache: true
2020

21-
- name: Install dependencies with pip
22-
run: |
23-
pip install --no-warn-script-location --user -r requirements.txt -c constraints.txt
24-
25-
- name: Build
26-
run: make html
27-
- name: Test
28-
run: make test
21+
- name: Build and test
22+
run: pixi run ci
2923

3024
deploy:
31-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-24.04
3226
permissions:
3327
contents: write
3428
needs: test
@@ -37,17 +31,13 @@ jobs:
3731
- name: Checkout sources
3832
uses: actions/checkout@v2
3933

40-
- name: Setup Python
41-
uses: actions/setup-python@v1
34+
- uses: prefix-dev/setup-pixi@v0.9.1
4235
with:
43-
python-version: 3.8
44-
45-
- name: Install dependencies with pip
46-
run: |
47-
pip install --no-warn-script-location --user -r requirements.txt -c constraints.txt
36+
pixi-version: v0.56.0
37+
cache: true
4838

49-
- name: Build
50-
run: make multiversion
39+
- name: Build multiversion docs
40+
run: pixi run deploy
5141

5242
- name: Deploy to GitHub Pages
5343
uses: JamesIves/github-pages-deploy-action@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ build/
22
_build/
33
.idea/
44
.vscode/
5+
6+
# Pixi
7+
.pixi/

Makefile

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,68 @@
33
This repository contains the sources for the Space ROS documentation which is hosted as: https://space-ros.github.io/docs
44
The sources from this repository are built by GitHub Actions.
55

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+
651
## Contributing to the documentation
752

853
Contributions to this site are most welcome.
954
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.
1055
Most of the guidelines there apply but the branch structure is much simpler as Space ROS currently has only one supported distribution.
1156

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+
1268
## Contributing to Space ROS
1369

1470
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).

constraints.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.

docker/image/Dockerfile

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)