Skip to content

Commit

Permalink
Update dev/feature branch nightly docs to SkriptLang/Skript@2f2f7fc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightly Docs Bot committed Jan 26, 2025
1 parent 7910241 commit 7d55c30
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/classes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/conditions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/docs.html

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions docs/nightly/dev/feature/docs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"skriptVersion": "2.10.0-nightly-9e69c9c",
"skriptVersion": "2.10.0-nightly-2f2f7fc",
"conditions": [
{
"id": "CondAlphanumeric",
Expand Down Expand Up @@ -2976,7 +2976,8 @@
"transfer player to server \"localhost\" on port 25566"
],
"patterns": [
"(send|connect) %players% to [proxy|bungeecord] [server] %string%",
"connect %players% to [proxy|bungeecord] [server] %string%",
"send %players% to [proxy|bungeecord] server %string%",
"transfer %players% to server %string% [on port %-number%]"
]
},
Expand Down Expand Up @@ -7753,10 +7754,10 @@
"set the name of the player's tool to \"Legendary Sword of Awesomeness\""
],
"patterns": [
"[the] name[s] of %offlineplayers/entities/inventories/nameds%",
"%offlineplayers/entities/inventories/nameds%'[s] name[s]",
"[the] (display|nick|chat|custom)[ ]name[s] of %offlineplayers/entities/inventories/nameds%",
"%offlineplayers/entities/inventories/nameds%'[s] (display|nick|chat|custom)[ ]name[s]",
"[the] name[s] of %offlineplayers/entities/nameds/inventories%",
"%offlineplayers/entities/nameds/inventories%'[s] name[s]",
"[the] (display|nick|chat|custom)[ ]name[s] of %offlineplayers/entities/nameds/inventories%",
"%offlineplayers/entities/nameds/inventories%'[s] (display|nick|chat|custom)[ ]name[s]",
"[the] (player|tab)[ ]list name[s] of %players%",
"%players%'[s] (player|tab)[ ]list name[s]"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/effects.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/events.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/expressions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/functions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/index.html

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions docs/nightly/dev/feature/js/functions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
let isCookiesAccepted = getCookie("cookies-accepted") === "true";

// <> Cookies

// Returns whether the user has accepted the cookies or not, or undefined if the user hasn't chosen yet
function isCookiesAccepted() {
const cookie = getCookie("cookies-accepted");
if (!cookie) {
return undefined;
}
return Boolean(cookie);
}

function setCookie(cname, cvalue, exdays, force = false) {
if (!isCookiesAccepted && !force)
if (!isCookiesAccepted() && !force)
return;

const d = new Date();
Expand Down Expand Up @@ -37,7 +45,7 @@ function getCookie(cname) {
* @param {double} exdays time in days
*/
function setStorageItem(item, value, exdays, force = false) {
if (!isCookiesAccepted && !force)
if (!isCookiesAccepted() && !force)
return;

const d = new Date();
Expand Down
3 changes: 2 additions & 1 deletion docs/nightly/dev/feature/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ if (examples) {
// Example Collapse </>

// <> Cookies Accecpt
if (!isCookiesAccepted) {
if (isCookiesAccepted() === undefined) {
document.body.insertAdjacentHTML('beforeend', `<div id="cookies-bar"> <p> 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. </p><div style="padding: 10px; white-space: nowrap;"> <button id="cookies-accept">Accept</button> <button id="cookies-deny">Deny</button> </div></div>`);
}

Expand All @@ -423,6 +423,7 @@ if (cookiesAccept && cookiesDeny) {
cookiesBar.remove();
});
cookiesDeny.addEventListener('click', () => {
setCookie('cookies-accepted', false, 99, true);
cookiesBar.remove();
});
}
Expand Down
2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/sections.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/structures.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/text.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/dev/feature/tutorials.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=1.0"> <meta name="description" content="Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them. - SkriptLang/Skript"> <link rel="icon" type="image/png" href="./assets/icon.png"> <meta property="og:type" content="website"> <meta property="og:title" content="Skript Documentation"> <meta property="og:site_name" content="Skript Documentation"> <meta property="og:description" content="Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them."> <meta property="og:image" content="https://docs.skriptlang.org/assets/icon.png"> <meta property="og:url" content="https://docs.skriptlang.org/"> <meta name="theme-color" content="#ff9800"> <title>Skript Documentation - 2.10.0-nightly-9e69c9c</title> <link href="css/styles.css" rel="stylesheet"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" defer></script> <script src="./js/functions.js"></script> <script src="./js/main.js" defer></script> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,900&display=swap" rel="stylesheet"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"> </head> <body> <div id="docs-body"> <!-- loaded inside body without defer to fix theme flicker --> <script src="./js/theme-switcher.js"></script> <ul id="global-navigation"> <li><a href="index.html">Home</a></li> <div class="menu-tab"> <li><a class="menu-tab-item" href="docs.html">Docs <i class="fas fa-caret-down"></i></a></li> <div class="menu-subtabs"> <a href="events.html">Events</a> <a href="conditions.html">Conditions</a> <a href="sections.html">Sections</a> <a href="effects.html">Effects</a> <a href="expressions.html">Expressions</a> <a href="classes.html">Types</a> <a href="structures.html">Structures</a> <a href="functions.html">Functions</a> </div> </div> <li><a href="docs.html?isNew" class="new-tab">New</a></li> <div class="menu-tab"> <li><a class="menu-tab-item" href="tutorials.html">Tutorials <i class="fas fa-caret-down"></i></a></li> <div class="menu-subtabs"> <a href="text.html">Text</a> </div> </div> <div class="menu-tab"> <li><a class="menu-tab-item" href="#">Dev Tools <i class="fas fa-caret-down"></i></a></li> <div class="menu-subtabs"> <a href="javadocs/" target="_blank">Javadocs</a> </div> </div> <li><a href="https://github.com/SkriptLang/Skript/" target="_blank" style="font-weight: bold;">GitHub</a></li> <li style="margin-left: auto;"><a style="font-weight: bold; color: #ff9800" href="https://github.com/SkriptLang/Skript/releases/tag/2.10.0-nightly-9e69c9c" target="_blank">v2.10.0-nightly-9e69c9c</a></li> </ul> <nav id="side-nav"> <div id="nav-contents"> </div> </nav> <h1 id="nav-title">Tutorials</h1> <div id="content-no-docs" class="no-left-panel" style="margin-top: 40px"> <p class="box-title-red">Note:</p> <div class="box-red" style="height: max-content"> <strong>Skript Tutorials are coming soon.</strong> <br><br> <ol class="custom-list"> <li>Loops</li> <li>Commands</li> <li>Functions</li> <li>Variables</li> <li>Visual effects</li> </ol> <br> </div> </div> </div> </body> </html>
<!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=1.0"> <meta name="description" content="Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them. - SkriptLang/Skript"> <link rel="icon" type="image/png" href="./assets/icon.png"> <meta property="og:type" content="website"> <meta property="og:title" content="Skript Documentation"> <meta property="og:site_name" content="Skript Documentation"> <meta property="og:description" content="Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them."> <meta property="og:image" content="https://docs.skriptlang.org/assets/icon.png"> <meta property="og:url" content="https://docs.skriptlang.org/"> <meta name="theme-color" content="#ff9800"> <title>Skript Documentation - 2.10.0-nightly-2f2f7fc</title> <link href="css/styles.css" rel="stylesheet"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" defer></script> <script src="./js/functions.js"></script> <script src="./js/main.js" defer></script> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,900&display=swap" rel="stylesheet"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"> </head> <body> <div id="docs-body"> <!-- loaded inside body without defer to fix theme flicker --> <script src="./js/theme-switcher.js"></script> <ul id="global-navigation"> <li><a href="index.html">Home</a></li> <div class="menu-tab"> <li><a class="menu-tab-item" href="docs.html">Docs <i class="fas fa-caret-down"></i></a></li> <div class="menu-subtabs"> <a href="events.html">Events</a> <a href="conditions.html">Conditions</a> <a href="sections.html">Sections</a> <a href="effects.html">Effects</a> <a href="expressions.html">Expressions</a> <a href="classes.html">Types</a> <a href="structures.html">Structures</a> <a href="functions.html">Functions</a> </div> </div> <li><a href="docs.html?isNew" class="new-tab">New</a></li> <div class="menu-tab"> <li><a class="menu-tab-item" href="tutorials.html">Tutorials <i class="fas fa-caret-down"></i></a></li> <div class="menu-subtabs"> <a href="text.html">Text</a> </div> </div> <div class="menu-tab"> <li><a class="menu-tab-item" href="#">Dev Tools <i class="fas fa-caret-down"></i></a></li> <div class="menu-subtabs"> <a href="javadocs/" target="_blank">Javadocs</a> </div> </div> <li><a href="https://github.com/SkriptLang/Skript/" target="_blank" style="font-weight: bold;">GitHub</a></li> <li style="margin-left: auto;"><a style="font-weight: bold; color: #ff9800" href="https://github.com/SkriptLang/Skript/releases/tag/2.10.0-nightly-2f2f7fc" target="_blank">v2.10.0-nightly-2f2f7fc</a></li> </ul> <nav id="side-nav"> <div id="nav-contents"> </div> </nav> <h1 id="nav-title">Tutorials</h1> <div id="content-no-docs" class="no-left-panel" style="margin-top: 40px"> <p class="box-title-red">Note:</p> <div class="box-red" style="height: max-content"> <strong>Skript Tutorials are coming soon.</strong> <br><br> <ol class="custom-list"> <li>Loops</li> <li>Commands</li> <li>Functions</li> <li>Variables</li> <li>Visual effects</li> </ol> <br> </div> </div> </div> </body> </html>

0 comments on commit 7d55c30

Please sign in to comment.