แก้ไข path และ ลบ pdf/word เพื่อจะ pandoc ใหม่

eiei
This commit is contained in:
CJ 2024-11-18 10:05:09 +07:00
parent f5814074b8
commit e388bbee31
40 changed files with 485 additions and 334 deletions

View file

@ -11,17 +11,7 @@ const manual = data.filter((v: any) => v.children);
const mergeManual: any[] = [];
manual.forEach((v: any) => {
if (v.children) {
v.children.forEach((child: any) => {
if (child.children) {
mergeManual.push(...child.children);
} else {
mergeManual.push(child);
}
});
}
});
manual.forEach((v: any) => mergeManual.push(...v.children));
const manualRoute = mergeManual.map(
(v): { path: string; name: string; component: Function } => {