From cf051fb57098ad2eb5508ba77120ac4f9157ca21 Mon Sep 17 00:00:00 2001 From: Latuuuuu Date: Wed, 25 Nov 2026 12:33:10 +0800 Subject: [PATCH] chore: move the shell repo to DIT-ROBOTICS Point the shell repo, docs site and image registry at the DIT-ROBOTICS organization (ghcr.io/dit-robotics). Domain repos in ditx.repos and ROS2X stay under SeanChangX until they move. --- .devcontainer/devcontainer.json | 2 +- .env.example | 2 +- .github/workflows/ci.yml | 6 ++--- .github/workflows/domain-ci.yml | 12 +++++----- README.md | 24 ++++++++----------- docker/compose.yaml | 8 +++---- docker/docker-bake.hcl | 6 ++--- docs/assets/term/MAP.md | 2 +- docs/assets/term/doctor-unreachable.svg | 2 +- docs/assets/term/doctor.svg | 2 +- docs/assets/term/lint-dry-run.svg | 24 +++++++++---------- docs/assets/term/tui-build-dry-run-result.svg | 2 +- docs/index.md | 2 +- docs/reference/config.md | 4 ++-- docs/reference/faq.md | 2 +- docs/tutorials/advanced/12-new-domain.md | 6 ++--- docs/tutorials/beginner/01-install.md | 2 +- docs/tutorials/beginner/02-first-build.md | 4 ++-- docs/tutorials/intermediate/09-git-ci.md | 2 +- mkdocs.yml | 6 ++--- tools/ditx/workspace.py | 2 +- tools/docs/shots.py | 4 ++-- tools/tests/test_cli.py | 6 ++--- 23 files changed, 64 insertions(+), 68 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a62786c..906d3ff 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,7 +4,7 @@ // compile_commands.json (from `ditx index`) resolve both inside and outside. { "name": "eurobot dev", - "image": "ghcr.io/seanchangx/eurobot-dev:develop", // published by CI; ditx image --target dev builds :local + "image": "ghcr.io/dit-robotics/eurobot-dev:develop", // published by CI; ditx image --target dev builds :local "workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", "workspaceFolder": "${localWorkspaceFolder}", "runArgs": ["--network=host", "--ipc=host"], diff --git a/.env.example b/.env.example index e58c9fd..e73bf2e 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ # Defaults for ditx. Copy to .env (git-ignored) or run `ditx init` to change them. ROS_DISTRO=humble -REGISTRY=ghcr.io/seanchangx +REGISTRY=ghcr.io/dit-robotics # dev image tag: develop = pull the image CI publishes from the develop branch (default); # local = built on this machine by `ditx image` (after changing the Dockerfile or dependencies) DIT_DEV_TAG=develop diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 273cc0c..e4154af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,10 @@ permissions: contents: read env: - REGISTRY: ghcr.io/seanchangx + REGISTRY: ghcr.io/dit-robotics # CI jobs build the dev image from THIS commit and run every stage inside it - DIT_DEV_IMAGE: ghcr.io/seanchangx/eurobot-dev:ci - DIT_CROSS_IMAGE: ghcr.io/seanchangx/eurobot-cross:ci + DIT_DEV_IMAGE: ghcr.io/dit-robotics/eurobot-dev:ci + DIT_CROSS_IMAGE: ghcr.io/dit-robotics/eurobot-cross:ci DIT_BAKE_CACHE: type=gha FORCE_COLOR: '1' diff --git a/.github/workflows/domain-ci.yml b/.github/workflows/domain-ci.yml index ed0263d..5a37cf3 100644 --- a/.github/workflows/domain-ci.yml +++ b/.github/workflows/domain-ci.yml @@ -1,11 +1,11 @@ # Reusable pipeline for domain repos (Eurobot-Main, Eurobot-Localization, ...). # A domain repo's whole CI is: # -# # .github/workflows/ci.yml in SeanChangX/Eurobot-Localization +# # .github/workflows/ci.yml in a domain repo, e.g. Eurobot-Localization # on: {pull_request: {}, push: {branches: [develop, main]}} # jobs: # ci: -# uses: SeanChangX/DIT-X/.github/workflows/domain-ci.yml@develop +# uses: DIT-ROBOTICS/DIT-X/.github/workflows/domain-ci.yml@develop # with: {domain: localization} # secrets: inherit # @@ -23,7 +23,7 @@ on: required: true type: string shell-ref: - description: Branch/tag of SeanChangX/DIT-X to test against + description: Branch/tag of DIT-ROBOTICS/DIT-X to test against required: false type: string default: develop @@ -55,15 +55,15 @@ jobs: ci: runs-on: ubuntu-latest env: - DIT_DEV_IMAGE: ghcr.io/seanchangx/eurobot-dev:ci + DIT_DEV_IMAGE: ghcr.io/dit-robotics/eurobot-dev:ci DIT_BAKE_CACHE: type=gha,scope=domain-dev DOMAIN: ${{ inputs.domain }} steps: - - name: Checkout shell (SeanChangX/DIT-X @ ${{ inputs.shell-ref }}) + - name: Checkout shell (DIT-ROBOTICS/DIT-X @ ${{ inputs.shell-ref }}) uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - repository: SeanChangX/DIT-X + repository: DIT-ROBOTICS/DIT-X ref: ${{ inputs.shell-ref }} token: ${{ secrets.DIT_SYNC_TOKEN || github.token }} - name: Checkout this domain into domains/${{ inputs.domain }} diff --git a/README.md b/README.md index 0ca4ae6..e24dee0 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ DIT-X · Eurobot workspace · build, test, deploy ``` -[![CI](https://github.com/SeanChangX/DIT-X/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/SeanChangX/DIT-X/actions/workflows/ci.yml) -[![Docs](https://github.com/SeanChangX/DIT-X/actions/workflows/docs.yml/badge.svg?branch=develop)](https://seanchangx.github.io/DIT-X/) +[![CI](https://github.com/DIT-ROBOTICS/DIT-X/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/DIT-ROBOTICS/DIT-X/actions/workflows/ci.yml) +[![Docs](https://github.com/DIT-ROBOTICS/DIT-X/actions/workflows/docs.yml/badge.svg?branch=develop)](https://dit-robotics.github.io/DIT-X/) [![ROS 2 Humble | Jazzy](https://img.shields.io/badge/ROS%202-Humble%20%7C%20Jazzy-22314E?logo=ros)](https://docs.ros.org/en/humble/) [![Docker](https://img.shields.io/badge/runs%20in-Docker-2496ED?logo=docker&logoColor=white)](docker/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) @@ -25,7 +25,7 @@ The repo is season-independent: each year continues on `develop`, and releases a Commits since the last release (`!` → major, `feat` → minor, `fix` → patch). The season goes in the release title (e.g. "v1.2.0 — Eurobot 2027 final"). No more `Eurobot--*` copies. -**Manual (中文教學)**: , built from `docs/` by +**Manual (中文教學)**: , built from `docs/` by `.github/workflows/docs.yml` (enable Pages → Source: GitHub Actions once). Local preview: `ditx docs`. ## Quick start @@ -34,7 +34,7 @@ Requirements: Linux with **git**, **python3**, **Docker** (with compose and buil goes on the host. ROS, compilers and linters all live in images. ```bash -git clone https://github.com/SeanChangX/DIT-X.git && cd DIT-X +git clone https://github.com/DIT-ROBOTICS/DIT-X.git && cd DIT-X ./install.sh # first: puts `ditx` on PATH + Tab completion (undo: --uninstall) ditx init # your team account on the robots, default robot, ROS distro ditx doctor # checks docker, disk, RAM budget, install, robots @@ -105,17 +105,13 @@ DIT-X/ ## Moving the repos -The five repos live in a personal account for now (`SeanChangX`). To move them to an -organization or to GitLab, transfer them and replace the owner in one go: +The shell repo lives in the `DIT-ROBOTICS` organization; its images go to `ghcr.io/dit-robotics`. +The domain repos in `ditx.repos` are still in a personal account (`SeanChangX`): the organization +already has older repos named `Eurobot-Main` and `Eurobot-Localization`, so the domain repos +move once their names are settled. Then point `ditx.repos` at them and, in every domain repo, the +reusable workflow (`uses: DIT-ROBOTICS/DIT-X/...`), and set the teams in `CODEOWNERS`. -```bash -git grep -lE 'SeanChangX/(DIT-X|Eurobot-)|ghcr\.io/seanchangx|seanchangx\.github\.io' | - xargs sed -i -E -e 's#SeanChangX/(DIT-X|Eurobot-)#/\1#g' \ - -e 's#ghcr\.io/seanchangx#ghcr.io/#g' -e 's#seanchangx\.github\.io#.github.io#g' -``` - -Run it in every domain repo too, then set the teams in `CODEOWNERS`. With a -registry available, CI can publish images again (see the header of `.github/workflows/ci.yml`). +ROS2X (`ditx app`) still comes from `SeanChangX/ROS2X` (`ghcr.io/seanchangx/ros2x`). ## Credits diff --git a/docker/compose.yaml b/docker/compose.yaml index 7180500..02ad391 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -38,19 +38,19 @@ services: main: <<: *ros profiles: [main] - image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-main:${TAG:-stable} + image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-main:${TAG:-stable} environment: {<<: *env, EUROBOT_CONTAINER: main} navigation: <<: *ros profiles: [navigation] - image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-navigation:${TAG:-stable} + image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-navigation:${TAG:-stable} environment: {<<: *env, EUROBOT_CONTAINER: navigation} localization: <<: *ros profiles: [localization] - image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-localization:${TAG:-stable} + image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-localization:${TAG:-stable} environment: {<<: *env, EUROBOT_CONTAINER: localization} # real sensors: uncomment and use the udev symlinks from infra/robot/udev # devices: ["/dev/dit-lidar:/dev/dit-lidar", "/dev/dit-imu:/dev/dit-imu"] @@ -58,7 +58,7 @@ services: vision: <<: *ros profiles: [vision] - image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-vision:${TAG:-stable} + image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-vision:${TAG:-stable} environment: {<<: *env, EUROBOT_CONTAINER: vision} # cameras: device_cgroup_rules: ["c 81:* rmw", "c 189:* rmw"] + /dev:/dev diff --git a/docker/docker-bake.hcl b/docker/docker-bake.hcl index 6b126cc..2d36aa3 100644 --- a/docker/docker-bake.hcl +++ b/docker/docker-bake.hcl @@ -1,7 +1,7 @@ # docker buildx bake -f docker/docker-bake.hcl [target] # Normally driven by `ditx image` / CI, which set the variables below. -variable "REGISTRY" { default = "ghcr.io/seanchangx" } +variable "REGISTRY" { default = "ghcr.io/dit-robotics" } variable "TAG" { default = "local" } variable "ROS_DISTRO" { default = "humble" } variable "PLATFORMS" { default = "linux/amd64" } @@ -26,8 +26,8 @@ function "labels" { result = { "org.opencontainers.image.title" = title "org.opencontainers.image.description" = description - "org.opencontainers.image.source" = "https://github.com/SeanChangX/DIT-X" - "org.opencontainers.image.url" = "https://seanchangx.github.io/DIT-X/" + "org.opencontainers.image.source" = "https://github.com/DIT-ROBOTICS/DIT-X" + "org.opencontainers.image.url" = "https://dit-robotics.github.io/DIT-X/" "org.opencontainers.image.licenses" = "MIT" "org.opencontainers.image.version" = TAG "org.opencontainers.image.revision" = REVISION diff --git a/docs/assets/term/MAP.md b/docs/assets/term/MAP.md index 7ab26c2..de8b73f 100644 --- a/docs/assets/term/MAP.md +++ b/docs/assets/term/MAP.md @@ -37,7 +37,7 @@ Kind: **det** = deterministic, regenerated and drift-checked in CI | `reference/commands.md` | 664 | `usage: ditx tui [flags]` | `help-tui.svg` (det) | | `reference/commands.md` | 680 | `usage: ditx completion SHELL [flags]` | `help-completion.svg` (det) | | `tutorials/advanced/15-cpp.md` | 31 | `localization_beacons/` | — (file tree, not command output) | -| `tutorials/beginner/02-first-build.md` | 56 | `▸ images humble · linux/amd64 → ghcr.io/seanchangx/eurobot-*:local` | — (rebuilds the shared :local images) | +| `tutorials/beginner/02-first-build.md` | 63 | `▸ images humble · linux/amd64 → ghcr.io/dit-robotics/eurobot-*:local` | — (rebuilds the shared :local images) | | `tutorials/beginner/04-first-package.md` | 42 | `domains/vision/src/vision_hello/` | — (file tree) | | `tutorials/beginner/04-first-package.md` | 195 | `data: 'hello #4 from vision'` | — (ros2 output) | diff --git a/docs/assets/term/doctor-unreachable.svg b/docs/assets/term/doctor-unreachable.svg index 8e0d1ba..5723092 100644 --- a/docs/assets/term/doctor-unreachable.svg +++ b/docs/assets/term/doctor-unreachable.svg @@ -69,7 +69,7 @@ disk: 13 GB free → a bit tight: images + builds want ~20 GB build budget: 3 colcon workers x make -j5, container RAM cap 24 GB ✓ - dev image ghcr.io/seanchangx/eurobot-dev:develop + dev image ghcr.io/dit-robotics/eurobot-dev:develop ✓ domains synced: main, navigation, localization, vision, arm ✗ diff --git a/docs/assets/term/doctor.svg b/docs/assets/term/doctor.svg index 8acb3bc..a7e216b 100644 --- a/docs/assets/term/doctor.svg +++ b/docs/assets/term/doctor.svg @@ -69,7 +69,7 @@ disk: 13 GB free → a bit tight: images + builds want ~20 GB build budget: 3 colcon workers x make -j5, container RAM cap 24 GB ✓ - dev image ghcr.io/seanchangx/eurobot-dev:develop + dev image ghcr.io/dit-robotics/eurobot-dev:develop ✗ domains synced: none → ditx sync diff --git a/docs/assets/term/lint-dry-run.svg b/docs/assets/term/lint-dry-run.svg index 41f2fd2..16d02ae 100644 --- a/docs/assets/term/lint-dry-run.svg +++ b/docs/assets/term/lint-dry-run.svg @@ -1,20 +1,20 @@ - - - + + + - + ~/DIT-X -$ - ditx -n lint -– dev image ghcr.io/seanchangx/eurobot-dev:develop (dry run) -– clang-format would check 6 C++ files (dry run) -– ruff would check the Python in base, tools and 0 domains (dry run) -– shellcheck would check 12 shell scripts (dry run) -– contract would validate base/eurobot_common/contract.yaml (dry run) -– boundaries would check that domains depend only on base (dry run) +$ + ditx -n lint +– dev image ghcr.io/dit-robotics/eurobot-dev:develop (dry run) +– clang-format would check 6 C++ files (dry run) +– ruff would check the Python in base, tools and 0 domains (dry run) +– shellcheck would check 12 shell scripts (dry run) +– contract would validate base/eurobot_common/contract.yaml (dry run) +– boundaries would check that domains depend only on base (dry run) diff --git a/docs/assets/term/tui-build-dry-run-result.svg b/docs/assets/term/tui-build-dry-run-result.svg index 2ef2420..b10c8bd 100644 --- a/docs/assets/term/tui-build-dry-run-result.svg +++ b/docs/assets/term/tui-build-dry-run-result.svg @@ -13,7 +13,7 @@ ditx build --dry-run --domain vision --clangd ▸ build humble/amd64 · 3 workers × make -j5 · RAM cap 24 GB → build/humble-amd64/ -– dev image ghcr.io/seanchangx/eurobot-dev:develop · RAM cap 24 GB (dry run) +– dev image ghcr.io/dit-robotics/eurobot-dev:develop · RAM cap 24 GB (dry run) – vision would colcon build domains/vision → build/humble-amd64/vision (dry run) – index would merge compile_commands.json for clangd (dry run) ✓ diff --git a/docs/index.md b/docs/index.md index 1e9ca25..0b0906f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -20,7 +20,7 @@ flowchart TB ## 快速開始 ```bash -git clone https://github.com/SeanChangX/DIT-X.git && cd DIT-X +git clone https://github.com/DIT-ROBOTICS/DIT-X.git && cd DIT-X ./install.sh # ditx 上 PATH、Tab 補全 ditx sync && ditx build && ditx test --integration ``` diff --git a/docs/reference/config.md b/docs/reference/config.md index 2dadad1..32760a6 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -74,7 +74,7 @@ tag = stable ```bash # Defaults for ditx. Copy to .env (git-ignored) or run `ditx init` to change them. ROS_DISTRO=humble -REGISTRY=ghcr.io/seanchangx +REGISTRY=ghcr.io/dit-robotics # dev image tag: develop (default) = pull the image CI publishes from the develop branch; # local = built on this machine by `ditx image` (after changing the Dockerfile or dependencies) DIT_DEV_TAG=develop @@ -89,7 +89,7 @@ DIT_ROBOT_USER=main | 變數 | 預設 | 說明 | |---|---|---| | `ROS_DISTRO` | `humble` | `humble`(機器人使用的版本)或 `jazzy`(未來支援) | -| `REGISTRY` | `ghcr.io/seanchangx` | image 名稱的前綴(目前 image 只在本機建置,不會下載) | +| `REGISTRY` | `ghcr.io/dit-robotics` | image 名稱的前綴(目前 image 只在本機建置,不會下載) | | `DIT_DEV_TAG` | `develop` | dev 與 cross image 的 tag:`develop` 使用 CI 發佈到 GHCR 的 image(自動 pull);`local` 使用在本機以 `ditx image` 建置的 image,修改 Dockerfile 或相依套件時使用 | | `DIT_DEV_IMAGE` | | 直接指定完整的 dev image 名稱(覆寫上述兩項) | | `DIT_ROBOT` | `sim` | 未指定 `-r` 時使用的機器人 | diff --git a/docs/reference/faq.md b/docs/reference/faq.md index be9923a..860e363 100644 --- a/docs/reference/faq.md +++ b/docs/reference/faq.md @@ -17,7 +17,7 @@ sudo usermod -aG docker $USER ``` -??? question "`dev image ghcr.io/seanchangx/eurobot-dev:local is not built yet`" +??? question "`dev image ghcr.io/dit-robotics/eurobot-dev:local is not built yet`" 你設定了 `DIT_DEV_TAG=local`(使用自己建置的 image),但還沒建置。建置一次即可(約 5–10 分鐘): ```bash diff --git a/docs/tutorials/advanced/12-new-domain.md b/docs/tutorials/advanced/12-new-domain.md index b66ca6b..f8d4f99 100644 --- a/docs/tutorials/advanced/12-new-domain.md +++ b/docs/tutorials/advanced/12-new-domain.md @@ -25,14 +25,14 @@ ## 前置條件 - 已完成 [11 修改共用介面](11-interfaces.md) -- 能在 repo 擁有者的帳號下建立 repo(目前是 `SeanChangX`;沒有權限時,請擁有者代為建立並邀請你) +- 能在 `DIT-ROBOTICS` 組織下建立 repo(沒有權限時,請組織 admin 代為建立並邀請你) ## 步驟 ### 1. 建立 repo ```bash -gh repo create SeanChangX/Eurobot-Arm --private --clone +gh repo create DIT-ROBOTICS/Eurobot-Arm --private --clone cd Eurobot-Arm git switch -c develop ``` @@ -44,7 +44,7 @@ git switch -c develop ```yaml domains/arm: type: git - url: https://github.com/SeanChangX/Eurobot-Arm.git + url: https://github.com/DIT-ROBOTICS/Eurobot-Arm.git version: develop ``` diff --git a/docs/tutorials/beginner/01-install.md b/docs/tutorials/beginner/01-install.md index 47c7491..5db21b3 100644 --- a/docs/tutorials/beginner/01-install.md +++ b/docs/tutorials/beginner/01-install.md @@ -61,7 +61,7 @@ git config --global user.email "you@example.com" ### 3. 取得工作區並安裝 `ditx` ```bash -git clone git@github.com:SeanChangX/DIT-X.git && cd DIT-X +git clone git@github.com:DIT-ROBOTICS/DIT-X.git && cd DIT-X ./install.sh exec $SHELL # 重開 shell,讓 PATH 與 Tab 補全生效 ``` diff --git a/docs/tutorials/beginner/02-first-build.md b/docs/tutorials/beginner/02-first-build.md index a391921..d66e301 100644 --- a/docs/tutorials/beginner/02-first-build.md +++ b/docs/tutorials/beginner/02-first-build.md @@ -49,7 +49,7 @@ ditx list ### 2. 準備 image -CI 會把 `develop` 的 image 發佈到 GHCR(`ghcr.io/seanchangx/eurobot-*:develop`,amd64 與 arm64),所以**不需要自己建置**:第一次執行 `ditx build` 時會自動 pull dev image(約 1 GB),`ditx up -r sim` 也會自動 pull runtime image。 +CI 會把 `develop` 的 image 發佈到 GHCR(`ghcr.io/dit-robotics/eurobot-*:develop`,amd64 與 arm64),所以**不需要自己建置**:第一次執行 `ditx build` 時會自動 pull dev image(約 1 GB),`ditx up -r sim` 也會自動 pull runtime image。 只有在你的分支修改了 Dockerfile 或新增相依套件(`package.xml` 的 ``)時,才需要在本機建置。`ditx build` 會先檢查 dev image 是否缺少你需要的相依套件,缺少時會直接提示這一步: @@ -61,7 +61,7 @@ DIT_DEV_TAG=local ditx build # 用自己建的 dev image 建置 要一直使用自己建置的 image,在 `.env` 設定 `DIT_DEV_TAG=local`,並把 `config/robots.ini` 中 sim 的 `tag` 改成 `local`。 ```text -▸ images humble · linux/amd64 → ghcr.io/seanchangx/eurobot-*:local +▸ images humble · linux/amd64 → ghcr.io/dit-robotics/eurobot-*:local ✓ images base, dev, navigation, vision, localization, main (loaded, 70 steps) 91s ``` diff --git a/docs/tutorials/intermediate/09-git-ci.md b/docs/tutorials/intermediate/09-git-ci.md index 792ca20..493e0db 100644 --- a/docs/tutorials/intermediate/09-git-ci.md +++ b/docs/tutorials/intermediate/09-git-ci.md @@ -18,7 +18,7 @@ flowchart LR - **tag `vX.Y.Z`**:正式發行版本。在 release commit 上固定 `ditx.repos` 中的版本;shell repo 的 tag 加上該檔案,即構成整台機器人的完整軟體。 版本號遵循 [SemVer](https://semver.org),由上一版之後的 Conventional Commits 決定:有 `!`(破壞相容)升主版號,有 `feat` 升次版號,只有 `fix` 升修補版號。第一版是 `v0.1.0`;`0.x` 代表介面仍可能變動,跑完一整個賽季且介面穩定後再發 `v1.0.0`。賽季寫在 release 標題,例如「v1.2.0 — Eurobot 2027 決賽版」。 -每個 domain 都是獨立的 domain repo,例如 `Eurobot-Main`、`Eurobot-Vision` 等,但 CI 邏輯全部集中在 shell repo:domain repo 的 `.github/workflows/ci.yml` 只有一行 `uses: SeanChangX/DIT-X/.github/workflows/domain-ci.yml@develop`,因此所有 domain 都使用相同的檢查方式。 +每個 domain 都是獨立的 domain repo,例如 `Eurobot-Main`、`Eurobot-Vision` 等,但 CI 邏輯全部集中在 shell repo:domain repo 的 `.github/workflows/ci.yml` 只有一行 `uses: DIT-ROBOTICS/DIT-X/.github/workflows/domain-ci.yml@develop`,因此所有 domain 都使用相同的檢查方式。 ## 前置條件 diff --git a/mkdocs.yml b/mkdocs.yml index 8495ac5..a49b547 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,9 +4,9 @@ site_name: DIT-X Docs site_description: DIT Robotics Eurobot 工作區(ditx)教學與參考文件 -site_url: https://seanchangx.github.io/DIT-X/ -repo_url: https://github.com/SeanChangX/DIT-X -repo_name: SeanChangX/DIT-X +site_url: https://dit-robotics.github.io/DIT-X/ +repo_url: https://github.com/DIT-ROBOTICS/DIT-X +repo_name: DIT-ROBOTICS/DIT-X edit_uri: edit/develop/docs/ copyright: >- © 2026 DIT Robotics · MIT License · diff --git a/tools/ditx/workspace.py b/tools/ditx/workspace.py index 5a61f2d..3226463 100644 --- a/tools/ditx/workspace.py +++ b/tools/ditx/workspace.py @@ -142,7 +142,7 @@ def robot_user(self): @property def registry(self): - return self.setting('REGISTRY', 'ghcr.io/seanchangx') + return self.setting('REGISTRY', 'ghcr.io/dit-robotics') def dev_image(self): return ( diff --git a/tools/docs/shots.py b/tools/docs/shots.py index 8572d1e..01e1fe2 100644 --- a/tools/docs/shots.py +++ b/tools/docs/shots.py @@ -1014,7 +1014,7 @@ def run(*a): def dev_image_present(env): tag = env.get('DIT_DEV_TAG') or os.environ.get('DIT_DEV_TAG') or 'develop' - image = f'ghcr.io/seanchangx/eurobot-dev:{tag}' + image = f'ghcr.io/dit-robotics/eurobot-dev:{tag}' r = subprocess.run(['docker', 'image', 'inspect', image], capture_output=True) return r.returncode == 0 @@ -1288,7 +1288,7 @@ def main(argv=None): p.add_argument('--branch', default='develop', help='--prepare: branch to clone') p.add_argument( '--cleaner-image', - default='ghcr.io/seanchangx/eurobot-dev:local', + default='ghcr.io/dit-robotics/eurobot-dev:local', help='--teardown: image used to delete root-owned files', ) p.add_argument( diff --git a/tools/tests/test_cli.py b/tools/tests/test_cli.py index 598fbb6..e3c9776 100644 --- a/tools/tests/test_cli.py +++ b/tools/tests/test_cli.py @@ -431,15 +431,15 @@ def ws_with_origin(self, origin): def test_ssh_shell_clones_domains_over_ssh(self): for origin in ( - 'git@github.com:SeanChangX/DIT-X.git', - 'ssh://git@github.com/SeanChangX/DIT-X', + 'git@github.com:DIT-ROBOTICS/DIT-X.git', + 'ssh://git@github.com/DIT-ROBOTICS/DIT-X', ): ws = self.ws_with_origin(origin) self.assertEqual(cli.clone_url(ws, self.URL), self.SSH) self.assertEqual(cli.clone_url(ws, self.URL.removesuffix('.git')), self.SSH) def test_https_shell_and_ci_keep_the_manifest_url(self): - for origin in ('https://github.com/SeanChangX/DIT-X', ''): + for origin in ('https://github.com/DIT-ROBOTICS/DIT-X', ''): self.assertEqual(cli.clone_url(self.ws_with_origin(origin), self.URL), self.URL)