From f0483ed2f8e1915eef1a1daad661082b5a460e6b Mon Sep 17 00:00:00 2001 From: LioRitter Date: Wed, 20 May 2026 12:48:49 +0000 Subject: [PATCH 1/5] trying to understand how language support works --- wiki/tutorials/getting-started/de.yml | 4 ++++ wiki/tutorials/getting-started/en.yml | 1 + wiki/tutorials/getting-started/page.kubedoc | 4 +--- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 wiki/tutorials/getting-started/de.yml diff --git a/wiki/tutorials/getting-started/de.yml b/wiki/tutorials/getting-started/de.yml new file mode 100644 index 00000000..bc627058 --- /dev/null +++ b/wiki/tutorials/getting-started/de.yml @@ -0,0 +1,4 @@ +title: "Erste Schritte" +description: "Grundlagen von KubeJS" + +warning: ">>> Es ist wichtig zuerst die Grundlagen der Programmierung in JavaScript zu verstehen, bevor du startest KubeJS zu benutzen!<<<" \ No newline at end of file diff --git a/wiki/tutorials/getting-started/en.yml b/wiki/tutorials/getting-started/en.yml index 7f3229bc..088c33a4 100644 --- a/wiki/tutorials/getting-started/en.yml +++ b/wiki/tutorials/getting-started/en.yml @@ -1,2 +1,3 @@ title: "Getting Started" description: "Basics of KubeJS" +warning: ">>> warning It is mandatory that you learn the basics of programming and JavaScript before you start using KubeJS!<<<" \ No newline at end of file diff --git a/wiki/tutorials/getting-started/page.kubedoc b/wiki/tutorials/getting-started/page.kubedoc index e60d1bfd..391d2d22 100644 --- a/wiki/tutorials/getting-started/page.kubedoc +++ b/wiki/tutorials/getting-started/page.kubedoc @@ -1,6 +1,4 @@ ->>> warning -It is mandatory that you learn the basics of programming and JavaScript before you start using KubeJS! -<<< +{warning} Starting off, you will need a code editor. A code editor will make your code more readable, and help you find errors you have made. We recommend [Visual Studio Code](https://code.visualstudio.com/), which has native support for JS. From 3f474c49e988c0c9635ab76f8c2f9a93d347a4aa Mon Sep 17 00:00:00 2001 From: LioRitter Date: Wed, 20 May 2026 13:01:15 +0000 Subject: [PATCH 2/5] try number 2 --- wiki/tutorials/getting-started/en.yml | 4 +++- wiki/tutorials/getting-started/page.kubedoc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wiki/tutorials/getting-started/en.yml b/wiki/tutorials/getting-started/en.yml index 088c33a4..8886a009 100644 --- a/wiki/tutorials/getting-started/en.yml +++ b/wiki/tutorials/getting-started/en.yml @@ -1,3 +1,5 @@ title: "Getting Started" description: "Basics of KubeJS" -warning: ">>> warning It is mandatory that you learn the basics of programming and JavaScript before you start using KubeJS!<<<" \ No newline at end of file +warning1: ">>> warning" +warning2: "It is mandatory that you learn the basics of programming and JavaScript before you start using KubeJS!" +warning3: "<<<" \ No newline at end of file diff --git a/wiki/tutorials/getting-started/page.kubedoc b/wiki/tutorials/getting-started/page.kubedoc index 391d2d22..04c7cd1a 100644 --- a/wiki/tutorials/getting-started/page.kubedoc +++ b/wiki/tutorials/getting-started/page.kubedoc @@ -1,4 +1,6 @@ -{warning} +{warning1} +{warning2} +{warning3} Starting off, you will need a code editor. A code editor will make your code more readable, and help you find errors you have made. We recommend [Visual Studio Code](https://code.visualstudio.com/), which has native support for JS. From 85814bb8d4ac19e161d02215180c18a69b1a3928 Mon Sep 17 00:00:00 2001 From: LioRitter Date: Wed, 20 May 2026 13:03:17 +0000 Subject: [PATCH 3/5] added the working way to the warning --- wiki/tutorials/getting-started/de.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wiki/tutorials/getting-started/de.yml b/wiki/tutorials/getting-started/de.yml index bc627058..0f28b6ca 100644 --- a/wiki/tutorials/getting-started/de.yml +++ b/wiki/tutorials/getting-started/de.yml @@ -1,4 +1,5 @@ title: "Erste Schritte" description: "Grundlagen von KubeJS" - -warning: ">>> Es ist wichtig zuerst die Grundlagen der Programmierung in JavaScript zu verstehen, bevor du startest KubeJS zu benutzen!<<<" \ No newline at end of file +warning1: ">>> warning" +warning2: "Es ist wichtig zuerst die Grundlagen der Programmierung in JavaScript zu verstehen, bevor du startest KubeJS zu benutzen!" +warning3: "<<<" \ No newline at end of file From 4291dbad4f008765dca2d22126acde55b11be7bd Mon Sep 17 00:00:00 2001 From: LioRitter Date: Wed, 20 May 2026 13:33:26 +0000 Subject: [PATCH 4/5] translated all of the getting started page to german --- wiki/tutorials/getting-started/de.yml | 33 ++++++++++++--- wiki/tutorials/getting-started/en.yml | 33 ++++++++++++--- wiki/tutorials/getting-started/page.kubedoc | 45 ++++++++++----------- 3 files changed, 78 insertions(+), 33 deletions(-) diff --git a/wiki/tutorials/getting-started/de.yml b/wiki/tutorials/getting-started/de.yml index 0f28b6ca..7f68290e 100644 --- a/wiki/tutorials/getting-started/de.yml +++ b/wiki/tutorials/getting-started/de.yml @@ -1,5 +1,28 @@ -title: "Erste Schritte" -description: "Grundlagen von KubeJS" -warning1: ">>> warning" -warning2: "Es ist wichtig zuerst die Grundlagen der Programmierung in JavaScript zu verstehen, bevor du startest KubeJS zu benutzen!" -warning3: "<<<" \ No newline at end of file +title: "Erste Schritte" +description: "Grundlagen von KubeJS" + +warning1: ">>> warning" +warning2: "Es ist wichtig zuerst die Grundlagen der Programmierung in JavaScript zu verstehen, bevor du startest KubeJS zu benutzen!" +warning3: "<<<" +l1: "Zunächst benötigst du einen Code-Editor. Ein Code-Editor macht deinen Code lesbarer und hilft dir, Fehler zu finden." +l2: "Wir empfehlen [Visual Studio Code](https://code.visualstudio.com/), das native Unterstützung für JS bietet." +l3: "" +l4: "# ProbeJS verwenden" +l5: "ProbeJS ist ein unverzichtbares Addon für KubeJS, das Code-Vervollständigung auf Basis generierter TypeScript-Dateien ermöglicht." +l6: "Es kann dir helfen, Methoden und Felder zu finden, und bietet Dokumentation für Methoden, Funktionen und Event-Handler." +l7: "" +l8: "Um ProbeJS zu verwenden, musst du zunächst dein Spiel mit ProbeJS und KubeJS starten, eine Welt betreten und den Befehl `/probejs dump` ausführen." +l9: "Dieser Befehl generiert alle Typings (Dokumentation) im Ordner deines Modpacks." +l10: "" +l11: "Als nächstes musst du den Ordner deines Modpacks (egal ob er .minecraft oder der Name deines Modpacks ist) in Visual Studio Code öffnen und den `kubejs`-Ordner aufrufen." +l12: "" +l13: "# Die Ordnerstruktur" +l14: "Die Kategorie [Folder Structure](https://kubejs.com/wiki/folder-structure) erklärt die `kubejs`-Ordnerstruktur ausführlicher." +l15: "Derzeit gibt es 3 Ordner, die du kennen solltest:" +l16: "- `server_scripts`" +l17: "- `client_scripts`" +l18: "- `startup_scripts`" +l19: "Dies sind **Skript-Ordner**, in denen du deine Skripte schreiben wirst." +l20: "" +l21: "Jetzt bist du bereit, KubeJS zu verwenden!" +l22: "Schau dir die anderen Wiki-Seiten für weitere Informationen an, und wenn du noch Fragen hast, frag gerne im [latvian.dev Discord Server]({discord-url})!" \ No newline at end of file diff --git a/wiki/tutorials/getting-started/en.yml b/wiki/tutorials/getting-started/en.yml index 8886a009..11e922ab 100644 --- a/wiki/tutorials/getting-started/en.yml +++ b/wiki/tutorials/getting-started/en.yml @@ -1,5 +1,28 @@ -title: "Getting Started" -description: "Basics of KubeJS" -warning1: ">>> warning" -warning2: "It is mandatory that you learn the basics of programming and JavaScript before you start using KubeJS!" -warning3: "<<<" \ No newline at end of file +title : "Getting Started" +description : "Basics of KubeJS" + +warning1 : ">>> warning" +warning2 : "It is mandatory that you learn the basics of programming and JavaScript before you start using KubeJS!" +warning3 : "<<<" +l1: "Starting off, you will need a code editor. A code editor will make your code more readable, and help you find errors you have made." +l2: "We recommend [Visual Studio Code](https://code.visualstudio.com/), which has native support for JS." +l3: "" +l4: "# Using ProbeJS" +l5: "ProbeJS is an essential addon for KubeJS that allows for code completion based on generated TypeScript files." +l6: "It can help you find methods and fields, and provide documentation for methods, functions, and event handlers." +l7: "" +l8: "To use ProbeJS, you first need to start up your game with both it and KubeJS installed, go into a world, and run the command `/probejs dump`." +l9: "This command will generate all the typings (documentation) within your modpack's folder." +l10: "" +l11: "The next thing you need to do is open your modpack's folder (be it named .minecraft, or your modpack's name) in Visual Studio Code and open the `kubejs` folder." +l12: "" +l13: "# The Folder Structure" +l14: "The [Folder Structure](https://kubejs.com/wiki/folder-structure) category explains the `kubejs` folder structure in more depth." +l15: "For now, there are 3 folders that you should be aware of:" +l16: "- `server_scripts`" +l17: "- `client_scripts`" +l18: "- `startup_scripts`" +l19: "These are **Script Folders** in which you'll write your scripts." +l20: "" +l21: "Now, you should be ready to begin using KubeJS!" +l22: "Look to the other wiki pages for more info, and if you have any more questions, feel free to ask in the [latvian.dev Discord Server]({discord-url})!" diff --git a/wiki/tutorials/getting-started/page.kubedoc b/wiki/tutorials/getting-started/page.kubedoc index 04c7cd1a..452441e7 100644 --- a/wiki/tutorials/getting-started/page.kubedoc +++ b/wiki/tutorials/getting-started/page.kubedoc @@ -1,26 +1,25 @@ {warning1} {warning2} {warning3} - -Starting off, you will need a code editor. A code editor will make your code more readable, and help you find errors you have made. -We recommend [Visual Studio Code](https://code.visualstudio.com/), which has native support for JS. - -# Using ProbeJS -ProbeJS is an essential addon for KubeJS that allows for code completion based on generated TypeScript files. -It can help you find methods and fields, and provide documentation for methods, functions, and event handlers. - -To use ProbeJS, you first need to start up your game with both it and KubeJS installed, go into a world, and run the command `/probejs dump`. -This command will generate all the typings (documentation) within your modpack's folder. - -The next thing you need to do is open your modpack's folder (be it named .minecraft, or your modpack's name) in Visual Studio Code and open the `kubejs` folder. - -# The Folder Structure -The [Folder Structure](https://kubejs.com/wiki/folder-structure) category explains the `kubejs` folder structure in more depth. -For now, there are 3 folders that you should be aware of: -- `server_scripts` -- `client_scripts` -- `startup_scripts` -These are **Script Folders** in which you'll write your scripts. - -Now, you should be ready to begin using KubeJS! -Look to the other wiki pages for more info, and if you have any more questions, feel free to ask in the [latvian.dev Discord Server]({discord-url})! \ No newline at end of file +{l1} +{l2} +{l3} +{l4} +{l5} +{l6} +{l7} +{l8} +{l9} +{l10} +{l11} +{l12} +{l13} +{l14} +{l15} +{l16} +{l17} +{l18} +{l19} +{l20} +{l21} +{l22} \ No newline at end of file From 96ffac6868cec04a49882c44a976b192d0f831dd Mon Sep 17 00:00:00 2001 From: LioRitter Date: Wed, 20 May 2026 13:38:16 +0000 Subject: [PATCH 5/5] empty lines do not work --- wiki/tutorials/getting-started/page.kubedoc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wiki/tutorials/getting-started/page.kubedoc b/wiki/tutorials/getting-started/page.kubedoc index 452441e7..54615223 100644 --- a/wiki/tutorials/getting-started/page.kubedoc +++ b/wiki/tutorials/getting-started/page.kubedoc @@ -3,16 +3,12 @@ {warning3} {l1} {l2} -{l3} {l4} {l5} {l6} -{l7} {l8} {l9} -{l10} {l11} -{l12} {l13} {l14} {l15} @@ -20,6 +16,5 @@ {l17} {l18} {l19} -{l20} {l21} {l22} \ No newline at end of file