@farming-labs/docs 0.0.68 → 0.0.71
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/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +40 -2
- package/package.json +1 -1
package/dist/cli/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/cli/index.d.ts
|
|
2
|
-
/** Parse flags like --template next, --name my-docs, --theme
|
|
2
|
+
/** Parse flags like --template next, --name my-docs, --theme concrete, --entry docs, --framework astro (exported for tests). */
|
|
3
3
|
declare function parseFlags(argv: string[]): Record<string, string | boolean | undefined>;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { parseFlags };
|
package/dist/cli/index.mjs
CHANGED
|
@@ -223,6 +223,28 @@ const THEME_INFO = {
|
|
|
223
223
|
svelteCssTheme: "greentree",
|
|
224
224
|
astroCssTheme: "greentree",
|
|
225
225
|
nuxtCssTheme: "greentree"
|
|
226
|
+
},
|
|
227
|
+
concrete: {
|
|
228
|
+
factory: "concrete",
|
|
229
|
+
nextImport: "@farming-labs/theme/concrete",
|
|
230
|
+
svelteImport: "@farming-labs/svelte-theme/concrete",
|
|
231
|
+
astroImport: "@farming-labs/astro-theme/concrete",
|
|
232
|
+
nuxtImport: "@farming-labs/nuxt-theme/concrete",
|
|
233
|
+
nextCssImport: "concrete",
|
|
234
|
+
svelteCssTheme: "concrete",
|
|
235
|
+
astroCssTheme: "concrete",
|
|
236
|
+
nuxtCssTheme: "concrete"
|
|
237
|
+
},
|
|
238
|
+
hardline: {
|
|
239
|
+
factory: "hardline",
|
|
240
|
+
nextImport: "@farming-labs/theme/hardline",
|
|
241
|
+
svelteImport: "@farming-labs/svelte-theme/hardline",
|
|
242
|
+
astroImport: "@farming-labs/astro-theme/hardline",
|
|
243
|
+
nuxtImport: "@farming-labs/nuxt-theme/hardline",
|
|
244
|
+
nextCssImport: "hardline",
|
|
245
|
+
svelteCssTheme: "hardline",
|
|
246
|
+
astroCssTheme: "hardline",
|
|
247
|
+
nuxtCssTheme: "hardline"
|
|
226
248
|
}
|
|
227
249
|
};
|
|
228
250
|
function getThemeInfo(theme) {
|
|
@@ -2646,6 +2668,16 @@ async function init(options = {}) {
|
|
|
2646
2668
|
label: "GreenTree",
|
|
2647
2669
|
hint: "Emerald green accent, Inter font, Mintlify-inspired"
|
|
2648
2670
|
},
|
|
2671
|
+
{
|
|
2672
|
+
value: "concrete",
|
|
2673
|
+
label: "Concrete",
|
|
2674
|
+
hint: "Brutalist poster-style theme with offset shadows and loud contrast"
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
value: "hardline",
|
|
2678
|
+
label: "Hardline",
|
|
2679
|
+
hint: "Hard-edge theme with square corners and bold borders"
|
|
2680
|
+
},
|
|
2649
2681
|
{
|
|
2650
2682
|
value: "custom",
|
|
2651
2683
|
label: "Create your own theme",
|
|
@@ -3273,6 +3305,8 @@ function scaffoldSvelteKit(cwd, cfg, globalCssRelPath, write, skipped, written)
|
|
|
3273
3305
|
darkbold: "darkbold",
|
|
3274
3306
|
shiny: "shiny",
|
|
3275
3307
|
greentree: "greentree",
|
|
3308
|
+
concrete: "concrete",
|
|
3309
|
+
hardline: "hardline",
|
|
3276
3310
|
default: "fumadocs"
|
|
3277
3311
|
}[cfg.theme] || "fumadocs";
|
|
3278
3312
|
if (existingGlobalCss) {
|
|
@@ -3316,6 +3350,8 @@ function scaffoldAstro(cwd, cfg, globalCssRelPath, write, skipped, written) {
|
|
|
3316
3350
|
darkbold: "darkbold",
|
|
3317
3351
|
shiny: "shiny",
|
|
3318
3352
|
greentree: "greentree",
|
|
3353
|
+
concrete: "concrete",
|
|
3354
|
+
hardline: "hardline",
|
|
3319
3355
|
default: "fumadocs"
|
|
3320
3356
|
}[cfg.theme] || "fumadocs";
|
|
3321
3357
|
if (existingGlobalCss) {
|
|
@@ -3358,6 +3394,8 @@ function scaffoldNuxt(cwd, cfg, globalCssRelPath, write, skipped, written) {
|
|
|
3358
3394
|
darkbold: "darkbold",
|
|
3359
3395
|
shiny: "shiny",
|
|
3360
3396
|
greentree: "greentree",
|
|
3397
|
+
concrete: "concrete",
|
|
3398
|
+
hardline: "hardline",
|
|
3361
3399
|
default: "fumadocs"
|
|
3362
3400
|
}[cfg.theme] || "fumadocs";
|
|
3363
3401
|
const globalCssAbsPath = path.join(cwd, globalCssRelPath);
|
|
@@ -3512,7 +3550,7 @@ async function upgrade(options = {}) {
|
|
|
3512
3550
|
//#region src/cli/index.ts
|
|
3513
3551
|
const args = process.argv.slice(2);
|
|
3514
3552
|
const command = args[0];
|
|
3515
|
-
/** Parse flags like --template next, --name my-docs, --theme
|
|
3553
|
+
/** Parse flags like --template next, --name my-docs, --theme concrete, --entry docs, --framework astro (exported for tests). */
|
|
3516
3554
|
function parseFlags(argv) {
|
|
3517
3555
|
const flags = {};
|
|
3518
3556
|
const booleanFlags = new Set(["api-reference"]);
|
|
@@ -3573,7 +3611,7 @@ ${pc.dim("Supported frameworks:")}
|
|
|
3573
3611
|
${pc.dim("Options for init:")}
|
|
3574
3612
|
${pc.cyan("--template <name>")} Bootstrap a project (${pc.dim("next")}, ${pc.dim("nuxt")}, ${pc.dim("sveltekit")}, ${pc.dim("astro")}, ${pc.dim("tanstack-start")}); use with ${pc.cyan("--name")}
|
|
3575
3613
|
${pc.cyan("--name <project>")} Project folder name when using ${pc.cyan("--template")}; prompt if omitted (e.g. ${pc.dim("my-docs")})
|
|
3576
|
-
${pc.cyan("--theme <name>")} Skip theme prompt (e.g. ${pc.dim("darksharp")}, ${pc.dim("
|
|
3614
|
+
${pc.cyan("--theme <name>")} Skip theme prompt (e.g. ${pc.dim("darksharp")}, ${pc.dim("concrete")})
|
|
3577
3615
|
${pc.cyan("--entry <path>")} Skip entry path prompt (e.g. ${pc.dim("docs")})
|
|
3578
3616
|
${pc.cyan("--api-reference")} Scaffold API reference support during ${pc.cyan("init")}
|
|
3579
3617
|
${pc.cyan("--no-api-reference")} Skip API reference scaffold during ${pc.cyan("init")}
|