From 427dfcb669fc507aa1e9bb30fe3c251b5d419f9b Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 1 Jan 2026 05:23:24 -0400 Subject: [PATCH] Fix tutorials route to pass correct template variables --- src/smarttools/web/routes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/smarttools/web/routes.py b/src/smarttools/web/routes.py index 25d7146..4943864 100644 --- a/src/smarttools/web/routes.py +++ b/src/smarttools/web/routes.py @@ -528,13 +528,14 @@ def tutorials(): @web_bp.route("/tutorials/", endpoint="tutorials_path") def tutorials_path(path: str): - from .docs_content import get_doc + from .docs_content import get_doc, get_toc doc = get_doc(path) if doc: return render_template( "pages/docs.html", - doc=doc, - toc=None, # No sidebar for tutorial pages + page=doc, + toc=get_toc(), + current_path=path, ) return render_template( "pages/content.html",