diff --git a/.vscode/settings.json b/.vscode/settings.json index 7704b36272..bde2173f0b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,7 @@ "demux", "devcontainers", "dockerode", + "docstrings", "doptions", "Entra", "Evals", diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index d19da02e95..8d0f2705ab 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -54,6 +54,10 @@ export default defineConfig({ label: "Case Studies", autogenerate: { directory: "case-studies" }, }, + { + label: "Samples", + autogenerate: { directory: "samples" }, + }, { label: "Guides", autogenerate: { directory: "guides" }, diff --git a/docs/genaisrc/genaiscript.d.ts b/docs/genaisrc/genaiscript.d.ts index cebccd0b26..a0a2d39fdf 100644 --- a/docs/genaisrc/genaiscript.d.ts +++ b/docs/genaisrc/genaiscript.d.ts @@ -1512,7 +1512,7 @@ interface FileOutputOptions { } interface FileOutput { - pattern: string + pattern: string[] description?: string options?: FileOutputOptions } @@ -1609,7 +1609,7 @@ interface ChatGenerationContext extends ChatTurnGenerationContext { options?: ChatParticipantOptions ): void defFileOutput( - pattern: string, + pattern: string | string[], description?: string, options?: FileOutputOptions ): void @@ -2453,7 +2453,7 @@ declare function def( * @param options expectations about the generated file content */ declare function defFileOutput( - pattern: string, + pattern: string | string[], description?: string, options?: FileOutputOptions ): void diff --git a/docs/src/content/docs/reference/cli/run.md b/docs/src/content/docs/reference/cli/run.mdx similarity index 96% rename from docs/src/content/docs/reference/cli/run.md rename to docs/src/content/docs/reference/cli/run.mdx index efd620fde6..897cab567f 100644 --- a/docs/src/content/docs/reference/cli/run.md +++ b/docs/src/content/docs/reference/cli/run.mdx @@ -34,7 +34,7 @@ See [configuration](/genaiscript/getting-started/configuration). ## Files -`run` takes one or more [glob](https://en.wikipedia.org/wiki/Glob_(programming)) patterns to match files in the workspace. +`run` takes one or more [glob]() patterns to match files in the workspace. ```bash sh npx genaiscript run