@chocolatey-software/docs 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/css/docs.css
CHANGED
|
@@ -41622,7 +41622,7 @@ textarea.form-control-lg {
|
|
|
41622
41622
|
.far,
|
|
41623
41623
|
.fab,
|
|
41624
41624
|
.fa {
|
|
41625
|
-
--_fa-family: var(--fa-family, var(--fa-style-family,
|
|
41625
|
+
--_fa-family: var(--fa-family, var(--fa-style-family, 'Font Awesome 7 Free'));
|
|
41626
41626
|
-webkit-font-smoothing: antialiased;
|
|
41627
41627
|
-moz-osx-font-smoothing: grayscale;
|
|
41628
41628
|
display: var(--fa-display, inline-block);
|
|
@@ -49977,7 +49977,7 @@ textarea.form-control-lg {
|
|
|
49977
49977
|
* Copyright 2025 Fonticons, Inc.
|
|
49978
49978
|
*/
|
|
49979
49979
|
:root, :host {
|
|
49980
|
-
--fa-family-classic:
|
|
49980
|
+
--fa-family-classic: 'Font Awesome 7 Free';
|
|
49981
49981
|
--fa-font-solid: normal 900 1em/1 var(--fa-family-classic);
|
|
49982
49982
|
/* deprecated: this older custom property will be removed next major release */
|
|
49983
49983
|
--fa-style-family-classic: var(--fa-family-classic);
|
|
@@ -50009,7 +50009,7 @@ textarea.form-control-lg {
|
|
|
50009
50009
|
* Copyright 2025 Fonticons, Inc.
|
|
50010
50010
|
*/
|
|
50011
50011
|
:root, :host {
|
|
50012
|
-
--fa-family-classic:
|
|
50012
|
+
--fa-family-classic: 'Font Awesome 7 Free';
|
|
50013
50013
|
--fa-font-regular: normal 400 1em/1 var(--fa-family-classic);
|
|
50014
50014
|
/* deprecated: this older custom property will be removed next major release */
|
|
50015
50015
|
--fa-style-family-classic: var(--fa-family-classic);
|
|
@@ -50041,7 +50041,7 @@ textarea.form-control-lg {
|
|
|
50041
50041
|
* Copyright 2025 Fonticons, Inc.
|
|
50042
50042
|
*/
|
|
50043
50043
|
:root, :host {
|
|
50044
|
-
--fa-family-brands:
|
|
50044
|
+
--fa-family-brands: 'Font Awesome 7 Brands';
|
|
50045
50045
|
--fa-font-brands: normal 400 1em/1 var(--fa-family-brands);
|
|
50046
50046
|
}
|
|
50047
50047
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<h2 id="agreement-to-terms">1. Agreement to Terms</h2>
|
|
2
2
|
<p>
|
|
3
3
|
These Terms of Use constitute a legally binding agreement made between you, whether personally or on behalf of an entity ("you") and Chocolatey Software, Inc
|
|
4
|
-
(<strong>"Company"</strong>, <strong>"we"</strong>, <strong>"us"</strong>, or <strong>"our"</strong>), concerning your access to and use of the
|
|
4
|
+
(<strong>"Company"</strong>, <strong>"we"</strong>, <strong>"us"</strong>, or <strong>"our"</strong>), concerning your access to and use of the
|
|
5
5
|
<a href="https://chocolatey.org">https://chocolatey.org</a> and <a href="https://community.chocolatey.org">https://community.chocolatey.org</a> websites as well as any
|
|
6
6
|
other media form, media channel, mobile website or mobile application related, linked, or otherwise connected thereto (collectively, the "Site"). We are
|
|
7
|
-
registered in Kansas, United States and have our registered office at
|
|
8
|
-
You agree that by accessing the Site, you have read, understood, and agree to be bound by all of these Terms of Use. IF YOU DO NOT AGREE WITH ALL OF THESE TERMS OF USE,
|
|
7
|
+
registered in Kansas, United States and have our registered office at 4011 SW 29th St Ste 302, Topeka, KS 66614.
|
|
8
|
+
You agree that by accessing the Site, you have read, understood, and agree to be bound by all of these Terms of Use. IF YOU DO NOT AGREE WITH ALL OF THESE TERMS OF USE,
|
|
9
9
|
THEN YOU ARE EXPRESSLY PROHIBITED FROM USING THE SITE AND YOU MUST DISCONTINUE USE IMMEDIATELY.
|
|
10
10
|
</p>
|
|
11
11
|
<p>
|
|
@@ -334,9 +334,9 @@
|
|
|
334
334
|
</p>
|
|
335
335
|
<h2 id="privacy-policy">17. Privacy Policy</h2>
|
|
336
336
|
<p>
|
|
337
|
-
We care about data privacy and security. Please review our Privacy Policy: <a href="https://chocolatey.org/privacy">https://chocolatey.org/privacy</a>. By using the Site,
|
|
338
|
-
you agree to be bound by our Privacy Policy, which is incorporated into these Terms of Use. Please be advised the Site is hosted in the United States. If you access the Site
|
|
339
|
-
from any other region of the world with laws or other requirements governing personal data collection, use, or disclosure that differ from applicable laws in the United States,
|
|
337
|
+
We care about data privacy and security. Please review our Privacy Policy: <a href="https://chocolatey.org/privacy">https://chocolatey.org/privacy</a>. By using the Site,
|
|
338
|
+
you agree to be bound by our Privacy Policy, which is incorporated into these Terms of Use. Please be advised the Site is hosted in the United States. If you access the Site
|
|
339
|
+
from any other region of the world with laws or other requirements governing personal data collection, use, or disclosure that differ from applicable laws in the United States,
|
|
340
340
|
then through your continued use of the Site, you are transferring your data to the United States, and you agree to have your data transferred to and processed in the United States.
|
|
341
341
|
</p>
|
|
342
342
|
<h2 id="copyright-infringements">18. Copyright Infringements</h2>
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
<p>
|
|
493
493
|
<strong>
|
|
494
494
|
Chocolatey Software, Inc<br />
|
|
495
|
-
|
|
495
|
+
4011 SW 29th St Ste 302<br />
|
|
496
496
|
Topeka, KS 66614<br />
|
|
497
497
|
United States<br />
|
|
498
498
|
<a href="https://chocolatey.org/contact/general">https://chocolatey.org/contact/general</a>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Last updated
|
|
1
|
+
Last updated 10 November 2025
|
package/dist/scripts/docs.js
CHANGED
|
@@ -14435,6 +14435,11 @@
|
|
|
14435
14435
|
});
|
|
14436
14436
|
};
|
|
14437
14437
|
|
|
14438
|
+
// packages/core/src/scripts/util/escape-html.js
|
|
14439
|
+
var escapeHtml = (str) => {
|
|
14440
|
+
return str.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
14441
|
+
};
|
|
14442
|
+
|
|
14438
14443
|
// packages/core/src/scripts/util/set-cookie.js
|
|
14439
14444
|
var setCookie = (name, value, expirationDays, domainName) => {
|
|
14440
14445
|
let expires;
|
|
@@ -14455,6 +14460,7 @@
|
|
|
14455
14460
|
document.addEventListener("DOMContentLoaded", () => {
|
|
14456
14461
|
const dynamicCodeBlockContainers = document.querySelectorAll(".dynamic-code-block-container");
|
|
14457
14462
|
const dynamicCodeBlockInputs = document.querySelectorAll(".dynamic-code-block-input");
|
|
14463
|
+
const dynamicCodeBlockValidation = document.querySelectorAll(".dynamic-code-block-validation");
|
|
14458
14464
|
const replaceCodeVariableInCodeBlock = (input, inputVariable, inputDefaultValue, inputCookie) => {
|
|
14459
14465
|
const codeVariables = document.querySelectorAll(`.${inputVariable}`);
|
|
14460
14466
|
const inputValue = inputCookie ? inputCookie : input.value;
|
|
@@ -14473,17 +14479,45 @@
|
|
|
14473
14479
|
}
|
|
14474
14480
|
}
|
|
14475
14481
|
};
|
|
14482
|
+
const validateInputs = () => {
|
|
14483
|
+
dynamicCodeBlockValidation.forEach((validation) => {
|
|
14484
|
+
const inputNames = validation.getAttribute("data-input-names").split(",");
|
|
14485
|
+
let allFilled = true;
|
|
14486
|
+
for (const inputName of inputNames) {
|
|
14487
|
+
const input = document.querySelector(`.dynamic-code-block-input[name="${inputName}"]`);
|
|
14488
|
+
if (!input.value) {
|
|
14489
|
+
allFilled = false;
|
|
14490
|
+
input.classList.add("is-invalid");
|
|
14491
|
+
} else {
|
|
14492
|
+
input.classList.remove("is-invalid");
|
|
14493
|
+
}
|
|
14494
|
+
}
|
|
14495
|
+
if (allFilled) {
|
|
14496
|
+
validation.classList.remove("show");
|
|
14497
|
+
setTimeout(() => {
|
|
14498
|
+
validation.classList.add("d-none");
|
|
14499
|
+
}, 150);
|
|
14500
|
+
} else {
|
|
14501
|
+
validation.classList.remove("d-none");
|
|
14502
|
+
validation.classList.add("show");
|
|
14503
|
+
}
|
|
14504
|
+
});
|
|
14505
|
+
};
|
|
14476
14506
|
dynamicCodeBlockInputs.forEach((input) => {
|
|
14477
14507
|
const inputVariable = input.name;
|
|
14478
14508
|
const inputDefaultValue = input.getAttribute("data-default-value");
|
|
14479
14509
|
const inputCookie = getCookie(inputVariable);
|
|
14480
14510
|
const regex = new RegExp(`\\b${inputVariable}\\b`, "g");
|
|
14481
14511
|
for (const dynamicCodeBlockContainer of dynamicCodeBlockContainers) {
|
|
14482
|
-
|
|
14512
|
+
const value = inputCookie ? inputCookie : inputDefaultValue;
|
|
14513
|
+
const escapedValue = escapeHtml(value);
|
|
14514
|
+
dynamicCodeBlockContainer.innerHTML = dynamicCodeBlockContainer.innerHTML.replaceAll(regex, `<span class="${inputVariable}">${escapedValue}</span>`);
|
|
14483
14515
|
}
|
|
14484
14516
|
replaceCodeVariableInCodeBlock(input, inputVariable, inputDefaultValue, inputCookie);
|
|
14517
|
+
validateInputs();
|
|
14485
14518
|
input.addEventListener("keyup", () => {
|
|
14486
14519
|
replaceCodeVariableInCodeBlock(input, inputVariable, inputDefaultValue);
|
|
14520
|
+
validateInputs();
|
|
14487
14521
|
});
|
|
14488
14522
|
});
|
|
14489
14523
|
copyCodeBlocks();
|