Fix tutorials route to pass correct template variables

This commit is contained in:
rob 2026-01-01 05:23:24 -04:00
parent d072d7ccad
commit 427dfcb669
1 changed files with 4 additions and 3 deletions

View File

@ -528,13 +528,14 @@ def tutorials():
@web_bp.route("/tutorials/<path:path>", 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",