diff options
-rw-r--r-- | docs/server/toolbox.md | 13 | ||||
-rw-r--r-- | public/common/markdown.css (renamed from public/docs/style.css) | 9 | ||||
-rw-r--r-- | server.js | 2 |
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"; } @@ -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>` |