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 }} 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:

- -

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 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