Add a help link and bug-report button to the user navbar
Serves docs/guida-utente.md as plain text at GET /guida (no markdown rendering, kept simple) and links it from the navbar next to a "Segnala un bug" button. The bug-report link is a placeholder GitHub issues URL (REPLACE_ME) until a real repo exists. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
67f70465e9
commit
c4f6f2eed7
2 files changed
+12
-2
No files matched your search
@@ -95,4 +95,12 @@ async def admin_panel() -> FileResponse:
|
||||
return FileResponse("app/static/admin.html", headers=_NO_STORE_HEADERS)
|
||||
|
||||
|
||||
@app.get("/guida", include_in_schema=False)
|
||||
async def user_guide() -> FileResponse:
|
||||
"""Serves docs/guida-utente.md as plain text so it opens inline in the
|
||||
browser (no markdown rendering — keeps this simple), linked from the
|
||||
navbar's help button in app/static/index.html."""
|
||||
return FileResponse("docs/guida-utente.md", media_type="text/plain; charset=utf-8")
|
||||
|
||||
|
||||
app.mount("/", StaticFiles(directory="app/static", html=True), name="static")
|
||||
Reference in new issue
Block a user