Skip to content

Commit

Permalink
remove unused references to non-existent image at https://github.com/…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Nov 18, 2024
1 parent 85e1328 commit 46e9e83
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions apps/docs/content/components/IDE.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function isPositive(text: string): Promise<boolean> {
{
name: 'parse_expenses.py',
code: `import datetime
def parse_expenses(expenses_string):
Ignore lines starting with #.
Parse the date using datetime.
Expand Down Expand Up @@ -187,7 +187,6 @@ See Storybook for a comprehensive example of the Chat feature, inclusive of synt
{
role: 'assistant',
handle: 'GitHub Copilot',
avatar: 'https://github.com/copilot.png',
message:
"To concatenate two arrays in JavaScript, you can use the `concat` method. Here's an example:",
codeSnippet: `const array1 = [1, 2, 3];\nconst array2 = [4, 5, 6];\nconst resultArray = array1.concat(array2);\nconsole.log(resultArray); // Output: [1, 2, 3, 4, 5, 6]`,
Expand Down Expand Up @@ -242,7 +241,7 @@ async function isPositive(text: string): Promise<boolean> {
{
name: 'parse_expenses.py',
code: `import datetime
def parse_expenses(expenses_string):
Ignore lines starting with #.
Parse the date using datetime.
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/IDE/IDE.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('IDE', () => {
{
role: 'assistant',
handle: 'GitHub Copilot',
avatar: 'https://github.com/copilot.png',
message: "To concatenate two arrays in JavaScript, you can use the `concat` method. Here's an example:",
codeSnippet:
'const array1 = [1, 2, 3];\nconst array2 = [4, 5, 6];\nconst resultArray = array1.concat(array2);\nconsole.log(resultArray); // Output: [1, 2, 3, 4, 5, 6]',
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/IDE/fixtures/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const chatScript: IDEChatMessage[] = [
{
role: 'assistant',
handle: 'GitHub Copilot',
avatar: 'https://github.com/copilot.png',
message: "To concatenate two arrays in JavaScript, you can use the `concat` method. Here's an example:",
codeSnippet: hljs.highlight(
'const array1 = [1, 2, 3];\nconst array2 = [4, 5, 6];\nconst resultArray = array1.concat(array2);\nconsole.log(resultArray); // Output: [1, 2, 3, 4, 5, 6]',
Expand All @@ -34,7 +33,6 @@ export const chatScript: IDEChatMessage[] = [
{
role: 'assistant',
handle: 'GitHub Copilot',
avatar: 'https://github.com/copilot.png',
message: "You can use the `Array.isArray()` method to check if a variable is an array. Here's an example:",
codeSnippet: hljs.highlight(
"const myVariable = [1, 2, 3];\nif (Array.isArray(myVariable)) {\n console.log('It is an array!');\n} else {\n console.log('It is not an array.');\n}",
Expand All @@ -51,7 +49,6 @@ export const chatScript: IDEChatMessage[] = [
{
role: 'assistant',
handle: 'GitHub Copilot',
avatar: 'https://github.com/copilot.png',
message: "You can use the `filter` method to remove a specific element from an array. Here's an example:",
codeSnippet: hljs.highlight(
'const array = [1, 2, 3, 4, 5];\nconst elementToRemove = 3;\nconst filteredArray = array.filter(item => item !== elementToRemove);\nconsole.log(filteredArray); // Output: [1, 2, 4, 5]',
Expand Down

0 comments on commit 46e9e83

Please sign in to comment.