Rationalise docs part 1 #151

This commit is contained in:
Ian Renton
2026-09-23 17:31:44 +01:00
parent 31c7c2095e
commit b45a6d8b78
11 changed files with 37 additions and 263 deletions
+13 -3
View File
@@ -4,7 +4,7 @@ import os
import threading
import tornado
from tornado.web import StaticFileHandler
from tornado.web import RedirectHandler, StaticFileHandler
from core.config import (
ALLOW_SPOTTING,
@@ -221,10 +221,20 @@ class WebServer:
{"template_name": "status"},
),
(
r"/about",
r"/help",
PageTemplateHandler,
{"template_name": "about"},
{"template_name": "help/index"},
),
] + [
(
rf"/help/{page}",
PageTemplateHandler,
{"template_name": f"help/{page}"},
)
for page in ["about", "using", "faq", "accuracy", "privacy", "thanks"]
] + [
# Old "About" page URL, redirect for the benefit of existing links & bookmarks
(r"/about", RedirectHandler, {"url": "/help"}),
]
# Only allow the Add Spot page if spotting is allowed
if ALLOW_SPOTTING: