From e1391fd57cf4c4c392a7578f18b0f36e064e2eab Mon Sep 17 00:00:00 2001 From: limzykenneth Date: Sun, 31 May 2026 18:21:17 +0100 Subject: [PATCH 1/3] Fix reference link not matching case sensitive URL --- src/pages/_utils.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/_utils.ts b/src/pages/_utils.ts index 7a86210390..f7d3d417aa 100644 --- a/src/pages/_utils.ts +++ b/src/pages/_utils.ts @@ -26,12 +26,22 @@ interface EntryWithId { */ export const getCollectionInDefaultLocale = async ( collectionName: C, -): Promise[]> => - await getCollection(collectionName, (entry: unknown) => { +): Promise[]> => { + const collection = await getCollection(collectionName, (entry: unknown) => { const { id } = entry as EntryWithId; return id.startsWith(`${defaultLocale}/`); }); + if (collectionName === "reference") { + collection.forEach((entry) => { + if (entry.filePath) { + entry.id = entry.filePath.split("/").slice(3).join("/").replace(/\.mdx$/, ""); + } + }); + } + return collection; +}; + /** * Retreives all the entries in the given collection for a given locale, and * includes entries in the default locale for entries that aren't localized From 7b822e9d354909c4d244631062ad219d17aaa1ed Mon Sep 17 00:00:00 2001 From: limzykenneth Date: Sun, 31 May 2026 18:23:11 +0100 Subject: [PATCH 2/3] Remove unintended reference entry --- .../reference/en/p5/makeGuardedCallbacks.mdx | 43 ------------------- .../reference/en/p5/vectorValidation.mdx | 20 --------- 2 files changed, 63 deletions(-) delete mode 100644 src/content/reference/en/p5/makeGuardedCallbacks.mdx delete mode 100644 src/content/reference/en/p5/vectorValidation.mdx diff --git a/src/content/reference/en/p5/makeGuardedCallbacks.mdx b/src/content/reference/en/p5/makeGuardedCallbacks.mdx deleted file mode 100644 index 22403c3ee6..0000000000 --- a/src/content/reference/en/p5/makeGuardedCallbacks.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: makeGuardedCallbacks -submodule: '' -file: src/strands/strands_transpiler.js -description: > -

Transpiles a p5.strands callback into executable JavaScript by applying - - a multi-pass AST transformation pipeline.

- -

Pipeline stages:

- -
  • Collect uniform callback names

    - -
    • Identifies functions passed into uniform() so they are excluded from - transformation
  • transformSetCallsInControlFlow

    - -
    • Rewrites .set() calls inside control flow into - intermediate variable assignments
  • Non-control-flow - transformations

    - -
    • Applies ASTCallbacks to transform expressions, assignments, - etc.
    • Skips IfStatement and ForStatement (handled - later)
  • transformHelperFunctionEarlyReturns

    - -
    • Converts early returns in helper functions into a single return value - pattern
  • Control flow transformation (post-order)

    - -
    • Transforms IfStatement → __p5.strandsIf
    • Transforms - ForStatement → __p5.strandsFor
    • Handles variable propagation across - branches/loops

This staged approach ensures correct - ordering and avoids transformation conflicts.

-line: 1692 -isConstructor: false -itemtype: method -example: [] -class: p5 -overloads: - - params: [] -chainable: false ---- - - -# makeGuardedCallbacks diff --git a/src/content/reference/en/p5/vectorValidation.mdx b/src/content/reference/en/p5/vectorValidation.mdx deleted file mode 100644 index c7dc03b8c6..0000000000 --- a/src/content/reference/en/p5/vectorValidation.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: vectorValidation -submodule: '' -file: src/math/patch-vector.js -description: |- - Each of the following decorators validates the data on vector operations. - These ensure that the arguments are consistently formatted, and that - pre-conditions are met. -line: 83 -isConstructor: false -itemtype: method -example: [] -class: p5 -overloads: - - params: [] -chainable: false ---- - - -# vectorValidation From fc1b968ea67a334723d315b60cf6acc9fa233eec Mon Sep 17 00:00:00 2001 From: limzykenneth Date: Sun, 31 May 2026 22:27:28 +0100 Subject: [PATCH 3/3] Update cloudflare action to v4 --- .github/workflows/beta_deploy.yml | 2 +- .github/workflows/deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/beta_deploy.yml b/.github/workflows/beta_deploy.yml index 699f4098ce..c659f95c09 100644 --- a/.github/workflows/beta_deploy.yml +++ b/.github/workflows/beta_deploy.yml @@ -28,7 +28,7 @@ jobs: - name: Build website run: npm run build - name: Deploy to Cloudflare Workers - uses: cloudflare/wrangler-action@v3 + uses: cloudflare/wrangler-action@v4 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f63fc0c264..2889d2afac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,7 +28,7 @@ jobs: - name: Build website run: npm run build - name: Deploy to Cloudflare Workers - uses: cloudflare/wrangler-action@v3 + uses: cloudflare/wrangler-action@v4 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}