feat: add fullscreen docs demo routes

This commit is contained in:
3252a8
2026-05-28 14:59:54 +03:00
parent 7e0e8ff319
commit d544ebd879
10 changed files with 369 additions and 32 deletions
+30
View File
@@ -0,0 +1,30 @@
---
import DemoShell from '../demo.astro';
export function getStaticPaths() {
const userRoutes = ['home', 'install', 'trial', 'invite', 'devices', 'support', 'settings'];
const adminRoutes = [
'stats',
'users',
'payments',
'promos',
'ads',
'broadcast',
'logs',
'support',
'tariffs',
'appearance',
'translations',
'backups',
'settings',
];
return [
...userRoutes.map((path) => ({ params: { path } })),
{ params: { path: 'admin' } },
...adminRoutes.map((section) => ({ params: { path: `admin/${section}` } })),
];
}
---
<DemoShell />