@hyperbook/types 0.22.0 → 0.23.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
|
@@ -100,6 +100,13 @@ export type HyperbookJson = {
|
|
|
100
100
|
name?: string;
|
|
101
101
|
url?: string;
|
|
102
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Controls how the Hyperbook version is displayed.
|
|
105
|
+
* - "text": Shows version below the "Powered by Hyperbook" label.
|
|
106
|
+
* - "tooltip": Shows version on hover of the "Powered by Hyperbook" label.
|
|
107
|
+
* - "console": Outputs version as ASCII art in the browser console (default).
|
|
108
|
+
*/
|
|
109
|
+
version?: "text" | "tooltip" | "console";
|
|
103
110
|
font?: string;
|
|
104
111
|
fonts?: {
|
|
105
112
|
heading?: string;
|
|
@@ -187,7 +194,10 @@ export interface HyperbookContext {
|
|
|
187
194
|
config: HyperbookJson;
|
|
188
195
|
library?: HyperlibraryJson;
|
|
189
196
|
project?: Hyperproject;
|
|
190
|
-
|
|
197
|
+
version?: string;
|
|
198
|
+
makeUrl(path: string | string[], base: "public" | "book" | "archive" | "glossary" | "assets", page?: HyperbookPage, options?: {
|
|
199
|
+
versioned?: boolean;
|
|
200
|
+
}): string;
|
|
191
201
|
navigation: Navigation;
|
|
192
202
|
}
|
|
193
203
|
export {};
|