-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwiki.html
More file actions
228 lines (197 loc) · 15 KB
/
Copy pathwiki.html
File metadata and controls
228 lines (197 loc) · 15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow" />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="AcreetionOS, Arch Linux, Linux distribution, Wiki, Search, Documentation" />
<meta name="referrer" content="strict-origin-when-cross-origin" />
<!-- Security Policy to allow Arch Wiki and Pollinations AI -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' https://wiki.archlinux.org; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: https:; font-src 'self' https://fonts.gstatic.com; connect-src 'self' https://wiki.archlinux.org https://text.pollinations.ai; frame-ancestors 'none'; base-uri 'self';" />
<title>AcreetionOS - Wiki Hub</title>
<link rel="icon" type="image/webp" href="acreetionoslogo.webp">
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
:root{--acreetion-green:#2ecc71;--acreetion-body-bg:#121212;--acreetion-panel-bg:#1a1a1a;--acreetion-box-bg:#222222;--acreetion-box-border:#333333;--acreetion-text-bright:#e5e5e5;--acreetion-text:#b2b2b2;--acreetion-code-bg:rgba(46, 204, 113, 0.1);--storm-color:#61afef;--font-sans:'Roboto', sans-serif;--font-mono:'Fira Code', monospace;}
*, *::before, *::after{box-sizing: border-box; margin: 0; padding: 0;}
body{font-family:var(--font-sans);background-color:var(--acreetion-body-bg);color:var(--acreetion-text-bright);line-height:1.6;overflow-x:hidden;}
/* Header */
.page-header{background-color:rgba(24,26,27,0.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:2px solid var(--acreetion-green);border-radius:0 0 16px 16px;position:sticky;top:0;z-index:1000;}
.header-content{display:flex;justify-content:space-between;align-items:center;max-width:1400px;margin:0 auto;padding:0.75rem 2rem;}
.logo{display:flex;align-items:center;gap:1rem;font-family:var(--font-mono);font-size:1.8rem;font-weight:700;color:var(--acreetion-text-bright);text-decoration:none;}
.logo-img{height:40px;width: auto;}
.logo-text span{color:var(--acreetion-green);}
.main-nav a{color:var(--acreetion-text);text-decoration:none;margin-left:2rem;font-weight:500;}
.main-nav a:hover{color:var(--acreetion-text-bright);}
/* Wrapper */
.page-wrapper{max-width:1000px;margin:2rem auto;padding:0 2rem;}
.content-box{background-color:var(--acreetion-box-bg);border:1px solid var(--acreetion-box-border);}
.box-header{padding:0.8rem 1.2rem;border-bottom:1px solid var(--acreetion-box-border);background-color:#1a1a1a;}
.box-header h2{font-family:var(--font-mono);font-size:1.3rem;color:var(--acreetion-text-bright);}
.box-body{padding:2rem;}
/* Search */
.search-form{display:flex;width:100%;border:1px solid var(--acreetion-box-border);background:var(--acreetion-body-bg);}
.search-input{flex-grow:1;background:transparent;border:none;padding:1.2rem 1.5rem;color:var(--acreetion-text-bright);font-size:1.1rem;outline:none;}
.search-btn{background:var(--acreetion-green);border:none;color:#000;padding:0 2.5rem;cursor:pointer;font-weight:700;font-family:var(--font-mono);text-transform:uppercase;}
/* List */
.results-list { max-height: 400px; overflow-y: auto; background: var(--acreetion-panel-bg); border: 1px solid var(--acreetion-box-border); margin-top: 1.5rem; display: none; }
.result-item { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--acreetion-box-border); cursor: pointer; transition: 0.2s;}
.result-item:hover { background-color: #262626; border-left: 4px solid var(--acreetion-green); padding-left: calc(1.5rem - 4px); }
.result-item h4 { color: var(--acreetion-green); font-family: var(--font-mono); margin-bottom: 0.3rem; }
.result-item p { color: var(--acreetion-text); font-size: 0.9rem; }
.modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.7);backdrop-filter:blur(8px);z-index:1000;overflow-y:auto;align-items:center;justify-content:center;padding:1rem;opacity:0;visibility:hidden}.modal-overlay.visible{display:flex;opacity:1;visibility:visible;transition:opacity 0.3s ease,visibility 0.3s ease}.modal-box{position:relative;cursor:default;background-color:var(--acreetion-box-bg);border:1px solid var(--acreetion-box-border);padding:2rem 3rem;max-width:700px}.modal-close-btn{position:absolute;top:1rem;right:1rem;background-color:var(--acreetion-green);color:black;font-family:var(--font-sans);font-size:1.5rem;font-weight:700;border:none;border-radius:50%;width:40px;height:40px;cursor:pointer;line-height:40px;text-align:center;z-index:1001}.modal-close-btn:hover{background-color:#d15c64;transform:scale(1.05)}.modal-box h2{color:var(--acreetion-green)}
.page-footer{text-align:center;padding:2rem;margin-top:2rem;border-top:1px solid var(--acreetion-box-border);color:#777;font-size:0.9rem}.page-footer p{color:#777;margin-bottom:0.5rem;text-align:center}.page-footer a{color:var(--acreetion-green);text-decoration:none}.page-footer a:hover{text-decoration:underline}</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" media="print" onload="this.media=\'all\'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"></noscript>
</head>
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
<a href="#main-content" class="skip-link">Skip to main content</a>
<header class="page-header"><div class="header-content"><a href="index.html" class="logo"><img src="acreetionoslogo.webp" alt="Official AcreetionOS Logo" class="logo-img" width="40" height="40" decoding="auto" loading="eager"><span class="logo-text">Acreetion<span>OS</span></span></a><nav class="main-nav"><a href="flash.html">Downloads</a><a href="hosting.html">ISO Hosting</a><a href="wiki.html" aria-current="page" class="active">Wiki</a><a href="developers.html">Developers</a><a href="contact.html">Contact & Support</a><a href="git-tracker.html" class="btn btn-storm">Git Tracker</a><a href="/acreetionos-news-tracker/" class="btn btn-storm" style="background-color: var(--acreetion-green); color: #000;">News Tracker</a><a href="unofficial.html" class="btn btn-storm" style="background-color:var(--acreetion-purple);color:#fff">Unofficial</a><a href="https://github.com/acreetionos-code/" class="btn btn-storm" style="background-color:#333">GitHub</a><a href="https://gitlab.acreetionos.org" class="btn btn-storm">GitLab</a></nav></div></header>
<div id="main-content" class="page-wrapper">
<article class="content-box">
<div class="box-header"><h1>Documentation Engine</h1></div>
<div class="box-body">
<div style="background: rgba(46, 204, 113, 0.1); border: 1px solid var(--acreetion-green); padding: 1.5rem; margin-bottom: 2rem; color: var(--acreetion-text-bright); border-radius: 8px;">
<strong style="color: var(--acreetion-green); display: block; margin-bottom: 0.5rem; font-size: 1.1rem;">Why maintain a separate wiki in 2026?</strong>
<p style="margin: 0; color: var(--acreetion-text); line-height: 1.6;">The Arch Linux Wiki is the definitive, community-maintained resource for Arch-based distributions. Rather than duplicating decades of expert knowledge, we believe in working <em>smarter, not harder</em> — directing you to the source while our AI engine translates complex technical documentation into beginner-friendly guidance tailored for AcreetionOS.</p>
</div>
<p style="margin-bottom: 1.5rem;">Enter a topic to get a beginner-friendly guide.</p>
<form id="wiki-search-form" class="search-form" onsubmit="return false;">
<input type="text" id="wiki-search-input" class="search-input" placeholder="Search (e.g. 'Software Updates', 'WiFi', 'Bluetooth')" autofocus>
<button type="submit" class="search-btn">Search</button>
</form>
<div id="results-list" class="results-list"></div>
</div>
</article>
</div>
<div id="wiki-modal" class="modal-overlay">
<div class="modal-box">
<button class="modal-close-btn" onclick="closeModal()">×</button>
<!-- Only "Let's Produce" shows in the box while loading -->
<div id="loading-indicator">
<div class="produce-text">Let's Produce</div>
</div>
<div id="modal-content-area" style="display:none;">
<h2 id="modal-title" style="color:var(--acreetion-green); font-family:var(--font-mono); border-bottom:1px solid var(--acreetion-box-border); padding-bottom:10px; margin-bottom:20px;"></h2>
<div id="modal-ai-content" class="ai-content"></div>
<div style="margin-top:2rem; padding-top:1rem; border-top:1px solid var(--acreetion-box-border);">
<a id="modal-original-link" href="#" target="_blank" class="btn-storm">Original Wiki Source →</a>
</div>
</div>
</div>
</div>
<footer class="page-footer"><p>AcreetionOS is an independent project proudly built on the powerful and flexible foundation of <a href="https://archlinux.org" target="_blank" rel="noopener noreferrer">Arch Linux</a>. We are immensely grateful to the Arch community for their incredible work.</p><p>Follow our development on <a href="https://github.com/AcreetionOS-Code" target="_blank" rel="noopener noreferrer"><i class="bi bi-github"></i> GitHub</a> and our self-hosted <a href="https://gitlab.acreetionos.org"><i class="bi bi-gitlab"></i> GitLab</a>.</p><p>© 2026 AcreetionOS Project. Based in Spokane, WA. <a href="contributing.html" style="color: var(--acreetion-text); margin-left: 1rem;">Contributing</a> <a href="governance.html" style="color: var(--acreetion-text); margin-left: 1rem;">Governance</a></p></footer>
<script>
const searchForm = document.getElementById('wiki-search-form');
const searchInput = document.getElementById('wiki-search-input');
const resultsList = document.getElementById('results-list');
const modal = document.getElementById('wiki-modal');
const loadingIndicator = document.getElementById('loading-indicator');
const contentArea = document.getElementById('modal-content-area');
searchForm.addEventListener('submit', async () => {
const q = searchInput.value.trim();
if(!q) return;
resultsList.style.display = 'block';
resultsList.innerHTML = '<div style="padding:2rem; color:var(--acreetion-green); font-family:var(--font-mono);">SEARCHING...</div>';
try {
const res = await fetch(`https://wiki.archlinux.org/api.php?action=query&list=search&srsearch=${encodeURIComponent(q)}&format=json&origin=*`);
const data = await res.json();
resultsList.innerHTML = '';
if(!data.query.search.length) {
resultsList.innerHTML = '<div style="padding:2rem; color:#e74c3c;">No results found.</div>';
return;
}
data.query.search.forEach(item => {
const el = document.createElement('div');
el.className = 'result-item';
el.innerHTML = `<h3>${item.title}</h3><p>${item.snippet}...</p>`;
el.onclick = () => produceGuide(item.title);
resultsList.appendChild(el);
});
} catch(e) {
resultsList.innerHTML = '<div style="padding:2rem; color:#e74c3c;">Error connecting to Wiki database.</div>';
}
});
async function produceGuide(title) {
modal.classList.add('visible');
document.body.style.overflow = 'hidden';
loadingIndicator.style.display = 'block';
contentArea.style.display = 'none';
try {
// Pull technical context from Wiki
const wikiRes = await fetch(`https://wiki.archlinux.org/api.php?action=query&prop=extracts&explaintext=true&exchars=1800&redirects=1&titles=${encodeURIComponent(title)}&format=json&origin=*`);
const wikiData = await wikiRes.json();
const page = Object.values(wikiData.query.pages)[0];
const rawText = page.extract || "";
// Send to AI for "Common Language" rewrite
const prompt = `Rewrite this for an absolute computer beginner on AcreetionOS (Cinnamon Desktop).
Use common language. Explain steps using the mouse/menus where possible.
Topic: ${title}
Technical Context: ${rawText}
RESPONSE: PURE MARKDOWN ONLY.`;
const aiRes = await fetch('https://text.pollinations.ai/', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{role: 'user', content: prompt}],
model: 'openai',
private: true
})
});
let finalBody = await aiRes.text();
// Safety parsing in case JSON leaks
try {
const json = JSON.parse(finalBody);
finalBody = json.choices?.[0]?.message?.content || json.content || json.reasoning_content || finalBody;
} catch(e) {}
// Cleanup AI artifacts
finalBody = finalBody.replace(/<think>[\s\S]*?<\/think>/gi, '').trim();
loadingIndicator.style.display = 'none';
contentArea.style.display = 'block';
document.getElementById('modal-title').innerText = title;
document.getElementById('modal-ai-content').innerHTML = marked.parse(finalBody);
document.getElementById('modal-original-link').href = `https://wiki.archlinux.org/title/${encodeURIComponent(title.replace(/ /g, '_'))}`;
} catch(e) {
loadingIndicator.style.display = 'none';
contentArea.style.display = 'block';
document.getElementById('modal-ai-content').innerHTML = "<p>Process failed. Please try another article.</p>";
}
}
function closeModal() {
modal.classList.remove('visible');
document.body.style.overflow = '';
}
</script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if(entry.isIntersecting) {
entry.target.classList.add('active');
observer.unobserve(entry.target);
}
});
}, { threshold: 0.05, rootMargin: "0px 0px -30px 0px" });
document.querySelectorAll('.content-box, .dev-card, .event-card, .repo-card').forEach(el => {
el.classList.add('reveal');
observer.observe(el);
});
});
</script>
<button id="back-to-top" title="Back to top" onclick="window.scrollTo({top:0,behavior:'smooth'});">↑</button>
<script>
document.addEventListener('DOMContentLoaded', () => {
const btn = document.getElementById('back-to-top');
if(!btn) return;
window.addEventListener('scroll', () => {
if(window.scrollY > 400){btn.classList.add('visible');}
else{btn.classList.remove('visible');}
});
});
</script>
</body>
</html>