[PR #2286] [MERGED] Move the website to its own repository (ludovic111/horizon-site) #4174

Closed
opened 2026-11-03 04:15:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2286
Author: @ludovic111
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: chore/site-repo-split


📝 Commits (1)

  • 4fe648b Move the website to its own repository (ludovic111/horizon-site)

📊 Changes

154 files changed (+97 additions, -16630 deletions)

View changed files

📝 .dockerignore (+0 -1)
📝 .gitattributes (+1 -1)
📝 AGENTS.md (+2 -1)
📝 CONTRIBUTING.md (+2 -2)
📝 ROADMAP.md (+8 -4)
📝 crates/horizon-server/panel/panel.css (+1 -1)
📝 crates/horizon-telemetry-server/README.md (+1 -1)
📝 crates/horizon-telemetry-server/src/classes.rs (+1 -1)
📝 crates/horizon-telemetry-server/src/summary.rs (+3 -3)
📝 crates/horizon-telemetry-server/tests/fixtures/benchmarks/README.md (+3 -2)
📝 crates/horizon-telemetry-server/tests/fixtures/benchmarks/expected.json (+0 -0)
📝 crates/horizon-telemetry-server/tests/fixtures/benchmarks/items.jsonl (+0 -0)
📝 crates/horizon-telemetry-server/tests/summary.rs (+3 -6)
📝 crates/horizon-theme/src/lib.rs (+8 -8)
📝 crates/horizon-theme/tokens.css (+0 -0)
📝 docs/agent-control.md (+1 -1)
📝 docs/api/README.md (+1 -1)
📝 docs/design-system.md (+4 -4)
📝 docs/media/banner.html (+4 -4)
📝 docs/media/brand/README.md (+4 -5)

...and 80 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Ludovic asked for the website to live in its own private repository. playhorizon.dev now deploys from
ludovic111/horizon-site, which holds the history of website/. Railway switched on 2026-10-26 and the site was
checked page by page. This PR removes website/ from horizon and moves the files the site still reads from here:

What Was Now Read by
Design tokens website/src/tokens.css crates/horizon-theme/tokens.css the site's build (from main); tokens_css_is_up_to_date still checks it against horizon_theme::css()
Roadmap data website/data/roadmap.json roadmap/roadmap.json the site's build, which serves it at /data/roadmap.json for Kira (unchanged URL)
Benchmark fixtures website/scripts/fixtures/benchmarks/ crates/horizon-telemetry-server/tests/fixtures/benchmarks/ the server's summary test; the site keeps a copy, and its test checks the copy against main
Web icons website/public/{favicon.svg,favicon-32.png,apple-touch-icon.png} docs/media/brand/web/ xtask icons writes them there; the site's npm run assets copies them

Also updated:

  • tools/pr_ready.py: no website area, and no special case for the tokens, since a file under crates/horizon-theme/ is already Rust.
  • tools/ci/rust_changes.py, xtask (tokens, icons) and tools/roadmap.py: build writes roadmap/roadmap.json. The website family now only covers PRs from before the split; an item the site alone ships takes shipped_in = "website" by hand.
  • The roadmap's four website/docs/*.md links now point to the playhorizon.dev pages.
  • Docs that pointed into website/: AGENTS.md, CONTRIBUTING.md, docs/design-system.md, docs/api/README.md, docs/agent-control.md, docs/versioning.md, docs/telemetry.md, roadmap/README.md, the brand README, the telemetry server's README and comments, panel.css and launcher/src/backend.rs.
  • Fonts in docs/media/banner.html, docs/media/brand/social/card.html and packaging/macos/background.html now point to crates/horizon-theme/fonts/*.ttf. card.html had an absolute path from an old worktree.
  • .gitattributes and .dockerignore.

The site's build reads the new paths first and falls back to the old ones, so it works before and after this
merges. A site-side follow-up drops the fallbacks once this is on main.

Rebuilding the site when horizon changes

Until now, Railway's watch patterns (/README.md, /launcher/links.json, /docs/api/**) redeployed the site.
For now a watcher on the Mac mini does it: every 10 minutes it compares the last main commit touching the files
the site reads, and runs railway redeploy --from-source when one changes. A GitHub workflow will replace it in
its own PR, which is held until Ludovic creates a Railway project token.

Open PRs that still change website/

They don't need a rebase for this. Their website part goes to ludovic111/horizon-site:

  • #1950 (rdbtCVS): only the generated website/data/roadmap.json. After this merges, python3 tools/roadmap.py build writes roadmap/roadmap.json instead.
  • #1924 (Murilinho145SG): website/docs/mods.md becomes docs/mods.md in horizon-site. The agents will port it when the PR merges.
  • #1906 (Lua mods): website/docs/lua-mods.md, make-a-mod.md and nav.json become docs/… in horizon-site, ported when it merges.
  • #1171 (macOS on Intel): website/docs/{hosting,index,install}.md and website/src/main.js become docs/… and src/main.js in horizon-site, ported when it merges.
  • #2274 (Sculk banner): already ported to horizon-site and live; the PR is closed.

How it was tested

  • python3 tools/pr_ready.py --quick (block below).
  • The telemetry server's tests (cargo test in crates/horizon-telemetry-server) with the fixtures at their new path.
  • python3 tools/roadmap.py build and check --offline: 93 items, all good. ROADMAP.md and roadmap.json regenerated.
  • The site built from this branch (HORIZON_CHECKOUT=<this worktree> node build.mjs): same page count, and /data/roadmap.json is byte-identical to roadmap/roadmap.json. node --test: 45/45.
  • Two Python tests fail here and on plain main alike, for environment reasons (no java on PATH, macOS /private tmp): test_parity_runner…test_reuses_until_an_input_or_output_changes and test_rust_parity…test_report_rejects_sources_changed_during_a_run.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 9cbf93a19, 2 min 34 s)

Check Result
Scope ⚠️ 154 files, +97 −16627; 14902 lines of code: over 500, split it if it can ship in parts; mixes CI, game, launcher
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 310 run, FAILED (errors=2) (35 s): the same 2 fail on plain main (environment, see above)
rustfmt ✅ (5 s)
clippy ✅ (50 s)
tests: horizon-server, horizon-theme, xtask ✅ 59 passed (18 s)
doc tests ✅ 0 passed
tokens.css up to date ✅ (1 s)
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (10 s)
launcher tests ✅ 137 passed (18 s)
Parity ➖ 83 affected, to run in CI (--quick): arrow, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, cauldron, chat_screen, command_exec and 71 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Telemetry server (own workspace): cargo fmt --check, cargo clippy --all-targets -D warnings, cargo test: 35 passed.

Needs Ludovic

Nothing for this PR. The workflow PR needs a Railway project token. In Railway: horizon-site → Settings → Tokens,
named "horizon main → site redeploy", environment production. Save it in 1Password (Agents) as
"Railway horizon-site deploy token".

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2286 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/site-repo-split` --- ### 📝 Commits (1) - [`4fe648b`](https://github.com/horizon-rust/horizon/commit/4fe648b674bb46026b7f200a68d228dd7c5378bb) Move the website to its own repository (ludovic111/horizon-site) ### 📊 Changes **154 files changed** (+97 additions, -16630 deletions) <details> <summary>View changed files</summary> 📝 `.dockerignore` (+0 -1) 📝 `.gitattributes` (+1 -1) 📝 `AGENTS.md` (+2 -1) 📝 `CONTRIBUTING.md` (+2 -2) 📝 `ROADMAP.md` (+8 -4) 📝 `crates/horizon-server/panel/panel.css` (+1 -1) 📝 `crates/horizon-telemetry-server/README.md` (+1 -1) 📝 `crates/horizon-telemetry-server/src/classes.rs` (+1 -1) 📝 `crates/horizon-telemetry-server/src/summary.rs` (+3 -3) 📝 `crates/horizon-telemetry-server/tests/fixtures/benchmarks/README.md` (+3 -2) 📝 `crates/horizon-telemetry-server/tests/fixtures/benchmarks/expected.json` (+0 -0) 📝 `crates/horizon-telemetry-server/tests/fixtures/benchmarks/items.jsonl` (+0 -0) 📝 `crates/horizon-telemetry-server/tests/summary.rs` (+3 -6) 📝 `crates/horizon-theme/src/lib.rs` (+8 -8) 📝 `crates/horizon-theme/tokens.css` (+0 -0) 📝 `docs/agent-control.md` (+1 -1) 📝 `docs/api/README.md` (+1 -1) 📝 `docs/design-system.md` (+4 -4) 📝 `docs/media/banner.html` (+4 -4) 📝 `docs/media/brand/README.md` (+4 -5) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Ludovic asked for the website to live in its own private repository. playhorizon.dev now deploys from **ludovic111/horizon-site**, which holds the history of `website/`. Railway switched on 2026-10-26 and the site was checked page by page. This PR removes `website/` from horizon and moves the files the site still reads from here: | What | Was | Now | Read by | |---|---|---|---| | Design tokens | `website/src/tokens.css` | `crates/horizon-theme/tokens.css` | the site's build (from main); `tokens_css_is_up_to_date` still checks it against `horizon_theme::css()` | | Roadmap data | `website/data/roadmap.json` | `roadmap/roadmap.json` | the site's build, which serves it at `/data/roadmap.json` for Kira (unchanged URL) | | Benchmark fixtures | `website/scripts/fixtures/benchmarks/` | `crates/horizon-telemetry-server/tests/fixtures/benchmarks/` | the server's summary test; the site keeps a copy, and its test checks the copy against main | | Web icons | `website/public/{favicon.svg,favicon-32.png,apple-touch-icon.png}` | `docs/media/brand/web/` | `xtask icons` writes them there; the site's `npm run assets` copies them | Also updated: - `tools/pr_ready.py`: no `website` area, and no special case for the tokens, since a file under `crates/horizon-theme/` is already Rust. - `tools/ci/rust_changes.py`, `xtask` (`tokens`, `icons`) and `tools/roadmap.py`: `build` writes `roadmap/roadmap.json`. The `website` family now only covers PRs from before the split; an item the site alone ships takes `shipped_in = "website"` by hand. - The roadmap's four `website/docs/*.md` links now point to the playhorizon.dev pages. - Docs that pointed into `website/`: AGENTS.md, CONTRIBUTING.md, docs/design-system.md, docs/api/README.md, docs/agent-control.md, docs/versioning.md, docs/telemetry.md, roadmap/README.md, the brand README, the telemetry server's README and comments, panel.css and launcher/src/backend.rs. - Fonts in `docs/media/banner.html`, `docs/media/brand/social/card.html` and `packaging/macos/background.html` now point to `crates/horizon-theme/fonts/*.ttf`. card.html had an absolute path from an old worktree. - `.gitattributes` and `.dockerignore`. The site's build reads the new paths first and falls back to the old ones, so it works before and after this merges. A site-side follow-up drops the fallbacks once this is on main. ## Rebuilding the site when horizon changes Until now, Railway's watch patterns (`/README.md`, `/launcher/links.json`, `/docs/api/**`) redeployed the site. For now a watcher on the Mac mini does it: every 10 minutes it compares the last main commit touching the files the site reads, and runs `railway redeploy --from-source` when one changes. A GitHub workflow will replace it in its own PR, which is held until Ludovic creates a Railway project token. ## Open PRs that still change `website/` They don't need a rebase for this. Their website part goes to ludovic111/horizon-site: - #1950 (rdbtCVS): only the generated `website/data/roadmap.json`. After this merges, `python3 tools/roadmap.py build` writes `roadmap/roadmap.json` instead. - #1924 (Murilinho145SG): `website/docs/mods.md` becomes `docs/mods.md` in horizon-site. The agents will port it when the PR merges. - #1906 (Lua mods): `website/docs/lua-mods.md`, `make-a-mod.md` and `nav.json` become `docs/…` in horizon-site, ported when it merges. - #1171 (macOS on Intel): `website/docs/{hosting,index,install}.md` and `website/src/main.js` become `docs/…` and `src/main.js` in horizon-site, ported when it merges. - #2274 (Sculk banner): already ported to horizon-site and live; the PR is closed. ## How it was tested - `python3 tools/pr_ready.py --quick` (block below). - The telemetry server's tests (`cargo test` in `crates/horizon-telemetry-server`) with the fixtures at their new path. - `python3 tools/roadmap.py build` and `check --offline`: 93 items, all good. ROADMAP.md and roadmap.json regenerated. - The site built from this branch (`HORIZON_CHECKOUT=<this worktree> node build.mjs`): same page count, and `/data/roadmap.json` is byte-identical to `roadmap/roadmap.json`. `node --test`: 45/45. - Two Python tests fail here and on plain main alike, for environment reasons (no `java` on PATH, macOS `/private` tmp): `test_parity_runner…test_reuses_until_an_input_or_output_changes` and `test_rust_parity…test_report_rejects_sources_changed_during_a_run`. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 9cbf93a19, 2 min 34 s) | Check | Result | | --- | --- | | Scope | ⚠️ 154 files, +97 −16627; 14902 lines of code: over 500, split it if it can ship in parts; mixes CI, game, launcher | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 310 run, FAILED (errors=2) (35 s): the same 2 fail on plain main (environment, see above) | | rustfmt | ✅ (5 s) | | clippy | ✅ (50 s) | | tests: horizon-server, horizon-theme, xtask | ✅ 59 passed (18 s) | | doc tests | ✅ 0 passed | | tokens.css up to date | ✅ (1 s) | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (10 s) | | launcher tests | ✅ 137 passed (18 s) | | Parity | ➖ 83 affected, to run in CI (--quick): arrow, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, cauldron, chat_screen, command_exec and 71 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Telemetry server (own workspace): `cargo fmt --check`, `cargo clippy --all-targets -D warnings`, `cargo test`: 35 passed. ## Needs Ludovic Nothing for this PR. The workflow PR needs a Railway project token. In Railway: horizon-site → Settings → Tokens, named "horizon main → site redeploy", environment production. Save it in 1Password (Agents) as "Railway horizon-site deploy token". 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:13 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4174
No description provided.