Skip to content

Commit 42fda8e

Browse files
committed
Fix tests & Cleanups
1 parent 9ae43d9 commit 42fda8e

File tree

132 files changed

+2886
-3641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+2886
-3641
lines changed

docs/.vitepress/config.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export default defineConfig({
6666
text: 'Overview',
6767
link: '/framework',
6868
},
69-
// {
70-
// text: 'Getting Started',
71-
// link: '/getting-started',
72-
// },
69+
{
70+
text: 'Getting Started',
71+
link: '/getting-started',
72+
},
7373
{
7474
text: 'Framework',
7575
items: [

docs/contributing/documentation.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,17 @@ Show multiple related files together:
167167

168168
```markdown
169169
::: code-group
170-
<<< @/../test/docs/examples/translation_agent.rb {ruby:line-numbers}
171-
<<< @/../test/dummy/app/views/translation_agent/translate.json.jbuilder {ruby:line-numbers}
170+
```ruby [translation_agent.rb]
171+
class TranslationAgent < ApplicationAgent
172+
def translate
173+
prompt
174+
end
175+
end
176+
\```
177+
```ruby [translate.json.jbuilder]
178+
json.action_name "translate"
179+
json.message params[:message]
180+
\```
172181
:::
173182
```
174183

@@ -177,7 +186,13 @@ Show multiple related files together:
177186
Display test code alongside its actual result:
178187

179188
```markdown
180-
<<< @/../test/docs/data_extraction_agent_test.rb#extract_data {ruby:line-numbers}
189+
\```ruby
190+
prompt = DataExtractionAgent.with(
191+
image_path: image_path
192+
).parse_content
193+
194+
response = prompt.generate_now
195+
\```
181196

182197
::: details Response
183198
<!-- @include: @/parts/examples/data-extraction-agent-test.rb-test-extract-data.md -->

0 commit comments

Comments
 (0)