@farming-labs/docs 0.1.7 → 0.1.9
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.mjs
CHANGED
|
@@ -69,7 +69,7 @@ async function main() {
|
|
|
69
69
|
searchApiKey: typeof flags["search-api-key"] === "string" ? flags["search-api-key"] : void 0
|
|
70
70
|
};
|
|
71
71
|
if (!parsedCommand.command || parsedCommand.command === "init") {
|
|
72
|
-
const { init } = await import("../init-
|
|
72
|
+
const { init } = await import("../init-DfvwcfEI.mjs");
|
|
73
73
|
await init(initOptions);
|
|
74
74
|
} else if (parsedCommand.command === "mcp") {
|
|
75
75
|
const { runMcp } = await import("../mcp-aXyV1jPp.mjs");
|
|
@@ -116,7 +116,7 @@ ${pc.dim("Supported frameworks:")}
|
|
|
116
116
|
${pc.dim("Options for init:")}
|
|
117
117
|
${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")}
|
|
118
118
|
${pc.cyan("--name <project>")} Project folder name when using ${pc.cyan("--template")}; prompt if omitted (e.g. ${pc.dim("my-docs")})
|
|
119
|
-
${pc.cyan("--theme <name>")} Skip theme prompt (e.g. ${pc.dim("darksharp")}, ${pc.dim("
|
|
119
|
+
${pc.cyan("--theme <name>")} Skip theme prompt (e.g. ${pc.dim("darksharp")}, ${pc.dim("command-grid")})
|
|
120
120
|
${pc.cyan("--entry <path>")} Skip entry path prompt (e.g. ${pc.dim("docs")})
|
|
121
121
|
${pc.cyan("--api-reference")} Scaffold API reference support during ${pc.cyan("init")}
|
|
122
122
|
${pc.cyan("--no-api-reference")} Skip API reference scaffold during ${pc.cyan("init")}
|
|
@@ -94,6 +94,17 @@ const THEME_INFO = {
|
|
|
94
94
|
astroCssTheme: "concrete",
|
|
95
95
|
nuxtCssTheme: "concrete"
|
|
96
96
|
},
|
|
97
|
+
"command-grid": {
|
|
98
|
+
factory: "commandGrid",
|
|
99
|
+
nextImport: "@farming-labs/theme/command-grid",
|
|
100
|
+
svelteImport: "@farming-labs/svelte-theme/command-grid",
|
|
101
|
+
astroImport: "@farming-labs/astro-theme/command-grid",
|
|
102
|
+
nuxtImport: "@farming-labs/nuxt-theme/command-grid",
|
|
103
|
+
nextCssImport: "command-grid",
|
|
104
|
+
svelteCssTheme: "command-grid",
|
|
105
|
+
astroCssTheme: "command-grid",
|
|
106
|
+
nuxtCssTheme: "command-grid"
|
|
107
|
+
},
|
|
97
108
|
hardline: {
|
|
98
109
|
factory: "hardline",
|
|
99
110
|
nextImport: "@farming-labs/theme/hardline",
|
|
@@ -2532,6 +2543,11 @@ async function init(options = {}) {
|
|
|
2532
2543
|
label: "Concrete",
|
|
2533
2544
|
hint: "Brutalist poster-style theme with offset shadows and loud contrast"
|
|
2534
2545
|
},
|
|
2546
|
+
{
|
|
2547
|
+
value: "command-grid",
|
|
2548
|
+
label: "Command Grid",
|
|
2549
|
+
hint: "Paper-grid docs shell inspired by better-cmdk"
|
|
2550
|
+
},
|
|
2535
2551
|
{
|
|
2536
2552
|
value: "hardline",
|
|
2537
2553
|
label: "Hardline",
|
|
@@ -3165,6 +3181,7 @@ function scaffoldSvelteKit(cwd, cfg, globalCssRelPath, write, skipped, written)
|
|
|
3165
3181
|
shiny: "shiny",
|
|
3166
3182
|
greentree: "greentree",
|
|
3167
3183
|
concrete: "concrete",
|
|
3184
|
+
"command-grid": "command-grid",
|
|
3168
3185
|
hardline: "hardline",
|
|
3169
3186
|
default: "fumadocs"
|
|
3170
3187
|
}[cfg.theme] || "fumadocs";
|
|
@@ -3210,6 +3227,7 @@ function scaffoldAstro(cwd, cfg, globalCssRelPath, write, skipped, written) {
|
|
|
3210
3227
|
shiny: "shiny",
|
|
3211
3228
|
greentree: "greentree",
|
|
3212
3229
|
concrete: "concrete",
|
|
3230
|
+
"command-grid": "command-grid",
|
|
3213
3231
|
hardline: "hardline",
|
|
3214
3232
|
default: "fumadocs"
|
|
3215
3233
|
}[cfg.theme] || "fumadocs";
|
|
@@ -3254,6 +3272,7 @@ function scaffoldNuxt(cwd, cfg, globalCssRelPath, write, skipped, written) {
|
|
|
3254
3272
|
shiny: "shiny",
|
|
3255
3273
|
greentree: "greentree",
|
|
3256
3274
|
concrete: "concrete",
|
|
3275
|
+
"command-grid": "command-grid",
|
|
3257
3276
|
hardline: "hardline",
|
|
3258
3277
|
default: "fumadocs"
|
|
3259
3278
|
}[cfg.theme] || "fumadocs";
|