Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use nuxt search api for showing docs #681

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

arashsheyda
Copy link
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
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...)

Copy link

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
1 of 3 checks passed
@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