Skip to content

Commit 52a04b6

Browse files
committed
docs(app): improve page prompts
1 parent b58eac9 commit 52a04b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/app/components/PageHeaderLinks.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const { track } = useAnalytics()
77
const appConfig = useAppConfig()
88
99
const mdPath = computed(() => `${site.url}/raw${route.path}.md`)
10+
const aiPrompt = computed(() => `I'm looking at this Nuxt UI documentation: ${mdPath.value}\nHelp me understand how to use it. Be ready to explain concepts, give examples, or help debug based on it.`)
1011
1112
const items = [
1213
{
@@ -34,7 +35,7 @@ const items = [
3435
label: 'Open in ChatGPT',
3536
icon: 'i-simple-icons:openai',
3637
target: '_blank',
37-
to: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(`Read ${mdPath.value} so I can ask questions about it.`)}`,
38+
to: `https://chatgpt.com/?prompt=${encodeURIComponent(aiPrompt.value)}`,
3839
onSelect() {
3940
track('Page Action', { action: 'Open in ChatGPT', page: route.path })
4041
}
@@ -43,7 +44,7 @@ const items = [
4344
label: 'Open in Claude',
4445
icon: 'i-simple-icons:anthropic',
4546
target: '_blank',
46-
to: `https://claude.ai/new?q=${encodeURIComponent(`Read ${mdPath.value} so I can ask questions about it.`)}`,
47+
to: `https://claude.ai/new?q=${encodeURIComponent(aiPrompt.value)}`,
4748
onSelect() {
4849
track('Page Action', { action: 'Open in Claude', page: route.path })
4950
}

0 commit comments

Comments
 (0)