hugo-extended 0.154.2 → 0.154.3-sudoless.1

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.
@@ -0,0 +1,490 @@
1
+ /* eslint-disable */
2
+ // AUTO-GENERATED. DO NOT EDIT.
3
+
4
+ export interface HugoGlobalOptions {
5
+ /** set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 */
6
+ clock?: string;
7
+ /** config file (default hugo.yaml|json|toml) */
8
+ config?: string;
9
+ /** config dir (default "config") */
10
+ configDir?: string;
11
+ /** filesystem path to write files to */
12
+ destination?: string;
13
+ /** build environment */
14
+ environment?: string;
15
+ /** ignores any _vendor for module paths matching the given Glob pattern */
16
+ ignoreVendorPaths?: string;
17
+ /** log level */
18
+ logLevel?: "debug" | "info" | "warn" | "error";
19
+ /** don't create .hugo_build.lock file */
20
+ noBuildLock?: boolean;
21
+ /** filesystem path to write files to */
22
+ output?: string;
23
+ /** build in quiet mode */
24
+ quiet?: boolean;
25
+ /** render to memory (mostly useful when running the server) */
26
+ renderToMemory?: boolean;
27
+ /** filesystem path to read files relative from */
28
+ source?: string;
29
+ /** filesystem path to themes directory */
30
+ themesDir?: string;
31
+ /** enable less safe operations, please backup first */
32
+ unsafe?: boolean;
33
+ }
34
+
35
+ export interface HugoBuildOptions extends HugoGlobalOptions {
36
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
37
+ baseURL?: string;
38
+ /** include content marked as draft */
39
+ buildDrafts?: boolean;
40
+ /** include expired content */
41
+ buildExpired?: boolean;
42
+ /** include content with publishdate in the future */
43
+ buildFuture?: boolean;
44
+ /** filesystem path to cache directory */
45
+ cacheDir?: string;
46
+ /** remove files from destination not found in static directories */
47
+ cleanDestinationDir?: boolean;
48
+ /** filesystem path to content directory */
49
+ contentDir?: string;
50
+ /** disable different kind of pages (home, RSS etc.) */
51
+ disableKinds?: string[];
52
+ /** add Git revision, date, author, and CODEOWNERS info to the pages */
53
+ enableGitInfo?: boolean;
54
+ /** copy all files when static is changed. */
55
+ forceSyncStatic?: boolean;
56
+ /** enable to run some cleanup tasks (remove unused cache files) after the build */
57
+ gc?: boolean;
58
+ /** ignores the cache directory */
59
+ ignoreCache?: boolean;
60
+ /** filesystem path to layout directory */
61
+ layoutDir?: string;
62
+ /** minify any supported output format (HTML, XML etc.) */
63
+ minify?: boolean;
64
+ /** don't sync permission mode of files */
65
+ noChmod?: boolean;
66
+ /** don't sync modification time of files */
67
+ noTimes?: boolean;
68
+ /** panic on first WARNING log */
69
+ panicOnWarning?: boolean;
70
+ /** set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes */
71
+ poll?: string;
72
+ /** print missing translations */
73
+ printI18nWarnings?: boolean;
74
+ /** print memory usage to screen at intervals */
75
+ printMemoryUsage?: boolean;
76
+ /** print warnings on duplicate target paths etc. */
77
+ printPathWarnings?: boolean;
78
+ /** print warnings on unused templates. */
79
+ printUnusedTemplates?: boolean;
80
+ /** named segments to render (configured in the segments config) */
81
+ renderSegments?: string[];
82
+ /** display metrics about template executions */
83
+ templateMetrics?: boolean;
84
+ /** calculate some improvement hints when combined with --templateMetrics */
85
+ templateMetricsHints?: boolean;
86
+ /** themes to use (located in /themes/THEMENAME/) */
87
+ theme?: string[];
88
+ /** write trace to file (not useful in general) */
89
+ trace?: string;
90
+ /** watch filesystem for changes and recreate as needed */
91
+ watch?: boolean;
92
+ }
93
+
94
+ export interface HugoCompletionOptions extends HugoGlobalOptions {
95
+ }
96
+
97
+ export interface HugoCompletionBashOptions extends HugoGlobalOptions {
98
+ /** disable completion descriptions */
99
+ noDescriptions?: boolean;
100
+ }
101
+
102
+ export interface HugoCompletionFishOptions extends HugoGlobalOptions {
103
+ /** disable completion descriptions */
104
+ noDescriptions?: boolean;
105
+ }
106
+
107
+ export interface HugoCompletionPowershellOptions extends HugoGlobalOptions {
108
+ /** disable completion descriptions */
109
+ noDescriptions?: boolean;
110
+ }
111
+
112
+ export interface HugoCompletionZshOptions extends HugoGlobalOptions {
113
+ /** disable completion descriptions */
114
+ noDescriptions?: boolean;
115
+ }
116
+
117
+ export interface HugoConfigOptions extends HugoGlobalOptions {
118
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
119
+ baseURL?: string;
120
+ /** filesystem path to cache directory */
121
+ cacheDir?: string;
122
+ /** filesystem path to content directory */
123
+ contentDir?: string;
124
+ /** preferred file format (toml, yaml or json) (default "toml") */
125
+ format?: string;
126
+ /** the language to display config for. Defaults to the first language defined. */
127
+ lang?: string;
128
+ /** include config options with zero values (e.g. false, 0, "") in the output */
129
+ printZero?: boolean;
130
+ /** named segments to render (configured in the segments config) */
131
+ renderSegments?: string[];
132
+ /** themes to use (located in /themes/THEMENAME/) */
133
+ theme?: string[];
134
+ }
135
+
136
+ export interface HugoConfigMountsOptions extends HugoGlobalOptions {
137
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
138
+ baseURL?: string;
139
+ /** filesystem path to cache directory */
140
+ cacheDir?: string;
141
+ /** filesystem path to content directory */
142
+ contentDir?: string;
143
+ /** named segments to render (configured in the segments config) */
144
+ renderSegments?: string[];
145
+ /** themes to use (located in /themes/THEMENAME/) */
146
+ theme?: string[];
147
+ }
148
+
149
+ export interface HugoConvertOptions extends HugoGlobalOptions {
150
+ }
151
+
152
+ export interface HugoConvertToJSONOptions extends HugoGlobalOptions {
153
+ }
154
+
155
+ export interface HugoConvertToTOMLOptions extends HugoGlobalOptions {
156
+ }
157
+
158
+ export interface HugoConvertToYAMLOptions extends HugoGlobalOptions {
159
+ }
160
+
161
+ export interface HugoEnvOptions extends HugoGlobalOptions {
162
+ }
163
+
164
+ export interface HugoGenOptions extends HugoGlobalOptions {
165
+ }
166
+
167
+ export interface HugoGenDocOptions extends HugoGlobalOptions {
168
+ /** the directory to write the doc. (default "/tmp/hugodoc/") */
169
+ dir?: string;
170
+ }
171
+
172
+ export interface HugoGenManOptions extends HugoGlobalOptions {
173
+ /** the directory to write the man pages. (default "man/") */
174
+ dir?: string;
175
+ }
176
+
177
+ export interface HugoHelpOptions extends HugoGlobalOptions {
178
+ }
179
+
180
+ export interface HugoImportOptions extends HugoGlobalOptions {
181
+ }
182
+
183
+ export interface HugoImportJekyllOptions extends HugoGlobalOptions {
184
+ /** allow import into non-empty target directory */
185
+ force?: boolean;
186
+ }
187
+
188
+ export interface HugoListOptions extends HugoGlobalOptions {
189
+ }
190
+
191
+ export interface HugoListAllOptions extends HugoGlobalOptions {
192
+ }
193
+
194
+ export interface HugoListDraftsOptions extends HugoGlobalOptions {
195
+ }
196
+
197
+ export interface HugoListExpiredOptions extends HugoGlobalOptions {
198
+ }
199
+
200
+ export interface HugoListFutureOptions extends HugoGlobalOptions {
201
+ }
202
+
203
+ export interface HugoListPublishedOptions extends HugoGlobalOptions {
204
+ }
205
+
206
+ export interface HugoModOptions extends HugoGlobalOptions {
207
+ }
208
+
209
+ export interface HugoModCleanOptions extends HugoGlobalOptions {
210
+ /** clean entire module cache */
211
+ all?: boolean;
212
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
213
+ baseURL?: string;
214
+ /** filesystem path to cache directory */
215
+ cacheDir?: string;
216
+ /** filesystem path to content directory */
217
+ contentDir?: string;
218
+ /** pattern matching module paths to clean (all if not set), e.g. "**hugo*" */
219
+ pattern?: string;
220
+ /** named segments to render (configured in the segments config) */
221
+ renderSegments?: string[];
222
+ /** themes to use (located in /themes/THEMENAME/) */
223
+ theme?: string[];
224
+ }
225
+
226
+ export interface HugoModGetOptions extends HugoGlobalOptions {
227
+ }
228
+
229
+ export interface HugoModGraphOptions extends HugoGlobalOptions {
230
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
231
+ baseURL?: string;
232
+ /** filesystem path to cache directory */
233
+ cacheDir?: string;
234
+ /** delete module cache for dependencies that fail verification */
235
+ clean?: boolean;
236
+ /** filesystem path to content directory */
237
+ contentDir?: string;
238
+ /** named segments to render (configured in the segments config) */
239
+ renderSegments?: string[];
240
+ /** themes to use (located in /themes/THEMENAME/) */
241
+ theme?: string[];
242
+ }
243
+
244
+ export interface HugoModInitOptions extends HugoGlobalOptions {
245
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
246
+ baseURL?: string;
247
+ /** filesystem path to cache directory */
248
+ cacheDir?: string;
249
+ /** filesystem path to content directory */
250
+ contentDir?: string;
251
+ /** named segments to render (configured in the segments config) */
252
+ renderSegments?: string[];
253
+ /** themes to use (located in /themes/THEMENAME/) */
254
+ theme?: string[];
255
+ }
256
+
257
+ export interface HugoModNpmOptions extends HugoGlobalOptions {
258
+ }
259
+
260
+ export interface HugoModNpmPackOptions extends HugoGlobalOptions {
261
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
262
+ baseURL?: string;
263
+ /** filesystem path to cache directory */
264
+ cacheDir?: string;
265
+ /** filesystem path to content directory */
266
+ contentDir?: string;
267
+ /** named segments to render (configured in the segments config) */
268
+ renderSegments?: string[];
269
+ /** themes to use (located in /themes/THEMENAME/) */
270
+ theme?: string[];
271
+ }
272
+
273
+ export interface HugoModTidyOptions extends HugoGlobalOptions {
274
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
275
+ baseURL?: string;
276
+ /** filesystem path to cache directory */
277
+ cacheDir?: string;
278
+ /** filesystem path to content directory */
279
+ contentDir?: string;
280
+ /** named segments to render (configured in the segments config) */
281
+ renderSegments?: string[];
282
+ /** themes to use (located in /themes/THEMENAME/) */
283
+ theme?: string[];
284
+ }
285
+
286
+ export interface HugoModVendorOptions extends HugoGlobalOptions {
287
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
288
+ baseURL?: string;
289
+ /** filesystem path to cache directory */
290
+ cacheDir?: string;
291
+ /** filesystem path to content directory */
292
+ contentDir?: string;
293
+ /** named segments to render (configured in the segments config) */
294
+ renderSegments?: string[];
295
+ /** themes to use (located in /themes/THEMENAME/) */
296
+ theme?: string[];
297
+ }
298
+
299
+ export interface HugoModVerifyOptions extends HugoGlobalOptions {
300
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
301
+ baseURL?: string;
302
+ /** filesystem path to cache directory */
303
+ cacheDir?: string;
304
+ /** delete module cache for dependencies that fail verification */
305
+ clean?: boolean;
306
+ /** filesystem path to content directory */
307
+ contentDir?: string;
308
+ /** named segments to render (configured in the segments config) */
309
+ renderSegments?: string[];
310
+ /** themes to use (located in /themes/THEMENAME/) */
311
+ theme?: string[];
312
+ }
313
+
314
+ export interface HugoNewOptions extends HugoGlobalOptions {
315
+ }
316
+
317
+ export interface HugoNewContentOptions extends HugoGlobalOptions {
318
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
319
+ baseURL?: string;
320
+ /** filesystem path to cache directory */
321
+ cacheDir?: string;
322
+ /** filesystem path to content directory */
323
+ contentDir?: string;
324
+ /** edit new content with this editor, if provided */
325
+ editor?: string;
326
+ /** overwrite file if it already exists */
327
+ force?: boolean;
328
+ /** content type to create */
329
+ kind?: string;
330
+ /** named segments to render (configured in the segments config) */
331
+ renderSegments?: string[];
332
+ /** themes to use (located in /themes/THEMENAME/) */
333
+ theme?: string[];
334
+ }
335
+
336
+ export interface HugoNewSiteOptions extends HugoGlobalOptions {
337
+ /** init inside non-empty directory */
338
+ force?: boolean;
339
+ /** preferred file format (toml, yaml or json) (default "toml") */
340
+ format?: string;
341
+ }
342
+
343
+ export interface HugoNewThemeOptions extends HugoGlobalOptions {
344
+ /** preferred file format (toml, yaml or json) (default "toml") */
345
+ format?: string;
346
+ }
347
+
348
+ export interface HugoServerOptions extends HugoGlobalOptions {
349
+ /** append port to baseURL (default true) */
350
+ appendPort?: boolean;
351
+ /** hostname (and path) to the root, e.g. https://spf13.com/ */
352
+ baseURL?: string;
353
+ /** interface to which the server will bind (default "127.0.0.1") */
354
+ bind?: string;
355
+ /** include content marked as draft */
356
+ buildDrafts?: boolean;
357
+ /** include expired content */
358
+ buildExpired?: boolean;
359
+ /** include content with publishdate in the future */
360
+ buildFuture?: boolean;
361
+ /** filesystem path to cache directory */
362
+ cacheDir?: string;
363
+ /** remove files from destination not found in static directories */
364
+ cleanDestinationDir?: boolean;
365
+ /** filesystem path to content directory */
366
+ contentDir?: string;
367
+ /** do not show build errors in the browser */
368
+ disableBrowserError?: boolean;
369
+ /** enables full re-renders on changes */
370
+ disableFastRender?: boolean;
371
+ /** disable different kind of pages (home, RSS etc.) */
372
+ disableKinds?: string[];
373
+ /** watch without enabling live browser reload on rebuild */
374
+ disableLiveReload?: boolean;
375
+ /** add Git revision, date, author, and CODEOWNERS info to the pages */
376
+ enableGitInfo?: boolean;
377
+ /** copy all files when static is changed. */
378
+ forceSyncStatic?: boolean;
379
+ /** enable to run some cleanup tasks (remove unused cache files) after the build */
380
+ gc?: boolean;
381
+ /** ignores the cache directory */
382
+ ignoreCache?: boolean;
383
+ /** filesystem path to layout directory */
384
+ layoutDir?: string;
385
+ /** port for live reloading (i.e. 443 in HTTPS proxy situations) (default -1) */
386
+ liveReloadPort?: number;
387
+ /** minify any supported output format (HTML, XML etc.) */
388
+ minify?: boolean;
389
+ /** navigate to changed content file on live browser reload */
390
+ navigateToChanged?: boolean;
391
+ /** don't sync permission mode of files */
392
+ noChmod?: boolean;
393
+ /** prevent HTTP caching */
394
+ noHTTPCache?: boolean;
395
+ /** don't sync modification time of files */
396
+ noTimes?: boolean;
397
+ /** open the site in a browser after server startup */
398
+ openBrowser?: boolean;
399
+ /** panic on first WARNING log */
400
+ panicOnWarning?: boolean;
401
+ /** set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes */
402
+ poll?: string;
403
+ /** port on which the server will listen (default 1313) */
404
+ port?: number;
405
+ /** enable the pprof server (port 8080) */
406
+ pprof?: boolean;
407
+ /** print missing translations */
408
+ printI18nWarnings?: boolean;
409
+ /** print memory usage to screen at intervals */
410
+ printMemoryUsage?: boolean;
411
+ /** print warnings on duplicate target paths etc. */
412
+ printPathWarnings?: boolean;
413
+ /** print warnings on unused templates. */
414
+ printUnusedTemplates?: boolean;
415
+ /** named segments to render (configured in the segments config) */
416
+ renderSegments?: string[];
417
+ /** serve static files from disk and dynamic files from memory */
418
+ renderStaticToDisk?: boolean;
419
+ /** display metrics about template executions */
420
+ templateMetrics?: boolean;
421
+ /** calculate some improvement hints when combined with --templateMetrics */
422
+ templateMetricsHints?: boolean;
423
+ /** themes to use (located in /themes/THEMENAME/) */
424
+ theme?: string[];
425
+ /** generate and use locally-trusted certificates. */
426
+ tlsAuto?: boolean;
427
+ /** path to TLS certificate file */
428
+ tlsCertFile?: string;
429
+ /** path to TLS key file */
430
+ tlsKeyFile?: string;
431
+ /** write trace to file (not useful in general) */
432
+ trace?: string;
433
+ /** watch filesystem for changes and recreate as needed (default true) */
434
+ watch?: boolean;
435
+ }
436
+
437
+ export interface HugoServerTrustOptions extends HugoGlobalOptions {
438
+ /** Uninstall the local CA (but do not delete it). */
439
+ uninstall?: boolean;
440
+ }
441
+
442
+ export interface HugoVersionOptions extends HugoGlobalOptions {
443
+ }
444
+
445
+ export type HugoCommand = "build" | "completion" | "completion bash" | "completion fish" | "completion powershell" | "completion zsh" | "config" | "config mounts" | "convert" | "convert toJSON" | "convert toTOML" | "convert toYAML" | "env" | "gen" | "gen doc" | "gen man" | "help" | "import" | "import jekyll" | "list" | "list all" | "list drafts" | "list expired" | "list future" | "list published" | "mod" | "mod clean" | "mod get" | "mod graph" | "mod init" | "mod npm" | "mod npm pack" | "mod tidy" | "mod vendor" | "mod verify" | "new" | "new content" | "new site" | "new theme" | "server" | "server trust" | "version";
446
+
447
+ export type HugoOptionsFor<C extends HugoCommand> =
448
+ C extends "build" ? HugoBuildOptions :
449
+ C extends "completion" ? HugoCompletionOptions :
450
+ C extends "completion bash" ? HugoCompletionBashOptions :
451
+ C extends "completion fish" ? HugoCompletionFishOptions :
452
+ C extends "completion powershell" ? HugoCompletionPowershellOptions :
453
+ C extends "completion zsh" ? HugoCompletionZshOptions :
454
+ C extends "config" ? HugoConfigOptions :
455
+ C extends "config mounts" ? HugoConfigMountsOptions :
456
+ C extends "convert" ? HugoConvertOptions :
457
+ C extends "convert toJSON" ? HugoConvertToJSONOptions :
458
+ C extends "convert toTOML" ? HugoConvertToTOMLOptions :
459
+ C extends "convert toYAML" ? HugoConvertToYAMLOptions :
460
+ C extends "env" ? HugoEnvOptions :
461
+ C extends "gen" ? HugoGenOptions :
462
+ C extends "gen doc" ? HugoGenDocOptions :
463
+ C extends "gen man" ? HugoGenManOptions :
464
+ C extends "help" ? HugoHelpOptions :
465
+ C extends "import" ? HugoImportOptions :
466
+ C extends "import jekyll" ? HugoImportJekyllOptions :
467
+ C extends "list" ? HugoListOptions :
468
+ C extends "list all" ? HugoListAllOptions :
469
+ C extends "list drafts" ? HugoListDraftsOptions :
470
+ C extends "list expired" ? HugoListExpiredOptions :
471
+ C extends "list future" ? HugoListFutureOptions :
472
+ C extends "list published" ? HugoListPublishedOptions :
473
+ C extends "mod" ? HugoModOptions :
474
+ C extends "mod clean" ? HugoModCleanOptions :
475
+ C extends "mod get" ? HugoModGetOptions :
476
+ C extends "mod graph" ? HugoModGraphOptions :
477
+ C extends "mod init" ? HugoModInitOptions :
478
+ C extends "mod npm" ? HugoModNpmOptions :
479
+ C extends "mod npm pack" ? HugoModNpmPackOptions :
480
+ C extends "mod tidy" ? HugoModTidyOptions :
481
+ C extends "mod vendor" ? HugoModVendorOptions :
482
+ C extends "mod verify" ? HugoModVerifyOptions :
483
+ C extends "new" ? HugoNewOptions :
484
+ C extends "new content" ? HugoNewContentOptions :
485
+ C extends "new site" ? HugoNewSiteOptions :
486
+ C extends "new theme" ? HugoNewThemeOptions :
487
+ C extends "server" ? HugoServerOptions :
488
+ C extends "server trust" ? HugoServerTrustOptions :
489
+ C extends "version" ? HugoVersionOptions :
490
+ never;