Skip to content

Commit 35af7c2

Browse files
committed
docs: enhance regionInclude shortcode documentation by adding a code snippet example
1 parent cc1d81a commit 35af7c2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

DEVELOPER.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,17 @@ The `regionInclude` shortcode reads a file, extracts content between `[START reg
489489
**Syntax:**
490490
`{{< regionInclude "path/to/file" "region_name" "language" >}}`
491491
492-
**Example:**
492+
**Example Markdown:**
493493
`{{< regionInclude "samples/program.js" "program_setup" "javascript" >}}`
494494
495+
**Example Code Snippet (`samples/program.js`):**
496+
```javascript
497+
// [START program_setup]
498+
import { Toolbox } from '@googleapis/genai-toolbox';
499+
const toolbox = new Toolbox();
500+
// [END program_setup]
501+
```
502+
495503
**Source:** [.hugo/layouts/shortcodes/regionInclude.html](.hugo/layouts/shortcodes/regionInclude.html)
496504
497505
## Building Toolbox

0 commit comments

Comments
 (0)