+ You can specify the event priority after each event syntax using the following syntax [with priority (lowest|low|normal|high|highest|monitor)] e.g. on spawn with priority lowest.
+ Note that not all of the events support event priority feature and they will throw an error.
+
+
${generate events desc_full.html}
diff --git a/doc-templates/js/main.js b/doc-templates/js/main.js
index 0b48675990d..802cea11505 100644
--- a/doc-templates/js/main.js
+++ b/doc-templates/js/main.js
@@ -90,7 +90,7 @@ document.querySelectorAll(".new-element").forEach((e) => {
// <> Search Bar
const versionComparePattern = /.*?(\d\.\d(?:\.\d|))(\+|-|).*/gi;
const versionPattern = / ?v(?:ersion|):(\d\.\d(?:\.\d|-(?:beta|alpha|dev)\d*|))(\+|-|)/gi;
-const typePattern = / ?t(?:ype|):(condition|expression|type|effect|event|section|effectsection|function)/gi;
+const typePattern = / ?t(?:ype|):(\w+)/gi;
const newPattern = / ?is:(new)/gi;
const resultsFoundText = "result(s) found";
@@ -241,7 +241,7 @@ function searchNow(value = "") {
let regex = new RegExp(searchValue, "gi")
let name = document.querySelectorAll(`#${e.id} .item-title h1`)[0].textContent // Syntax Name
let desc = document.querySelectorAll(`#${e.id} .item-description`)[0].textContent // Syntax Desc
- let keywords = e.getAttribute("data-keywords")
+ let keywords = e.getAttribute("data-keywords")
let id = e.id // Syntax ID
let filtersFound = false;
@@ -285,7 +285,7 @@ function searchNow(value = "") {
filtersFound = true
if ((regex.test(pattern.textContent.replaceAll("[ ]", " ")) || regex.test(name) ||
- regex.test(desc) || regex.test(keywords) || "#" + id == searchValue || searchValue == "") && filtersFound) { // Replacing '[ ]' will improve some searching cases such as 'off[ ]hand'
+ regex.test(desc) || regex.test(keywords) || "#" + id.toLowerCase() == searchValue.toLowerCase() || searchValue == "") && filtersFound) { // Replacing '[ ]' will improve some searching cases such as 'off[ ]hand'
pass = true
break; // Performance
}
@@ -390,7 +390,7 @@ if (examples) {
// <> Cookies Accecpt
if (!isCookiesAccepted) {
- content.insertAdjacentHTML('beforeend', `
We use cookies and local storage to enhance your browsing experience and store github related statistics. By clicking "Accept", you consent to our use of cookies and local storage.
We use cookies and local storage to enhance your browsing experience and store github related statistics. By clicking "Accept", you consent to our use of cookies and local storage.
`);
}
let cookiesBar = document.querySelector("#cookies-bar");;
diff --git a/doc-templates/structures.html b/doc-templates/structures.html
new file mode 100644
index 00000000000..61adabbe56a
--- /dev/null
+++ b/doc-templates/structures.html
@@ -0,0 +1,6 @@
+
Structures
+
+
+
+ ${generate structures desc_full.html}
+
\ No newline at end of file
diff --git a/doc-templates/template.html b/doc-templates/template.html
index aace63cb500..e7ed453e13f 100644
--- a/doc-templates/template.html
+++ b/doc-templates/template.html
@@ -35,17 +35,20 @@
-
-
-
- ${include navbar.html}
-
-
- ${content}
+