[PR #1030] [MERGED] Website: a documentation section for the whole project, replacing the server page #3002

Closed
opened 2026-11-02 16:00:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/site-docs


📝 Commits (1)

  • a13e6b4 Website: a documentation section for the whole project, replacing the server page

📊 Changes

28 files changed (+1000 additions, -74 deletions)

View changed files

📝 website/Caddyfile (+6 -2)
📝 website/Dockerfile (+1 -0)
📝 website/LEGAL.md (+10 -1)
📝 website/README.md (+17 -4)
📝 website/build.mjs (+95 -11)
➕ website/docs/contributing.md (+56 -0)
➕ website/docs/faq.md (+71 -0)
➕ website/docs/hosting.md (+162 -0)
➕ website/docs/index.md (+33 -0)
➕ website/docs/install.md (+50 -0)
➕ website/docs/modpacks.md (+48 -0)
➕ website/docs/mods.md (+46 -0)
➕ website/docs/multiplayer.md (+41 -0)
➕ website/docs/nav.json (+7 -0)
➕ website/docs/performance.md (+50 -0)
➕ website/docs/settings.md (+72 -0)
➕ website/docs/troubleshooting.md (+55 -0)
➕ website/public/media/docs/servers-backups.webp (+0 -0)
➕ website/public/media/docs/servers-create.webp (+0 -0)
➕ website/public/media/docs/servers-dashboard.webp (+0 -0)

...and 8 more files

📄 Description

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

What and why

Ludovic: "On the site, replace the Rust server page with a whole documentation of the entire Horizon project, much clearer." This replaces /server with a Docs section (/docs): a left navigation and 11 plain pages, players first, then hosters, then contributors. /server redirects (301) to /docs/hosting. The README rewrite is a separate PR that follows.

New docs structure (website/docs/*.md, order in website/docs/nav.json):

  • Start here: What Horizon is (and is not: Java mod jars don't run; supported systems), Install and first launch (downloads per OS, prepare, updating, stable/beta, Versions page)
  • Playing: Settings worth knowing (presets, LOD, Graphics API on Windows, shader packs, resource packs, controllers, extras), Multiplayer (play with friends, LAN, joining servers, online mode), Logs, crashes and bug reports
  • Hosting: Host a server (the launcher's Servers page with its exact button names and screenshots, then the command line)
  • Going further: Modpacks, Mods and data packs, Performance
  • Project: Contribute, FAQ

How it is built: one Markdown file per page, rendered by build.mjs with src/markdown.js (new site option: heading ids, figures from ![caption](/media/...), links between pages) into src/docs.html. The build fails on any broken link between pages, heading anchor or missing image. The sitemap is now written by the build. Dockerfile copies docs/; hosting is otherwise unchanged (Caddyfile gets the /server redirect and the /docs/<page> rewrite).

Only what players can download today is claimed:

  • Microsoft sign-in is stated as not available (Horizon joins offline-mode servers only).
  • The launcher's Servers page (#1009, #1017, #1026) is marked "next launcher release"; the command line is documented as working today. Once a launcher release with the Servers page is published, that callout in website/docs/hosting.md (and its mention in Install) can be reworded.
  • Beta to stable promotion after 6 h (#1012) is "coming"; signed releases are mentioned, and the page says the launcher does not check the signature yet (it doesn't on main).
  • Performance: no client-vs-vanilla numbers are published, so the page says so and shows only Horizon's own before/after and the published server four-way benchmark.
  • Data packs: only functions, function tags, predicates and item modifiers (what datapack.rs loads).

How tested

  • node build.mjs: builds 11 docs pages; a deliberately broken link, anchor and image each fail the build (checked).
  • Served with node serve.mjs: /, /docs, /docs/, every page 200, /server 301 to /docs/hosting, unknown page 404. Pages checked at 1440 px and 390 px (mobile, collapsed docs menu).
  • All 27 external links in the docs return 200.
  • python3 tools/check_public_tree.py: passed.
  • Not run: Caddy (not installed on this Mac); the Caddyfile edit is two redir lines, a path_regexp rewrite and the no-cache matcher. Please look at it when it deploys (/docs/hosting and /server).

Screenshots, before (/server page, home) and after (all docs pages, desktop and mobile): ~/code/horizon-parity/shots/site-docs-1/ on the Mac mini (before-*.png, after-*.png).

What needs Ludovic

Nothing to decide. Railway redeploys the site from website/ on merge (no hosting change).

🤖 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/1030 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/site-docs` --- ### 📝 Commits (1) - [`a13e6b4`](https://github.com/horizon-rust/horizon/commit/a13e6b40ce0e9252468682843135c908dab8f1e3) Website: a documentation section for the whole project, replacing the server page ### 📊 Changes **28 files changed** (+1000 additions, -74 deletions) <details> <summary>View changed files</summary> 📝 `website/Caddyfile` (+6 -2) 📝 `website/Dockerfile` (+1 -0) 📝 `website/LEGAL.md` (+10 -1) 📝 `website/README.md` (+17 -4) 📝 `website/build.mjs` (+95 -11) ➕ `website/docs/contributing.md` (+56 -0) ➕ `website/docs/faq.md` (+71 -0) ➕ `website/docs/hosting.md` (+162 -0) ➕ `website/docs/index.md` (+33 -0) ➕ `website/docs/install.md` (+50 -0) ➕ `website/docs/modpacks.md` (+48 -0) ➕ `website/docs/mods.md` (+46 -0) ➕ `website/docs/multiplayer.md` (+41 -0) ➕ `website/docs/nav.json` (+7 -0) ➕ `website/docs/performance.md` (+50 -0) ➕ `website/docs/settings.md` (+72 -0) ➕ `website/docs/troubleshooting.md` (+55 -0) ➕ `website/public/media/docs/servers-backups.webp` (+0 -0) ➕ `website/public/media/docs/servers-create.webp` (+0 -0) ➕ `website/public/media/docs/servers-dashboard.webp` (+0 -0) _...and 8 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why Ludovic: "On the site, replace the Rust server page with a whole documentation of the entire Horizon project, much clearer." This replaces `/server` with a Docs section (`/docs`): a left navigation and 11 plain pages, players first, then hosters, then contributors. `/server` redirects (301) to `/docs/hosting`. The README rewrite is a separate PR that follows. New docs structure (`website/docs/*.md`, order in `website/docs/nav.json`): - **Start here:** What Horizon is (and is not: Java mod jars don't run; supported systems), Install and first launch (downloads per OS, prepare, updating, stable/beta, Versions page) - **Playing:** Settings worth knowing (presets, LOD, Graphics API on Windows, shader packs, resource packs, controllers, extras), Multiplayer (play with friends, LAN, joining servers, online mode), Logs, crashes and bug reports - **Hosting:** Host a server (the launcher's Servers page with its exact button names and screenshots, then the command line) - **Going further:** Modpacks, Mods and data packs, Performance - **Project:** Contribute, FAQ How it is built: one Markdown file per page, rendered by `build.mjs` with `src/markdown.js` (new `site` option: heading ids, figures from `![caption](/media/...)`, links between pages) into `src/docs.html`. The build fails on any broken link between pages, heading anchor or missing image. The sitemap is now written by the build. `Dockerfile` copies `docs/`; hosting is otherwise unchanged (Caddyfile gets the `/server` redirect and the `/docs/<page>` rewrite). Only what players can download today is claimed: - Microsoft sign-in is stated as not available (Horizon joins offline-mode servers only). - The launcher's Servers page (#1009, #1017, #1026) is marked **"next launcher release"**; the command line is documented as working today. **Once a launcher release with the Servers page is published, that callout in `website/docs/hosting.md` (and its mention in Install) can be reworded.** - Beta to stable promotion after 6 h (#1012) is "coming"; signed releases are mentioned, and the page says the launcher does not check the signature yet (it doesn't on main). - Performance: no client-vs-vanilla numbers are published, so the page says so and shows only Horizon's own before/after and the published server four-way benchmark. - Data packs: only functions, function tags, predicates and item modifiers (what `datapack.rs` loads). ## How tested - `node build.mjs`: builds 11 docs pages; a deliberately broken link, anchor and image each fail the build (checked). - Served with `node serve.mjs`: `/`, `/docs`, `/docs/`, every page 200, `/server` 301 to `/docs/hosting`, unknown page 404. Pages checked at 1440 px and 390 px (mobile, collapsed docs menu). - All 27 external links in the docs return 200. - `python3 tools/check_public_tree.py`: passed. - Not run: Caddy (not installed on this Mac); the Caddyfile edit is two `redir` lines, a `path_regexp` rewrite and the `no-cache` matcher. Please look at it when it deploys (`/docs/hosting` and `/server`). Screenshots, before (`/server` page, home) and after (all docs pages, desktop and mobile): `~/code/horizon-parity/shots/site-docs-1/` on the Mac mini (`before-*.png`, `after-*.png`). ## What needs Ludovic Nothing to decide. Railway redeploys the site from `website/` on merge (no hosting change). 🤖 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-02 16:00:45 +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#3002
No description provided.