Skip to content

Commit a66911e

Browse files
committed
Create test.html
1 parent c82bdaf commit a66911e

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed

docs/functions/test.html

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>APPX Documentation</title>
7+
</head>
8+
<body style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; max-width: 900px; margin: 0 auto; padding: 20px; background-color: #f8f9fa;">
9+
10+
<header style="text-align: center; margin-bottom: 40px; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
11+
<h1 style="margin: 0; font-size: 2.5em; font-weight: 300; letter-spacing: 2px;">APPX</h1>
12+
<p style="margin: 10px 0 0 0; opacity: 0.9; font-size: 1.1em;">Windows Package Management Functions</p>
13+
</header>
14+
15+
<div style="display: grid; gap: 30px;">
16+
17+
<!-- First Function: appx or appx.path -->
18+
<div style="background: white; border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left: 5px solid #4CAF50;">
19+
<div style="display: flex; align-items: center; margin-bottom: 20px;">
20+
<div style="background: #4CAF50; color: white; padding: 8px 16px; border-radius: 20px; font-weight: 600; margin-right: 15px;">FUNCTION</div>
21+
<h2 style="margin: 0; color: #2c3e50; font-size: 1.8em;">appx or appx.path</h2>
22+
</div>
23+
24+
<p style="color: #666; font-size: 1.1em; margin-bottom: 25px; background: #f8f9fa; padding: 15px; border-radius: 8px; border-left: 3px solid #4CAF50;">
25+
<strong>Purpose:</strong> Returns the path of Package.
26+
</p>
27+
28+
<div style="margin-bottom: 25px;">
29+
<h3 style="color: #34495e; margin-bottom: 10px; font-size: 1.2em; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px;">Syntax</h3>
30+
<div style="background: #2c3e50; color: #ecf0f1; padding: 15px; border-radius: 8px; font-family: 'Courier New', monospace; overflow-x: auto;">
31+
appx(packageName)<br>
32+
appx.path(packageName)
33+
</div>
34+
</div>
35+
36+
<div style="margin-bottom: 25px;">
37+
<h3 style="color: #34495e; margin-bottom: 10px; font-size: 1.2em; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px;">Parameters</h3>
38+
<div style="background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 8px; padding: 15px;">
39+
<dl style="margin: 0;">
40+
<dt style="font-weight: 600; color: #d63031; margin-bottom: 5px;">packageName</dt>
41+
<dd style="margin: 0; color: #636e72;">can be passed in full name or part of name.</dd>
42+
</dl>
43+
</div>
44+
</div>
45+
46+
<div>
47+
<h3 style="color: #34495e; margin-bottom: 10px; font-size: 1.2em; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px;">Example</h3>
48+
<div style="background: #f1f2f6; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;">
49+
<div style="background: #34495e; color: white; padding: 10px; font-weight: 600; border-bottom: 1px solid #ddd;">Code</div>
50+
<pre style="margin: 0; padding: 20px; font-family: 'Courier New', monospace; overflow-x: auto;"><code>appx.path("WindowsTerminal")
51+
<span style="color: #27ae60;">// result:</span>
52+
<span style="color: #27ae60;">// C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.11.3471.0_x64__8wekyb3d8bbwe</span></code></pre>
53+
</div>
54+
</div>
55+
</div>
56+
57+
<!-- Second Function: appx.name -->
58+
<div style="background: white; border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left: 5px solid #2196F3;">
59+
<div style="display: flex; align-items: center; margin-bottom: 20px;">
60+
<div style="background: #2196F3; color: white; padding: 8px 16px; border-radius: 20px; font-weight: 600; margin-right: 15px;">FUNCTION</div>
61+
<h2 style="margin: 0; color: #2c3e50; font-size: 1.8em;">appx.name</h2>
62+
</div>
63+
64+
<p style="color: #666; font-size: 1.1em; margin-bottom: 25px; background: #f8f9fa; padding: 15px; border-radius: 8px; border-left: 3px solid #2196F3;">
65+
<strong>Purpose:</strong> Returns the display name of the Package.
66+
</p>
67+
68+
<div style="margin-bottom: 25px;">
69+
<h3 style="color: #34495e; margin-bottom: 10px; font-size: 1.2em; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px;">Syntax</h3>
70+
<div style="background: #2c3e50; color: #ecf0f1; padding: 15px; border-radius: 8px; font-family: 'Courier New', monospace; overflow-x: auto;">
71+
appx.name(packageName)
72+
</div>
73+
</div>
74+
75+
<div style="margin-bottom: 25px;">
76+
<h3 style="color: #34495e; margin-bottom: 10px; font-size: 1.2em; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px;">Parameters</h3>
77+
<div style="background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 8px; padding: 15px;">
78+
<dl style="margin: 0;">
79+
<dt style="font-weight: 600; color: #d63031; margin-bottom: 5px;">packageName</dt>
80+
<dd style="margin: 0; color: #636e72;">can be passed in full name or part of name.</dd>
81+
</dl>
82+
</div>
83+
</div>
84+
85+
<div>
86+
<h3 style="color: #34495e; margin-bottom: 10px; font-size: 1.2em; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px;">Example</h3>
87+
<div style="background: #f1f2f6; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;">
88+
<div style="background: #34495e; color: white; padding: 10px; font-weight: 600; border-bottom: 1px solid #ddd;">Code</div>
89+
<pre style="margin: 0; padding: 20px; font-family: 'Courier New', monospace; overflow-x: auto;"><code>appx.name("WindowsTerminal")
90+
<span style="color: #27ae60;">// result:</span>
91+
<span style="color: #27ae60;">// Windows Terminal</span></code></pre>
92+
</div>
93+
</div>
94+
</div>
95+
96+
</div>
97+
98+
<footer style="text-align: center; margin-top: 40px; padding: 20px; color: #7f8c8d; border-top: 1px solid #ecf0f1;">
99+
<p style="margin: 0;">APPX Package Management Documentation</p>
100+
</footer>
101+
102+
</body>
103+
</html>

0 commit comments

Comments
 (0)