Skip to content

feat: use nuxt search api for showing docs#681

Merged
antfu merged 2 commits intomainfrom
fix/use-nuxt-search-api-for-docs
Jun 27, 2024
Merged

feat: use nuxt search api for showing docs#681
antfu merged 2 commits intomainfrom
fix/use-nuxt-search-api-for-docs

Conversation

@arashsheyda
Copy link
Copy Markdown
Member

closes #680

const list = await import('../data/nuxt-docs.json').then(i => i.default)
const list = await $fetch<any[]>('https://nuxt.com/api/search.json', {
query: {
select: '_path,title,description,navigation',
Copy link
Copy Markdown
Member Author

@arashsheyda arashsheyda Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will open a PR in nuxt/nuxt.com later so we don't get the body and other fields...)

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jun 21, 2024

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6edcb9f
Status:⚡️  Build in progress...

View logs

@antfu antfu merged commit 52b6468 into main Jun 27, 2024
@antfu antfu changed the title fix: use nuxt search api for showing docs feat: use nuxt search api for showing docs Jun 27, 2024
@antfu antfu deleted the fix/use-nuxt-search-api-for-docs branch June 27, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update Nuxt Docs in command palette

2 participants