From 38b57bb6aeaa235eb9f8059d76fcec55c9f788f0 Mon Sep 17 00:00:00 2001 From: Max Isbey <224885523+maxisbey@users.noreply.github.com> Date: Mon, 27 Jul 2026 22:56:59 +0000 Subject: [PATCH] docs: fix off-by-one hl_lines in apps.md The tutorial001.py snippet gained an import line, shifting every highlighted line down by one; both blocks referencing it now highlight the intended lines instead of blanks. No-Verification-Needed: doc-only line-number fix --- docs/advanced/apps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced/apps.md b/docs/advanced/apps.md index 87e260f014..a60c997b42 100644 --- a/docs/advanced/apps.md +++ b/docs/advanced/apps.md @@ -20,7 +20,7 @@ then come back. ## A clock with a face -```python title="server.py" hl_lines="18 21 29 31" +```python title="server.py" hl_lines="19 22 30 32" --8<-- "docs_src/apps/tutorial001.py" ``` @@ -51,7 +51,7 @@ The model reads `content`; the iframe is for humans. A UI-capable host still fee the text result to the model, and a text-only client gets *only* that. So the canonical pattern is one tool, two answers. Look at `get_time` again: -```python title="server.py" hl_lines="22-26" +```python title="server.py" hl_lines="23-27" --8<-- "docs_src/apps/tutorial001.py" ```