forked from RZA-pulciz/Ghost_Ops_Unit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathghost_site_builder.sh
More file actions
executable file
·64 lines (50 loc) · 1.63 KB
/
Copy pathghost_site_builder.sh
File metadata and controls
executable file
·64 lines (50 loc) · 1.63 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
#!/usr/bin/env bash
set -e
echo "[GHOST_SITE_BUILDER] Generazione sito multipagina Ghost_OS..."
mkdir -p docs
NAV='<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="modules.html">Modules</a>
<a href="flipper.html">Flipper</a>
<a href="logs.html">Logs</a>
<a href="install.html">Install</a>
<a href="contact.html">Contact</a>
</nav>'
make_page() {
FILE="docs/$1.html"
TITLE="$2"
CONTENT="$3"
printf "%s" "<!DOCTYPE html>
<html lang=\"it\">
<head>
<meta charset=\"UTF-8\">
<title>$TITLE – Ghost_OS</title>
<link rel=\"stylesheet\" href=\"style.css\">
</head>
<body>
<header>
<h1>Ghost_OS</h1>
<p>Rituale • Effimero • Difensivo</p>
</header>
$NAV
<section>
$CONTENT
</section>
<footer>
<p>© Ghost_OS – HighKali</p>
</footer>
</body>
</html>" > "$FILE"
echo " → Generata pagina: $FILE"
}
make_page "index" "Home" "<h2>Benvenuto in Ghost_OS</h2><p>Sistema operativo rituale per cyber difesa etica.</p>"
make_page "about" "About" "<h2>About</h2><p>Ghost_OS è un sistema effimero, modulare e rituale.</p>"
make_page "modules" "Modules" "<h2>Modules</h2><p>Core, Ops, Missions, Rituals, Var.</p>"
make_page "flipper" "Flipper" "<h2>Flipper Integration</h2><p>Moduli dedicati a Flipper Zero.</p>"
make_page "logs" "Logs" "<h2>Logs</h2><p>Logging JSON effimero e rituale.</p>"
make_page "install" "Install" "<h2>Installazione</h2><p>Termux e Linux supportati.</p>"
make_page "contact" "Contact" "<h2>Contatti</h2><p>GitHub: https://github.com/HighKali</p>"
echo
echo "[GHOST_SITE_BUILDER] Sito generato con successo."
echo "Esegui ora: git add docs && git commit -m \"Update site\" && git push"