docula 0.90.0 → 1.1.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/docula.d.ts CHANGED
@@ -70,6 +70,21 @@ type GithubData = {
70
70
  contributors: Record<string, unknown>;
71
71
  };
72
72
 
73
+ type DoculaCookieAuth = {
74
+ loginUrl: string;
75
+ cookieName?: string;
76
+ logoutUrl?: string;
77
+ };
78
+ type DoculaHeaderLink = {
79
+ label: string;
80
+ url: string;
81
+ icon?: string;
82
+ };
83
+ type DoculaCacheOptions = {
84
+ github: {
85
+ ttl: number;
86
+ };
87
+ };
73
88
  declare class DoculaOptions {
74
89
  /**
75
90
  * Name of the built-in template to use (e.g., "modern", "classic")
@@ -142,6 +157,29 @@ declare class DoculaOptions {
142
157
  * site directory's .gitignore file if not already present.
143
158
  */
144
159
  autoUpdateIgnores: boolean;
160
+ /**
161
+ * File extensions to copy as assets from docs/ and changelog/ directories.
162
+ * Override in docula.config to customize.
163
+ */
164
+ /**
165
+ * Cookie-based authentication. When set, shows a Login/Logout button
166
+ * in the header based on whether a JWT cookie is present.
167
+ */
168
+ cookieAuth?: DoculaCookieAuth;
169
+ /**
170
+ * Additional links to display in the site header navigation.
171
+ * Each link requires a label and url.
172
+ */
173
+ headerLinks?: DoculaHeaderLink[];
174
+ /**
175
+ * File extensions to copy as assets from docs/ and changelog/ directories.
176
+ * Override in docula.config to customize.
177
+ */
178
+ /**
179
+ * Cache settings. Controls caching of external data (e.g., GitHub API responses)
180
+ * in the .cache directory within the site path.
181
+ */
182
+ cache: DoculaCacheOptions;
145
183
  /**
146
184
  * File extensions to copy as assets from docs/ and changelog/ directories.
147
185
  * Override in docula.config to customize.
@@ -184,6 +222,16 @@ type DoculaData = {
184
222
  changelogEntries?: DoculaChangelogEntry[];
185
223
  homePage?: boolean;
186
224
  themeMode?: string;
225
+ cookieAuth?: {
226
+ loginUrl: string;
227
+ cookieName?: string;
228
+ logoutUrl?: string;
229
+ };
230
+ headerLinks?: Array<{
231
+ label: string;
232
+ url: string;
233
+ icon?: string;
234
+ }>;
187
235
  };
188
236
  type DoculaTemplates = {
189
237
  home: string;
@@ -359,4 +407,4 @@ declare class Docula {
359
407
  serve(options: DoculaOptions): Promise<http.Server>;
360
408
  }
361
409
 
362
- export { DoculaOptions, Docula as default };
410
+ export { type DoculaCacheOptions, type DoculaCookieAuth, type DoculaHeaderLink, DoculaOptions, Docula as default };