Skip to content

Commit

Permalink
ruby snippets in ui (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo authored Apr 11, 2024
1 parent 4f17747 commit 3f20ea7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/ui/app/src/util/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,17 @@ function resolveCodeSnippets(
});
}

if (example.codeExamples.rubySdk != null) {
toRet.push({
name: undefined,
language: "ruby",
install: example.codeExamples.rubySdk.install,
code: example.codeExamples.rubySdk.client,
// hast: highlight(highlighter, code, "ruby"),
generated: true,
});
}

example.codeSamples.forEach((codeSample) => {
const language = cleanLanguage(codeSample.language);
// Remove any generated code snippets with the same language
Expand Down

0 comments on commit 3f20ea7

Please sign in to comment.