+
+ Loading...
+
+
+
+ Error: {{ catsQuery.error }}
+
+
+
+
{{ cat.name }}
+
+
+```
+
+[npm-badge]: https://img.shields.io/npm/v/@kitbag/query.svg
+[npm-url]: https://www.npmjs.org/package/@kitbag/query
+[netlify-badge]: https://api.netlify.com/api/v1/badges/c12f79b8-49f9-4529-bc23-f8ffca8919a3/deploy-status
+[netlify-url]: https://app.netlify.com/sites/kitbag-query/deploys
+[stackblitz-badge]: https://developer.stackblitz.com/img/open_in_stackblitz_small.svg
+[stackblitz-url]: https://stackblitz.com/~/github.com/kitbagjs/query-preview
+[discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord
+[discord-url]: https://discord.gg/zw7dpcc5HV
\ No newline at end of file
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
new file mode 100644
index 0000000..d775075
--- /dev/null
+++ b/docs/.vitepress/config.ts
@@ -0,0 +1,99 @@
+import { defineConfig } from 'vitepress'
+
+// https://vitepress.dev/reference/site-config
+export default defineConfig({
+ title: "Kitbag Query | Type safe query for Vue.js",
+ description: "Type safe query for Vue.js",
+ head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
+ themeConfig: {
+ logo: '/kitbag-logo-circle.svg',
+ siteTitle: 'Kitbag Query',
+
+ editLink: {
+ pattern: 'https://github.com/kitbagjs/query/edit/main/docs/:path',
+ text: 'Suggest changes to this page',
+ },
+
+ nav: [
+ { text: 'Guide', link: '/introduction' },
+ { text: 'API', link: '/api/index' }
+ ],
+
+ search: {
+ provider: 'local'
+ },
+
+ sidebar: {
+ '/api/': [
+ {
+ text: 'API Reference',
+ items: [
+ { text: 'Overview', link: '/api/index' },
+ ]
+ }
+ ],
+ '/': [
+ {
+ text: 'Getting Started',
+ items: [
+ {
+ text: 'Introduction',
+ link: '/introduction',
+ },
+ {
+ text: 'Quick Start',
+ link: '/quick-start',
+ },
+ ],
+ },
+ {
+ text: 'Core Concepts',
+ items: [
+ { text: 'Queries', link: '/core-concepts/queries' },
+ { text: 'Tags & Invalidation', link: '/core-concepts/tags-invalidation' },
+ { text: 'Mutations', link: '/core-concepts/mutations' },
+ { text: 'Query Client', link: '/core-concepts/query-client' },
+ { text: 'Caching', link: '/core-concepts/caching' },
+ ],
+ },
+ {
+ text: 'Advanced Concepts',
+ items: [
+ { text: 'Error Handling', link: '/advanced-concepts/error-handling' },
+ { text: 'Loading States', link: '/advanced-concepts/loading-states' },
+ { text: 'Background Updates', link: '/advanced-concepts/background-updates' },
+ { text: 'Optimistic Updates', link: '/advanced-concepts/optimistic-updates' },
+ { text: 'Using syntax', link: '/advanced-concepts/using-queries' },
+ ],
+ },
+ { text: 'Migrating from Tanstack', link: '/compare-to-tanstack' },
+ ]
+ },
+
+ socialLinks: [
+ {
+ icon: {
+ svg: `