From 2aa1d5a8c4ed381c5128fe5461cda87ae622c2fa Mon Sep 17 00:00:00 2001 From: Uzebu Ansel <102417781+AnseloOriginal@users.noreply.github.com> Date: Wed, 8 Oct 2025 09:05:29 +0100 Subject: [PATCH 1/3] Fixed bad url in array and structures page The URL to JSON Loader was leading to a 404 page due to wrong redirection. --- .../all-features/variables/structures-and-arrays/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md b/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md index 160b66bcf0..0202a6b741 100644 --- a/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md +++ b/docs/gdevelop5/all-features/variables/structures-and-arrays/index.md @@ -22,7 +22,7 @@ You can use this data type to organize related variables within a single variabl In programming languages, this data type is often referred to as an _object_, _map_, _hash_, or *dictionary*. -Structures can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../extensions/jsonresource-loader/). +Structures can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../../extensions/jsonresource-loader/). ![](structure-variable.png) @@ -33,7 +33,7 @@ An Array variable, also sometimes called _list_ in programming languages, is lik Each variable in an Array has an index, which defines their position in the array. The indices begin at 0 and go up to however long the array is. -Arrays can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../extensions/jsonresource-loader/). +Arrays can be created in the Variables Editor, using events or by using an extension like [JSON resource loader](../../../extensions/jsonresource-loader/). ![](array-variable.png) From 188a96b650cdedd085e99a799033e1906331456c Mon Sep 17 00:00:00 2001 From: Uzebu Ansel <102417781+AnseloOriginal@users.noreply.github.com> Date: Thu, 9 Oct 2025 12:34:20 +0100 Subject: [PATCH 2/3] Fixed spelling issues --- .../events/js-code/javascript-in-extensions/index.md | 2 +- package-lock.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 package-lock.json diff --git a/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md b/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md index e053b6d2c9..a6d629f139 100644 --- a/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md +++ b/docs/gdevelop5/events/js-code/javascript-in-extensions/index.md @@ -7,7 +7,7 @@ title: Use JavaScript in extensions After [creating a new extension](/gdevelop5/extensions/create/), you need to define an action with a [JS event](/gdevelop5/events/js-code/) to declare the library code. -In order to get the library code, you can copy the content of a bundled library for instance a UMD one. You can usually find bundled libraries in the **node_modules** folder of a JS project after the installation of the library with a packet manager. +In order to get the library code, you can copy the content of a bundled library for instance a UMD one. You can usually find bundled libraries in the **node_modules** folder of a JS project after the installation of the library with a package manager. Bundled libraries have some extra code at the beginning and the end of the file to bundle the library. This code is not needed. Instead, the classes are added to the `gdjs` namespace like in the following code: diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000000..3389ca1474 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "GDevelop-documentation", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} From 373e31c443f9802cc2c44c89558159d0bdaa9e04 Mon Sep 17 00:00:00 2001 From: Uzebu Ansel <102417781+AnseloOriginal@users.noreply.github.com> Date: Thu, 9 Oct 2025 12:39:34 +0100 Subject: [PATCH 3/3] Remove package-lock.jsom --- package-lock.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 3389ca1474..0000000000 --- a/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "GDevelop-documentation", - "lockfileVersion": 3, - "requires": true, - "packages": {} -}