diff --git a/server.py b/server.py
index 5bd30eb..7ab9a56 100644
--- a/server.py
+++ b/server.py
@@ -3682,6 +3682,84 @@ async def download_client():
)
+# ============================================================================
+# Help / Documentation Routes
+# ============================================================================
+
+L2_DOCS_DIR = Path(__file__).parent
+COMMON_DOCS_DIR = Path(__file__).parent.parent / "common"
+
+L2_DOCS_MAP = {
+ "l2": ("L2 Server (ActivityPub)", L2_DOCS_DIR / "README.md"),
+ "common": ("Common Library", COMMON_DOCS_DIR / "README.md"),
+}
+
+
+@app.get("/help", response_class=HTMLResponse)
+async def help_index(request: Request):
+ """Documentation index page."""
+ username = get_user_from_cookie(request)
+
+ # Build doc links
+ doc_links = ""
+ for key, (title, path) in L2_DOCS_MAP.items():
+ if path.exists():
+ doc_links += f'''
+
+ View documentation{title}
+