Hierarchical TOC + routing

This commit is contained in:
Adrian Rumpold
2025-04-23 13:27:54 +02:00
parent 6dcf39dc58
commit 2165ce0d5b
11 changed files with 202 additions and 87 deletions

View File

@@ -5,5 +5,19 @@ enum Language {
ITA = "ita",
ESP = "esp",
}
type Article = {
type: "article";
id: number;
title: string;
subtitle: string;
};
type Division = {
type: "division";
title: string;
subtitle: string;
level: number;
content: Article[] | Division[];
};
export { Language };
export type { Article, Division };