summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-20 23:21:41 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-20 23:21:41 +0200
commit4b3f2aff171313893c944381f102972558b35e22 (patch)
tree2e7303d83ec6dbb3c72c48a04dd9d2b0e7f937ed
parent5b665a840bd3193c9be7b21fbe6f66e119e92d74 (diff)
downloadserver-4b3f2aff171313893c944381f102972558b35e22.tar.gz
Set mobile viewport on docs.
-rw-r--r--public/docs/architecture.html1
-rw-r--r--public/docs/database.html1
-rw-r--r--public/docs/index.html1
-rw-r--r--public/docs/install.html5
-rw-r--r--public/docs/module.html12
-rw-r--r--public/docs/production.html1
-rw-r--r--public/docs/style.css4
-rw-r--r--public/docs/tips.html1
8 files changed, 20 insertions, 6 deletions
diff --git a/public/docs/architecture.html b/public/docs/architecture.html
index 9b0aada..4b22f8f 100644
--- a/public/docs/architecture.html
+++ b/public/docs/architecture.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>Architecture Overview</title>
<link rel="stylesheet" href="style.css">
<body>
diff --git a/public/docs/database.html b/public/docs/database.html
index f4ec4c2..27ae6d9 100644
--- a/public/docs/database.html
+++ b/public/docs/database.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>Database Overview</title>
<link rel="stylesheet" href="style.css">
<body>
diff --git a/public/docs/index.html b/public/docs/index.html
index 87dd954..f983b89 100644
--- a/public/docs/index.html
+++ b/public/docs/index.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>Documentation</title>
<link rel="stylesheet" href="style.css">
<body>
diff --git a/public/docs/install.html b/public/docs/install.html
index 1b227ba..0537a82 100644
--- a/public/docs/install.html
+++ b/public/docs/install.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>RTT: Getting Started</title>
<link rel="stylesheet" href="style.css">
<body>
@@ -56,7 +57,9 @@ They also need to be registered in the database.
Check out a game module:
<pre>
-git clone https://git.rally-the-troops.com/modules/field-cloth-gold public/field-cloth-gold
+git clone \
+ https://git.rally-the-troops.com/modules/field-cloth-gold
+ public/field-cloth-gold
</pre>
<p>
diff --git a/public/docs/module.html b/public/docs/module.html
index c75020f..a3a4483 100644
--- a/public/docs/module.html
+++ b/public/docs/module.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>Module Overview</title>
<link rel="stylesheet" href="style.css">
<body>
@@ -69,8 +70,9 @@ The game landing page on the server has a bit of text introducing the game, and
<xmp>
<p>
-Dolorum fugiat dolor temporibus. Debitis ea non illo sed debitis cupiditate
-ipsum illo. Eos eos molestias illo quisquam dicta.
+Dolorum fugiat dolor temporibus. Debitis ea non illo sed
+debitis cupiditate ipsum illo. Eos eos molestias illo
+quisquam dicta.
<ul>
<li> <a href="info/rules.html">Rules</a>
@@ -119,7 +121,11 @@ The game needs a play.html file using the following template:
<!doctype html>
<html lang="en">
<head>
- <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, interactive-widget=resizes-content, viewport-fit=cover">
+ <meta name="viewport" content="width=device-width,
+ height=device-height,
+ user-scalable=no,
+ interactive-widget=resizes-content,
+ viewport-fit=cover">
<meta name="theme-color" content="#444">
<meta charset="UTF-8">
<title>
diff --git a/public/docs/production.html b/public/docs/production.html
index 2cb82a0..e737bb6 100644
--- a/public/docs/production.html
+++ b/public/docs/production.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>Public Server</title>
<link rel="stylesheet" href="style.css">
<body>
diff --git a/public/docs/style.css b/public/docs/style.css
index 845f9e3..c387442 100644
--- a/public/docs/style.css
+++ b/public/docs/style.css
@@ -3,10 +3,10 @@ xmp, pre { background-color: #fafafa; }
xmp, pre { border: 1px solid gray; }
h1, h2, h3 { color: brown; }
-xmp, pre { white-space: pre-wrap; }
+pre.wrap, xmp.wrap { white-space: pre-wrap }
html { margin: 0; padding: 0; line-height: 1.5; }
-body { padding: 1rem 2rem; margin: 0 auto; max-width: 45rem; }
+body { padding: 0rem 1rem; margin: 0 auto; max-width: 45rem; }
xmp, pre { min-width: fit-content; }
h1, h2, h3 { margin: 2rem 0 1rem 0; padding: 0; font-weight: normal; font-family: sans-serif; }
h1 { font-size: 1.8rem; }
diff --git a/public/docs/tips.html b/public/docs/tips.html
index 8e331c7..518ebe5 100644
--- a/public/docs/tips.html
+++ b/public/docs/tips.html
@@ -1,4 +1,5 @@
<!doctype html>
+<meta name="viewport" content="width=device-width">
<title>Tips &amp; Tricks</title>
<link rel="stylesheet" href="style.css">
<style>