|
|
|
|
@@ -129,10 +129,9 @@ function filePathToExpoRoute(filePath, baseDir) {
|
|
|
|
|
|
|
|
|
|
async function generateBackendDoc() {
|
|
|
|
|
const files = await walkFiles(BACKEND_ROUTES_DIR, ".ts");
|
|
|
|
|
const generatedAt = new Date().toISOString();
|
|
|
|
|
|
|
|
|
|
let output = "# Backend API Funktionskatalog\n\n";
|
|
|
|
|
output += `Automatisch generiert am: ${generatedAt}\n\n`;
|
|
|
|
|
output += "Automatisch generiert (deterministisch, ohne Zeitstempel).\n\n";
|
|
|
|
|
output += "Hinweis: Diese Datei wird durch `docs/scripts/sync-funktionsdoku.mjs` erzeugt.\n\n";
|
|
|
|
|
|
|
|
|
|
const allEndpoints = [];
|
|
|
|
|
@@ -166,7 +165,6 @@ async function generateBackendDoc() {
|
|
|
|
|
|
|
|
|
|
async function generateFrontendDoc() {
|
|
|
|
|
const files = await walkFiles(FRONTEND_PAGES_DIR, ".vue");
|
|
|
|
|
const generatedAt = new Date().toISOString();
|
|
|
|
|
|
|
|
|
|
const rows = files.map((file) => {
|
|
|
|
|
const route = filePathToNuxtRoute(file, FRONTEND_PAGES_DIR);
|
|
|
|
|
@@ -176,7 +174,7 @@ async function generateFrontendDoc() {
|
|
|
|
|
rows.sort((a, b) => a.route.localeCompare(b.route));
|
|
|
|
|
|
|
|
|
|
let output = "# Frontend Web Funktionskatalog\n\n";
|
|
|
|
|
output += `Automatisch generiert am: ${generatedAt}\n\n`;
|
|
|
|
|
output += "Automatisch generiert (deterministisch, ohne Zeitstempel).\n\n";
|
|
|
|
|
output += "Hinweis: Diese Datei wird durch `docs/scripts/sync-funktionsdoku.mjs` erzeugt.\n\n";
|
|
|
|
|
output += "| Route (Nuxt) | Datei |\n";
|
|
|
|
|
output += "|---|---|\n";
|
|
|
|
|
@@ -192,7 +190,6 @@ async function generateFrontendDoc() {
|
|
|
|
|
|
|
|
|
|
async function generateMobileDoc() {
|
|
|
|
|
const files = await walkFiles(MOBILE_APP_DIR, ".tsx");
|
|
|
|
|
const generatedAt = new Date().toISOString();
|
|
|
|
|
|
|
|
|
|
const rows = files
|
|
|
|
|
.map((file) => {
|
|
|
|
|
@@ -207,7 +204,7 @@ async function generateMobileDoc() {
|
|
|
|
|
rows.sort((a, b) => a.route.localeCompare(b.route));
|
|
|
|
|
|
|
|
|
|
let output = "# Mobile App Funktionskatalog\n\n";
|
|
|
|
|
output += `Automatisch generiert am: ${generatedAt}\n\n`;
|
|
|
|
|
output += "Automatisch generiert (deterministisch, ohne Zeitstempel).\n\n";
|
|
|
|
|
output += "Hinweis: Diese Datei wird durch `docs/scripts/sync-funktionsdoku.mjs` erzeugt.\n\n";
|
|
|
|
|
output += "| Route (Expo Router) | Datei |\n";
|
|
|
|
|
output += "|---|---|\n";
|
|
|
|
|
|