@heyo-sh/create-heyo-docs 2.0.0 → 3.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/README.md +9 -9
- package/deployments/cloudflare/astro/src/env.d.ts +0 -2
- package/deployments/cloudflare/astro/src/pages/heyo-docs-internal/ai-chat.ts +1 -1
- package/deployments/cloudflare/next/app/heyo-docs-internal/ai-chat/route.ts +1 -1
- package/deployments/cloudflare/next/cloudflare-env.d.ts +0 -2
- package/deployments/cloudflare/react-router/app/cloudflare-env.d.ts +0 -2
- package/deployments/cloudflare/react-router/app/routes/ai-chat.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,15 +29,15 @@ The creator works with pnpm, npm, Yarn, and Bun.
|
|
|
29
29
|
Passing options makes the creator non-interactive; include a project-directory
|
|
30
30
|
argument when using them in automation.
|
|
31
31
|
|
|
32
|
-
| Option | Values
|
|
33
|
-
| ------------------- |
|
|
34
|
-
| `--template` | `react-router`, `next`, `astro`
|
|
35
|
-
| `--theme` | `grain`, `shade`, `moss`
|
|
36
|
-
| `--deployment` | `cloudflare`, `vercel`, `later`
|
|
37
|
-
| `--package-manager` | `bun`, `pnpm`, `npm`, `yarn`
|
|
38
|
-
| `--no-install` | Skip dependency installation
|
|
39
|
-
|
|
40
|
-
Read the [full documentation](https://
|
|
32
|
+
| Option | Values |
|
|
33
|
+
| ------------------- | -------------------------------- |
|
|
34
|
+
| `--template` | `react-router`, `next`, `astro` |
|
|
35
|
+
| `--theme` | `grain`, `shade`, `moss`, `heyo` |
|
|
36
|
+
| `--deployment` | `cloudflare`, `vercel`, `later` |
|
|
37
|
+
| `--package-manager` | `bun`, `pnpm`, `npm`, `yarn` |
|
|
38
|
+
| `--no-install` | Skip dependency installation |
|
|
39
|
+
|
|
40
|
+
Read the [full documentation](https://heyo.sh) for configuration, content, components, framework integrations, and deployment.
|
|
41
41
|
|
|
42
42
|
## License
|
|
43
43
|
|
|
@@ -2,7 +2,5 @@ declare namespace Cloudflare {
|
|
|
2
2
|
interface Env {
|
|
3
3
|
/** Preferred generic API-key binding; provider-specific auth stays in config. */
|
|
4
4
|
HEYO_DOCS_AI_API_KEY?: string;
|
|
5
|
-
/** @deprecated Use HEYO_DOCS_AI_API_KEY or config.ai.chat.auth. */
|
|
6
|
-
OPENAI_API_KEY?: string;
|
|
7
5
|
}
|
|
8
6
|
}
|
|
@@ -13,7 +13,7 @@ export const POST: APIRoute = async ({ request }) => {
|
|
|
13
13
|
{ status: 404 },
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
const token = env.HEYO_DOCS_AI_API_KEY
|
|
16
|
+
const token = env.HEYO_DOCS_AI_API_KEY;
|
|
17
17
|
const { createAiChatResponse } = await import("@heyo-sh/heyo-docs/ai");
|
|
18
18
|
return createAiChatResponse(request, {
|
|
19
19
|
ai: config.ai,
|
|
@@ -13,7 +13,7 @@ export async function POST(request: Request) {
|
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
const { env } = getCloudflareContext();
|
|
16
|
-
const token = env.HEYO_DOCS_AI_API_KEY
|
|
16
|
+
const token = env.HEYO_DOCS_AI_API_KEY;
|
|
17
17
|
const { createAiChatResponse } = await import("@heyo-sh/heyo-docs/ai");
|
|
18
18
|
return createAiChatResponse(request, {
|
|
19
19
|
ai: config.ai,
|
|
@@ -17,7 +17,7 @@ export async function action({ context, request }: ActionFunctionArgs) {
|
|
|
17
17
|
{ status: 404 },
|
|
18
18
|
);
|
|
19
19
|
const bindings = context.get(cloudflareContext);
|
|
20
|
-
const token = bindings.HEYO_DOCS_AI_API_KEY
|
|
20
|
+
const token = bindings.HEYO_DOCS_AI_API_KEY;
|
|
21
21
|
const { createAiChatResponse } = await import("@heyo-sh/heyo-docs/ai");
|
|
22
22
|
return createAiChatResponse(request, {
|
|
23
23
|
ai: config.ai,
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,SAAS,CAAC;AAEvD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAChE,mBAAmB,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,SAAS,CAAC;AAEvD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAChE,mBAAmB,SAAS,CAAC;AAsD7B,wBAAsB,GAAG,CAAC,IAAI,WAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBrE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAC9C,OAAO,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAsDA"}
|
package/dist/index.js
CHANGED
|
@@ -198,7 +198,7 @@ async function installDependencies(projectPath, packageManager) {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
// src/index.ts
|
|
201
|
-
var USAGE = "Usage: create-heyo-docs [project-name] [--template react-router|next|astro] [--deployment cloudflare|vercel|later] [--theme grain|shade|moss] [--package-manager bun|pnpm|npm|yarn] [--no-install]";
|
|
201
|
+
var USAGE = "Usage: create-heyo-docs [project-name] [--template react-router|next|astro] [--deployment cloudflare|vercel|later] [--theme grain|shade|moss|heyo] [--package-manager bun|pnpm|npm|yarn] [--no-install]";
|
|
202
202
|
var TEMPLATE_OPTIONS = [
|
|
203
203
|
{ value: "react-router", label: "React Router" },
|
|
204
204
|
{ value: "next", label: "Next.js" },
|
|
@@ -213,6 +213,7 @@ var THEME_OPTIONS = [
|
|
|
213
213
|
{ value: "grain", label: "Grain" },
|
|
214
214
|
{ value: "shade", label: "Shade" },
|
|
215
215
|
{ value: "moss", label: "Moss" },
|
|
216
|
+
{ value: "heyo", label: "Heyo" },
|
|
216
217
|
{
|
|
217
218
|
value: "dripper",
|
|
218
219
|
label: "Dripper — Soon",
|
|
@@ -292,7 +293,7 @@ function parseArguments(argv) {
|
|
|
292
293
|
} else if (value === "--deployment") {
|
|
293
294
|
options.deployment = readEnum(argv[++index], ["cloudflare", "vercel", "later"], "deployment");
|
|
294
295
|
} else if (value === "--theme") {
|
|
295
|
-
options.theme = readEnum(argv[++index], ["grain", "shade", "moss"], "theme");
|
|
296
|
+
options.theme = readEnum(argv[++index], ["grain", "shade", "moss", "heyo"], "theme");
|
|
296
297
|
} else if (value === "--package-manager") {
|
|
297
298
|
options.packageManager = readEnum(argv[++index], ["bun", "pnpm", "npm", "yarn"], "package manager");
|
|
298
299
|
} else if (value === "--no-install") {
|
|
@@ -324,7 +325,8 @@ async function askQuestions(defaults) {
|
|
|
324
325
|
const theme = await selectAvailable("Theme", THEME_OPTIONS, [
|
|
325
326
|
"grain",
|
|
326
327
|
"shade",
|
|
327
|
-
"moss"
|
|
328
|
+
"moss",
|
|
329
|
+
"heyo"
|
|
328
330
|
]);
|
|
329
331
|
const packageManager = await selectAvailable("Package manager", PACKAGE_MANAGER_OPTIONS, ["bun", "pnpm", "npm", "yarn"], defaults.packageManager);
|
|
330
332
|
const install = promptValue(await p.confirm({
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type Template = "react-router" | "next" | "astro";
|
|
2
2
|
export type Deployment = "cloudflare" | "vercel" | "later";
|
|
3
|
-
export type Theme = "grain" | "shade" | "moss";
|
|
3
|
+
export type Theme = "grain" | "shade" | "moss" | "heyo";
|
|
4
4
|
export type PackageManager = "bun" | "pnpm" | "npm" | "yarn";
|
|
5
5
|
export interface CreateOptions {
|
|
6
6
|
projectName: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3D,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3D,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyo-sh/create-heyo-docs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Create a standalone Heyo Docs documentation project.",
|
|
5
5
|
"homepage": "https://heyo.sh",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@clack/prompts": "1.8.
|
|
30
|
+
"@clack/prompts": "1.8.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "bun run build --watch",
|