docula 0.90.0 → 1.0.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 +34 -1
- package/dist/docula.js +271 -184
- package/package.json +2 -2
- package/templates/classic/css/base.css +29 -0
- package/templates/modern/css/home.css +37 -0
- package/templates/modern/css/styles.css +45 -0
- package/templates/modern/home.hbs +11 -0
- package/templates/modern/includes/header-bar.hbs +20 -0
- package/templates/modern/includes/scripts.hbs +55 -0
package/dist/docula.d.ts
CHANGED
|
@@ -70,6 +70,16 @@ 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 DoculaCacheOptions = {
|
|
79
|
+
github: {
|
|
80
|
+
ttl: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
73
83
|
declare class DoculaOptions {
|
|
74
84
|
/**
|
|
75
85
|
* Name of the built-in template to use (e.g., "modern", "classic")
|
|
@@ -142,6 +152,24 @@ declare class DoculaOptions {
|
|
|
142
152
|
* site directory's .gitignore file if not already present.
|
|
143
153
|
*/
|
|
144
154
|
autoUpdateIgnores: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* File extensions to copy as assets from docs/ and changelog/ directories.
|
|
157
|
+
* Override in docula.config to customize.
|
|
158
|
+
*/
|
|
159
|
+
/**
|
|
160
|
+
* Cookie-based authentication. When set, shows a Login/Logout button
|
|
161
|
+
* in the header based on whether a JWT cookie is present.
|
|
162
|
+
*/
|
|
163
|
+
cookieAuth?: DoculaCookieAuth;
|
|
164
|
+
/**
|
|
165
|
+
* File extensions to copy as assets from docs/ and changelog/ directories.
|
|
166
|
+
* Override in docula.config to customize.
|
|
167
|
+
*/
|
|
168
|
+
/**
|
|
169
|
+
* Cache settings. Controls caching of external data (e.g., GitHub API responses)
|
|
170
|
+
* in the .cache directory within the site path.
|
|
171
|
+
*/
|
|
172
|
+
cache: DoculaCacheOptions;
|
|
145
173
|
/**
|
|
146
174
|
* File extensions to copy as assets from docs/ and changelog/ directories.
|
|
147
175
|
* Override in docula.config to customize.
|
|
@@ -184,6 +212,11 @@ type DoculaData = {
|
|
|
184
212
|
changelogEntries?: DoculaChangelogEntry[];
|
|
185
213
|
homePage?: boolean;
|
|
186
214
|
themeMode?: string;
|
|
215
|
+
cookieAuth?: {
|
|
216
|
+
loginUrl: string;
|
|
217
|
+
cookieName?: string;
|
|
218
|
+
logoutUrl?: string;
|
|
219
|
+
};
|
|
187
220
|
};
|
|
188
221
|
type DoculaTemplates = {
|
|
189
222
|
home: string;
|
|
@@ -359,4 +392,4 @@ declare class Docula {
|
|
|
359
392
|
serve(options: DoculaOptions): Promise<http.Server>;
|
|
360
393
|
}
|
|
361
394
|
|
|
362
|
-
export { DoculaOptions, Docula as default };
|
|
395
|
+
export { type DoculaCacheOptions, type DoculaCookieAuth, DoculaOptions, Docula as default };
|