diff --git a/docusaurus/.gitignore b/docusaurus/.gitignore index fc6e0ad721..4192533a06 100644 --- a/docusaurus/.gitignore +++ b/docusaurus/.gitignore @@ -32,5 +32,10 @@ docs/node_modules/** # LLMs.txt files and related llms*.txt **/llm*.txt + +# Allow the generated public files under static/ to be committed by CI +!static/llms.txt +!static/llms-full.txt +!static/llms-code.txt pr-*.diff -*-results.json \ No newline at end of file +*-results.json diff --git a/docusaurus/src/components/AiToolbar/config/aiToolsConfig.js b/docusaurus/src/components/AiToolbar/config/aiToolsConfig.js index 4e06ebd52e..adf336d847 100644 --- a/docusaurus/src/components/AiToolbar/config/aiToolsConfig.js +++ b/docusaurus/src/components/AiToolbar/config/aiToolsConfig.js @@ -11,6 +11,29 @@ export const aiToolsConfig = { icon: 'copy', actionType: 'copy-markdown', }, + { + id: 'open-chatgpt', + label: 'Open with ChatGPT', + icon: 'open-ai-logo', + actionType: 'open-llm', + targetUrl: 'https://chat.openai.com/', + promptTemplate: 'Read from {{url}} so I can ask questions about it.', + localizedPromptTemplates: aiPromptTemplates, + promptParam: 'prompt', + openIn: '_blank', + }, + { + id: 'open-claude', + label: 'Open with Claude', + icon: 'chat-teardrop-text', + actionType: 'open-llm', + targetUrl: 'https://claude.ai/new', + promptTemplate: 'Read from {{url}} so I can ask questions about it.', + localizedPromptTemplates: aiPromptTemplates, + copyPromptToClipboard: true, + promptParam: 'q', + openIn: '_blank', + }, { id: 'view-llms', label: 'View LLMs.txt', @@ -35,28 +58,5 @@ export const aiToolsConfig = { actionType: 'navigate', url: '/llms-full.txt', }, - { - id: 'open-chatgpt', - label: 'Open with ChatGPT', - icon: 'open-ai-logo', - actionType: 'open-llm', - targetUrl: 'https://chat.openai.com/', - promptTemplate: 'Read from {{url}} so I can ask questions about it.', - localizedPromptTemplates: aiPromptTemplates, - promptParam: 'prompt', - openIn: '_blank', - }, - { - id: 'open-claude', - label: 'Open with Claude', - icon: 'chat-teardrop-text', - actionType: 'open-llm', - targetUrl: 'https://claude.ai/new', - promptTemplate: 'Read from {{url}} so I can ask questions about it.', - localizedPromptTemplates: aiPromptTemplates, - copyPromptToClipboard: true, - promptParam: 'q', - openIn: '_blank', - }, ], };