Skip to content

Commit

Permalink
a few more alt descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Mar 23, 2024
1 parent 6813cd4 commit 3fa7e4b
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 14 deletions.
199 changes: 187 additions & 12 deletions docs/genaisrc/genaiscript.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/src/assets/debugger.png.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A screenshot of a debugging session in a code editor with a breakpoint set on a line of code. The editor is displaying several panels including the watch variables, call stack, and a terminal output. The code is partially visible with a function definition and JSON configuration data.
1 change: 1 addition & 0 deletions docs/src/assets/vscode-dotenv.png.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A screenshot of a Visual Studio Code interface highlighting the .env file within the scripts directory, with the file icon indicating it is a dotenv (environment variables) file.
2 changes: 2 additions & 0 deletions docs/src/assets/vscode-extensions-view.png.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Icon representing the GenAIScript view in Visual Studio Code,
located in the activity bar on the left side of the screen.
8 changes: 6 additions & 2 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ hero:
link: https://github.com/microsoft/genaiscript/
icon: github
---

import { Image} from "astro:assets"
import { Card, CardGrid } from "@astrojs/starlight/components"
import { FileTree } from "@astrojs/starlight/components"

import debuggerSrc from '../../assets/debugger.png';
import debuggerAlt from "../../assets/debugger.png.txt?raw"


```js wrap title="extract-data.genai.js"
// define the context
def("FILE", env.files, { endsWith: ".pdf" })
Expand Down Expand Up @@ -75,7 +79,7 @@ $`Summarize FILE. Today is ${new Date()}.`

Edit, [debug](/genaiscript/getting-started/debugging-scripts/), [run](/genaiscript/getting-started/running-scripts/) your scripts in [Visual Studio Code](/genaiscript/getting-started/installation).

![Debugging a script](../../assets/debugger.png)
<Image src={debuggerSrc} alt={debuggerAlt} />

</Card>

Expand Down

0 comments on commit 3fa7e4b

Please sign in to comment.