@hyperbook/types 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export type Term = {
|
|
|
27
27
|
export type Glossary = Record<string, Term[]>;
|
|
28
28
|
export type Language = "de" | "en" | "fr" | "es" | "it" | "pt" | "nl";
|
|
29
29
|
export type Layout = "default" | "wide" | "standalone";
|
|
30
|
+
export type BreadcrumbConfig = {
|
|
31
|
+
home?: string;
|
|
32
|
+
separator?: string;
|
|
33
|
+
};
|
|
34
|
+
export type PageNavigation = "default" | "hidden";
|
|
35
|
+
export type SectionNavigation = "default" | "hidden" | "virtual" | "page" | "expanded";
|
|
30
36
|
export type HyperbookPageFrontmatter = {
|
|
31
37
|
name: string;
|
|
32
38
|
title?: string;
|
|
@@ -43,10 +49,13 @@ export type HyperbookPageFrontmatter = {
|
|
|
43
49
|
next?: string;
|
|
44
50
|
prev?: string;
|
|
45
51
|
layout?: Layout;
|
|
52
|
+
breadcrumb?: boolean | BreadcrumbConfig;
|
|
53
|
+
navigation?: PageNavigation;
|
|
46
54
|
};
|
|
47
|
-
export type HyperbookSectionFrontmatter = HyperbookPageFrontmatter & {
|
|
55
|
+
export type HyperbookSectionFrontmatter = Omit<HyperbookPageFrontmatter, 'navigation'> & {
|
|
48
56
|
virtual?: boolean;
|
|
49
57
|
expanded?: boolean;
|
|
58
|
+
navigation?: SectionNavigation;
|
|
50
59
|
};
|
|
51
60
|
export type HyperbookPage = HyperbookPageFrontmatter & {
|
|
52
61
|
isEmpty?: boolean;
|
|
@@ -79,6 +88,7 @@ export type HyperbookJson = {
|
|
|
79
88
|
qrcode?: boolean;
|
|
80
89
|
toc?: boolean;
|
|
81
90
|
llms?: boolean;
|
|
91
|
+
breadcrumb?: boolean | BreadcrumbConfig;
|
|
82
92
|
author?: {
|
|
83
93
|
name?: string;
|
|
84
94
|
url?: string;
|