Hierarchical TOC + routing
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user