From 217bf1897f239e77782f5e999f3847100e8329ed Mon Sep 17 00:00:00 2001 From: skyash-dev Date: Mon, 22 Dec 2025 23:29:57 +0530 Subject: [PATCH 1/3] docs: fix incorrect height value in conditionals tutorial --- src/content/tutorials/en/conditionals-and-interactivity.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/tutorials/en/conditionals-and-interactivity.mdx b/src/content/tutorials/en/conditionals-and-interactivity.mdx index 73766e6078..499f8a3724 100644 --- a/src/content/tutorials/en/conditionals-and-interactivity.mdx +++ b/src/content/tutorials/en/conditionals-and-interactivity.mdx @@ -524,7 +524,7 @@ function draw() {   fill("green"); -  rect(0, horizon, 400, 400); +  rect(0, horizon, 400, 200); } ``` From bd17e187cf96c4390aae35326611a2b891933533 Mon Sep 17 00:00:00 2001 From: skyash-dev Date: Tue, 23 Dec 2025 14:23:44 +0530 Subject: [PATCH 2/3] docs: fix "Filter by keyword" input overlapping text --- src/components/PageHeader/RootPage.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageHeader/RootPage.astro b/src/components/PageHeader/RootPage.astro index 16c61136e4..2ba914234c 100644 --- a/src/components/PageHeader/RootPage.astro +++ b/src/components/PageHeader/RootPage.astro @@ -12,7 +12,7 @@ const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color"; ---

{title}

{subtitle}

From 5e82f3bffc606614147b63550bc1c1cd693b40b5 Mon Sep 17 00:00:00 2001 From: skyash-dev Date: Tue, 23 Dec 2025 14:53:39 +0530 Subject: [PATCH 3/3] docs: replace loop length with segments and declare move in repeating-with-loops tutorial --- src/content/tutorials/en/repeating-with-loops.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/tutorials/en/repeating-with-loops.mdx b/src/content/tutorials/en/repeating-with-loops.mdx index 18b05f2e3d..46f3ab0bbb 100644 --- a/src/content/tutorials/en/repeating-with-loops.mdx +++ b/src/content/tutorials/en/repeating-with-loops.mdx @@ -199,7 +199,7 @@ Above `setup()`: In `draw()`: - After the code that draws the finish line, declare a new local variable `x` to position all the body segments: `let x = circX;` -- Add a *for loop* using: `for (let i = 0; i < length; i += 1) { }` +- Add a *for loop* using: `for (let i = 0; i < segments; i += 1) { }` - A *for loop* will repeat the code we write inside the curly brackets multiple times.  - Move the lines of code that draw the `circle()` into the curly brackets of the *for loop*. - After the for loop, add: `circX += spacing`  @@ -936,7 +936,7 @@ function moveCaterpillars() {   for (let i = 0; i < numCaterpillars; i += 1) {     //Give each caterpillar a     //random speed. -    move = random(5, 30); +    let move = random(5, 30);     caterpillarEnds[i] += move; } } @@ -1001,7 +1001,7 @@ function moveCaterpillars() {   for (let i = 0; i < numCaterpillars; i += 1) {     //Give each caterpillar a     //random speed. -    move = random(5, 30); +    let move = random(5, 30);     // Update caterpillars' x-coordinates     caterpillarEnds[i] += move;