summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-05-06 19:58:28 +0200
committerTor Andersson <tor@ccxvii.net>2025-05-06 20:00:03 +0200
commit64f345c56447fb01e73c99827c028f6507a1514b (patch)
treeca294e5418729a964e47b2dd1191dd18d2487054
parentef6892fd6a3c95d7076b0e707f20f38430d8948b (diff)
downloadserver-64f345c56447fb01e73c99827c028f6507a1514b.tar.gz
Docs improvements.
-rw-r--r--docs/server/toolbox.md13
-rw-r--r--public/common/markdown.css (renamed from public/docs/style.css)9
-rw-r--r--server.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/docs/server/toolbox.md b/docs/server/toolbox.md
index f589901..eeb778f 100644
--- a/docs/server/toolbox.md
+++ b/docs/server/toolbox.md
@@ -9,7 +9,7 @@ These programs can be invoked from the command line by running the "rtt"
command that is found in the "bin" directory.
I suggest creating a symlink to the "rtt" command somewhere in your PATH.
- ln -s ~/server/bin/rtt ~/.local/bin
+ ln -s ~/server/bin/rtt ~/.local/bin/rtt
Alternatively, you can edit your .profile to add the server bin directory to your PATH.
@@ -21,6 +21,8 @@ Check that the command works by running the command to create the database:
## Commands
+ usage: rtt <subcommand> [ arguments... ]
+
database management
init -- create database
@@ -42,15 +44,22 @@ module development
game debugging
+ show -- show game state
show-chat -- show game chat (for moderation)
- show-game -- show game state object
show-replay -- show game replay log
+ show-snap -- show game rewind snapshot
miscellaneous tools
update-covers -- generate cover thumbnails
update-elo -- recalculate Elo ratings
+archive database
+
+ archive-backup -- backup replay data into archive
+ archive-prune -- prune replay data from live database
+ archive-restore -- restore replay data from archive
+
## Miscellaneous
The "tools" directory holds various useful bits and bobs.
diff --git a/public/docs/style.css b/public/common/markdown.css
index 49c72c9..15b40cf 100644
--- a/public/docs/style.css
+++ b/public/common/markdown.css
@@ -18,11 +18,4 @@ pre { padding: 1rem; }
kbd { background-color: whitesmoke; padding: 0px 4px; border: 1px solid #444; }
dd { margin-bottom: 0.5rem; }
hr { margin: 2rem 0; border: none; border-top: 2px dotted brown; }
-article::after {
- display: block;
- margin: 2rem 0;
- color: brown;
- font-size: 1.8rem;
- text-align: center;
- content: "\2766";
-}
+article::after { display: block; margin: 2rem 0; color: brown; font-size: 1.8rem; text-align: center; content: "\2766"; }
diff --git a/server.js b/server.js
index 7070442..00e4d4a 100644
--- a/server.js
+++ b/server.js
@@ -4088,7 +4088,7 @@ wss.on("connection", (socket, req) => {
const docs_prolog = `<!doctype html>
<meta name="viewport" content="width=device-width">
-<link rel="stylesheet" href="/docs/style.css">
+<link rel="stylesheet" href="/common/markdown.css">
<title>TITLE</title>
<body><article>`