Skip to content

Commit 6ce21b8

Browse files
committed
Update HypnoScript documentation with comprehensive core concepts, quick start guide, and detailed language features. Enhance examples and clarify syntax, control structures, and built-in functions. Improve overall readability and organization of content, ensuring a better onboarding experience for new users.
1 parent 2f3dfae commit 6ce21b8

12 files changed

Lines changed: 581 additions & 1387 deletions

File tree

‎hypnoscript-docs/docs/.vitepress/config.mts‎

Lines changed: 17 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default defineConfig({
125125
items: [
126126
{ text: 'Sprachreferenz', link: '/language-reference/syntax' },
127127
{ text: 'Builtin-Funktionen', link: '/builtins/overview' },
128-
{ text: 'CLI', link: '/cli/overview' },
128+
{ text: 'CLI Kommandos', link: '/cli/commands' },
129129
{ text: 'Runtime', link: '/reference/runtime' },
130130
],
131131
},
@@ -149,159 +149,44 @@ export default defineConfig({
149149
items: [
150150
{ text: 'Installation', link: '/getting-started/installation' },
151151
{ text: 'Quick Start', link: '/getting-started/quick-start' },
152-
{ text: 'Grundkonzepte', link: '/getting-started/core-concepts' },
153152
{ text: 'Hello World', link: '/getting-started/hello-world' },
153+
{ text: 'Grundkonzepte', link: '/getting-started/core-concepts' },
154154
{ text: 'CLI Basics', link: '/getting-started/cli-basics' },
155155
],
156156
},
157157
{
158158
text: 'Sprachreferenz',
159-
collapsed: true,
159+
collapsed: false,
160160
items: [
161-
{ text: 'Syntax', link: '/language-reference/syntax' },
162-
{ text: 'Variablen', link: '/language-reference/variables' },
161+
{ text: 'Syntax & Struktur', link: '/language-reference/syntax' },
162+
{ text: 'Variablen & Typen', link: '/language-reference/variables' },
163163
{ text: 'Operatoren', link: '/language-reference/operators' },
164-
{
165-
text: 'Kontrollstrukturen',
166-
link: '/language-reference/control-flow',
167-
},
168-
{ text: 'Funktionen', link: '/language-reference/functions' },
169-
{ text: 'Arrays', link: '/language-reference/arrays' },
170-
{ text: 'Records', link: '/language-reference/records' },
164+
{ text: 'Kontrollfluss', link: '/language-reference/control-flow' },
165+
{ text: 'Funktionen & Trigger', link: '/language-reference/functions' },
171166
{ text: 'Sessions', link: '/language-reference/sessions' },
172-
{ text: 'Tranceify', link: '/language-reference/tranceify' },
173-
{ text: 'Assertions', link: '/language-reference/assertions' },
167+
{ text: 'Schlüsselwörter', link: '/language-reference/_keywords-reference' },
174168
],
175169
},
176170
{
177-
text: 'Builtin-Funktionen',
178-
collapsed: true,
171+
text: 'Standardbibliothek',
172+
collapsed: false,
179173
items: [
180-
{ text: 'Übersicht', link: '/builtins/overview' },
181-
{ text: 'Array-Funktionen', link: '/builtins/array-functions' },
182-
{ text: 'String-Funktionen', link: '/builtins/string-functions' },
183-
{ text: 'Math-Funktionen', link: '/builtins/math-functions' },
184-
{ text: 'System-Funktionen', link: '/builtins/system-functions' },
185-
{ text: 'Zeit & Datum', link: '/builtins/time-date-functions' },
186-
{ text: 'Datei-Funktionen', link: '/builtins/file-functions' },
187-
{ text: 'Utility-Funktionen', link: '/builtins/utility-functions' },
188-
{ text: 'Hashing & Encoding', link: '/builtins/hashing-encoding' },
189-
{ text: 'Statistik-Funktionen', link: '/builtins/statistics-functions' },
190-
{ text: 'Validierungs-Funktionen', link: '/builtins/validation-functions' },
191-
{ text: 'Hypnotic Functions', link: '/builtins/hypnotic-functions' },
192-
{ text: 'Performance-Funktionen', link: '/builtins/performance-functions' },
193-
{ text: 'Dictionary-Funktionen', link: '/builtins/dictionary-functions' },
194-
{ text: 'Netzwerk-Funktionen', link: '/builtins/network-functions' },
174+
{ text: 'Builtin-Übersicht', link: '/builtins/overview' },
195175
],
196176
},
197177
{
198-
text: 'CLI Tools',
199-
collapsed: true,
178+
text: 'CLI',
179+
collapsed: false,
200180
items: [
201-
{ text: 'Übersicht', link: '/cli/overview' },
181+
{ text: 'Überblick', link: '/cli/overview' },
202182
{ text: 'Befehle', link: '/cli/commands' },
203-
{ text: 'Konfiguration', link: '/cli/configuration' },
204-
{ text: 'Testing', link: '/cli/testing' },
205-
{ text: 'Debugging', link: '/cli/debugging' },
206-
{ text: 'Erweiterte Befehle', link: '/cli/advanced-commands' },
207-
{ text: 'Enterprise Features', link: '/cli/enterprise-features' },
208-
],
209-
},
210-
{
211-
text: 'Testing',
212-
collapsed: true,
213-
items: [
214-
{ text: 'Überblick', link: '/testing/overview' },
215-
{ text: 'Assertions', link: '/testing/assertions' },
216-
{ text: 'Best Practices', link: '/testing/best-practices' },
217-
{ text: 'Fixtures', link: '/testing/fixtures' },
218-
{ text: 'Performance', link: '/testing/performance' },
219-
{ text: 'Reporting', link: '/testing/reporting' },
220-
],
221-
},
222-
{
223-
text: 'Debugging',
224-
collapsed: true,
225-
items: [
226-
{ text: 'Überblick', link: '/debugging/overview' },
227-
{ text: 'Debug-Modus', link: '/debugging/debug-mode' },
228-
{ text: 'Breakpoints', link: '/debugging/breakpoints' },
229-
{ text: 'Tools', link: '/debugging/tools' },
230-
{ text: 'Troubleshooting', link: '/debugging/troubleshooting' },
231-
{ text: 'Best Practices', link: '/debugging/best-practices' },
232-
{ text: 'Performance', link: '/debugging/performance' },
233-
],
234-
},
235-
{
236-
text: 'Error Handling',
237-
collapsed: true,
238-
items: [
239-
{ text: 'Überblick', link: '/error-handling/overview' },
240-
{ text: 'Fehlerbehandlung', link: '/error-handling/basics' },
241-
{ text: 'Häufige Fehler', link: '/error-handling/common-errors' },
242-
],
243-
},
244-
{
245-
text: 'Enterprise',
246-
collapsed: true,
247-
items: [
248-
{ text: 'Überblick', link: '/enterprise/overview' },
249-
{ text: 'Features', link: '/enterprise/features' },
250-
{ text: 'Security', link: '/enterprise/security' },
251-
{ text: 'Architecture', link: '/enterprise/architecture' },
252-
{ text: 'Integration', link: '/enterprise/integration' },
253-
{ text: 'Monitoring', link: '/enterprise/monitoring' },
254-
{ text: 'Debugging', link: '/enterprise/debugging' },
255-
{ text: 'API Management', link: '/enterprise/api-management' },
256-
{ text: 'Messaging', link: '/enterprise/messaging' },
257-
{ text: 'Datenbank', link: '/enterprise/database' },
258-
{ text: 'Backup & Recovery', link: '/enterprise/backup-recovery' },
259-
],
260-
},
261-
{
262-
text: 'Referenzen',
263-
collapsed: true,
264-
items: [
265-
{ text: 'Runtime', link: '/reference/runtime' },
266-
{ text: 'Compiler', link: '/reference/compiler' },
267-
{ text: 'Interpreter', link: '/reference/interpreter' },
268-
{ text: 'API', link: '/reference/api' },
269-
],
270-
},
271-
{
272-
text: 'Tutorial Extras',
273-
collapsed: true,
274-
items: [
275-
{ text: 'Performance', link: '/tutorial-extras/performance' },
276-
{
277-
text: 'Dokumentations-Versionen',
278-
link: '/tutorial-extras/manage-docs-versions',
279-
},
280-
{ text: 'Lokalisierung', link: '/tutorial-extras/translate-your-site' },
281-
],
282-
},
283-
{
284-
text: 'Beispiele',
285-
collapsed: true,
286-
items: [
287-
{ text: 'Einstieg', link: '/examples/basic-examples' },
288-
{ text: 'Array-Beispiele', link: '/examples/array-examples' },
289-
{ text: 'String-Beispiele', link: '/examples/string-examples' },
290-
{ text: 'System-Beispiele', link: '/examples/system-examples' },
291-
{ text: 'Math-Beispiele', link: '/examples/math-examples' },
292-
{ text: 'Utility-Beispiele', link: '/examples/utility-examples' },
293-
{
294-
text: 'Therapeutische Beispiele',
295-
link: '/examples/therapeutic-examples',
296-
},
297-
{ text: 'CLI Workflows', link: '/examples/cli-workflows' },
298183
],
299184
},
300185
{
301-
text: 'Entwicklung',
302-
collapsed: true,
186+
text: 'Referenz',
187+
collapsed: false,
303188
items: [
304-
{ text: 'Debugging-Prozesse', link: '/development/debugging' },
189+
{ text: 'Runtime-Architektur', link: '/reference/runtime' },
305190
],
306191
},
307192
],

‎hypnoscript-docs/docs/cli/advanced-commands.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
title: Advanced CLI Commands
33
---
44

5-
# Advanced CLI Commands
5+
Die HypnoScript CLI hält die Zahl der Subcommands bewusst klein. Es gibt aktuell keine versteckten oder „fortgeschrittenen“ Befehle – stattdessen kombinierst du die vorhandenen Tools flexibel.
66

7-
This page will document advanced CLI commands. Content coming soon.
7+
## Nützliche Kombinationen
8+
9+
- **Syntax + Ausführung:** `hypnoscript check file.hyp && hypnoscript run file.hyp --debug`
10+
- **WASM-Pipeline:** `hypnoscript compile-wasm file.hyp && wat2wasm file.wat`
11+
- **AST-Vergleich:** `hypnoscript parse file.hyp > ast.log`
12+
13+
## Alias-Ideen
14+
15+
- `alias hrun='hypnoscript run --debug'`
16+
- `function hcheck() { hypnoscript check "$1" && hypnoscript run "$1"; }`
17+
18+
Weitere Befehle findest du auf der Seite [CLI-Befehle](./commands).

0 commit comments

Comments
 (0)