From fa563c7dd1266da920c654e97f7ce1ae2b3acdea Mon Sep 17 00:00:00 2001 From: Gustavo Date: Sun, 29 Nov 2026 15:15:37 -0300 Subject: [PATCH] manual: drop the protocol and implementer chapters (they live in the protocol repo) --- README.md | 2 +- manual/chapters.typ | 6 ------ manual/chapters/21-protocol-1-0.typ | 8 -------- manual/chapters/22-implementers.typ | 8 -------- manual/chapters/23-implementers-client-1-0.typ | 8 -------- manual/chapters/24-implementers-server-1-0.typ | 8 -------- manual/chapters/25-implementers-client-0-75.typ | 8 -------- manual/chapters/26-implementers-server-0-75.typ | 8 -------- manual/index.typ | 2 +- manual/tools/gen_docs.py | 7 ------- 10 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 manual/chapters/21-protocol-1-0.typ delete mode 100644 manual/chapters/22-implementers.typ delete mode 100644 manual/chapters/23-implementers-client-1-0.typ delete mode 100644 manual/chapters/24-implementers-server-1-0.typ delete mode 100644 manual/chapters/25-implementers-client-0-75.typ delete mode 100644 manual/chapters/26-implementers-server-0-75.typ diff --git a/README.md b/README.md index 2e0fb51..cca779c 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ cd server && docker compose up -d # the server in a container (~16 MB, from | | | | --- | --- | -| [The documentation site](https://ngspades.github.io/server/) | all of it as HTML and PDF: the user manual (install, configure, run, administer), the complete Lua plugin reference, and the notes below (hosting, RCON, bots, the 0.75 profile, protocol 1.0, the implementers' guides). The Typst sources are in [manual/](manual/) (`cd manual && make site`); the notes are the files of [docs/](docs/), rendered from them | +| [The documentation site](https://ngspades.github.io/server/) | all of it as HTML and PDF: the user manual (install, configure, run, administer), the complete Lua plugin reference, and the notes below (hosting, RCON, bots, the 0.75 profile). The Typst sources are in [manual/](manual/) (`cd manual && make site`); the notes are the files of [docs/](docs/), rendered from them | | [docs/protocol-1.0.md](docs/protocol-1.0.md) | protocol 1.0: the wire, every packet, the join, the entities | | [docs/implementers/](docs/implementers/) | writing a compatible client or server, for 0.75 and for 1.0 | | [docs/plan-075-server.md](docs/plan-075-server.md) | the 0.75 profile: what it speaks and what it leaves out | diff --git a/manual/chapters.typ b/manual/chapters.typ index 6992006..b019823 100644 --- a/manual/chapters.typ +++ b/manual/chapters.typ @@ -21,10 +21,4 @@ (file: "18-map-memory", title: "Map memory", part: "Hosting notes"), (file: "19-bots-design", title: "Bots: design and behaviour", part: "Design notes"), (file: "20-plan-075-server", title: "The 0.75 profile: plan and notes", part: "Design notes"), - (file: "21-protocol-1-0", title: "Protocol 1.0: the server's reference", part: "Protocol and implementers"), - (file: "22-implementers", title: "Implementers' guides", part: "Protocol and implementers"), - (file: "23-implementers-client-1-0", title: "Writing a 1.0 client", part: "Protocol and implementers"), - (file: "24-implementers-server-1-0", title: "Writing a 1.0 server", part: "Protocol and implementers"), - (file: "25-implementers-client-0-75", title: "Writing a 0.75 client", part: "Protocol and implementers"), - (file: "26-implementers-server-0-75", title: "Writing a 0.75 server", part: "Protocol and implementers"), ) diff --git a/manual/chapters/21-protocol-1-0.typ b/manual/chapters/21-protocol-1-0.typ deleted file mode 100644 index fafc1c2..0000000 --- a/manual/chapters/21-protocol-1-0.typ +++ /dev/null @@ -1,8 +0,0 @@ -#import "/template.typ": * -#import "@preview/cmarker:0.1.6" -// a link to another note is a page link in the HTML and plain text in a PDF -#show link: it => context { - if type(it.dest) == str and it.dest.ends-with(".html") and target() != "html" { it.body } else { it } -} -// the note is docs/protocol-1.0.md, copied to gen/md by tools/gen_docs.py -#cmarker.render(read("/gen/md/21-protocol-1-0.md"), h1-level: 1) diff --git a/manual/chapters/22-implementers.typ b/manual/chapters/22-implementers.typ deleted file mode 100644 index b10f7f0..0000000 --- a/manual/chapters/22-implementers.typ +++ /dev/null @@ -1,8 +0,0 @@ -#import "/template.typ": * -#import "@preview/cmarker:0.1.6" -// a link to another note is a page link in the HTML and plain text in a PDF -#show link: it => context { - if type(it.dest) == str and it.dest.ends-with(".html") and target() != "html" { it.body } else { it } -} -// the note is docs/implementers/README.md, copied to gen/md by tools/gen_docs.py -#cmarker.render(read("/gen/md/22-implementers.md"), h1-level: 1) diff --git a/manual/chapters/23-implementers-client-1-0.typ b/manual/chapters/23-implementers-client-1-0.typ deleted file mode 100644 index c56f116..0000000 --- a/manual/chapters/23-implementers-client-1-0.typ +++ /dev/null @@ -1,8 +0,0 @@ -#import "/template.typ": * -#import "@preview/cmarker:0.1.6" -// a link to another note is a page link in the HTML and plain text in a PDF -#show link: it => context { - if type(it.dest) == str and it.dest.ends-with(".html") and target() != "html" { it.body } else { it } -} -// the note is docs/implementers/client-1.0.md, copied to gen/md by tools/gen_docs.py -#cmarker.render(read("/gen/md/23-implementers-client-1-0.md"), h1-level: 1) diff --git a/manual/chapters/24-implementers-server-1-0.typ b/manual/chapters/24-implementers-server-1-0.typ deleted file mode 100644 index 25c0d78..0000000 --- a/manual/chapters/24-implementers-server-1-0.typ +++ /dev/null @@ -1,8 +0,0 @@ -#import "/template.typ": * -#import "@preview/cmarker:0.1.6" -// a link to another note is a page link in the HTML and plain text in a PDF -#show link: it => context { - if type(it.dest) == str and it.dest.ends-with(".html") and target() != "html" { it.body } else { it } -} -// the note is docs/implementers/server-1.0.md, copied to gen/md by tools/gen_docs.py -#cmarker.render(read("/gen/md/24-implementers-server-1-0.md"), h1-level: 1) diff --git a/manual/chapters/25-implementers-client-0-75.typ b/manual/chapters/25-implementers-client-0-75.typ deleted file mode 100644 index ab37c44..0000000 --- a/manual/chapters/25-implementers-client-0-75.typ +++ /dev/null @@ -1,8 +0,0 @@ -#import "/template.typ": * -#import "@preview/cmarker:0.1.6" -// a link to another note is a page link in the HTML and plain text in a PDF -#show link: it => context { - if type(it.dest) == str and it.dest.ends-with(".html") and target() != "html" { it.body } else { it } -} -// the note is docs/implementers/client-0.75.md, copied to gen/md by tools/gen_docs.py -#cmarker.render(read("/gen/md/25-implementers-client-0-75.md"), h1-level: 1) diff --git a/manual/chapters/26-implementers-server-0-75.typ b/manual/chapters/26-implementers-server-0-75.typ deleted file mode 100644 index 1b58d78..0000000 --- a/manual/chapters/26-implementers-server-0-75.typ +++ /dev/null @@ -1,8 +0,0 @@ -#import "/template.typ": * -#import "@preview/cmarker:0.1.6" -// a link to another note is a page link in the HTML and plain text in a PDF -#show link: it => context { - if type(it.dest) == str and it.dest.ends-with(".html") and target() != "html" { it.body } else { it } -} -// the note is docs/implementers/server-0.75.md, copied to gen/md by tools/gen_docs.py -#cmarker.render(read("/gen/md/26-implementers-server-0-75.md"), h1-level: 1) diff --git a/manual/index.typ b/manual/index.typ index 50ff57b..f0a008d 100644 --- a/manual/index.typ +++ b/manual/index.typ @@ -2,7 +2,7 @@ #import "/template.typ": * #import "/chapters.typ": chapters #chapter-page("index", "ngspades-server manual")[ - The documentation of *ngspades-server*, the game server of Nexgen Spades: the user manual (install it, configure it, run it for a community), the Lua plugin reference (plugins and game modes), and the notes on hosting, the remote console, the bots, the 0.75 profile, protocol 1.0 and writing a compatible client or server. The protocol itself, for anyone writing a client, is documented in its own repository: #link("https://ngspades.github.io/protocol/")[ngspades.github.io/protocol]. + The documentation of *ngspades-server*, the game server of Nexgen Spades: the user manual (install it, configure it, run it for a community), the Lua plugin reference (plugins and game modes), and the notes on hosting, the remote console, the bots and the 0.75 profile. This server implements the protocol; the protocol itself (wire format, and how to write a client or another server) is documented in its own repository: #link("https://ngspades.github.io/protocol/")[ngspades.github.io/protocol]. #html.elem("div", attrs: (class: "cards"))[ #for c in chapters { diff --git a/manual/tools/gen_docs.py b/manual/tools/gen_docs.py index 6e616cd..162a28c 100644 --- a/manual/tools/gen_docs.py +++ b/manual/tools/gen_docs.py @@ -21,15 +21,8 @@ "map-memory.md": "18-map-memory", "bots.md": "19-bots-design", "plan-075-server.md": "20-plan-075-server", - "protocol-1.0.md": "21-protocol-1-0", - "implementers/README.md": "22-implementers", - "implementers/client-1.0.md": "23-implementers-client-1-0", - "implementers/server-1.0.md": "24-implementers-server-1-0", - "implementers/client-0.75.md": "25-implementers-client-0-75", - "implementers/server-0.75.md": "26-implementers-server-0-75", } by_name = {pathlib.PurePath(k).name: v for k, v in NOTES.items()} -by_name["README.md"] = NOTES["implementers/README.md"] bad = 0 for note, slug in NOTES.items():