diff --git a/docs/package.json b/docs/package.json index 5eb9ca57..a0dfd6c2 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,7 +5,7 @@ "generate": "nuxt generate" }, "devDependencies": { - "docus": "^0.5.6", + "docus": "^0.5.14", "vue-plausible": "^1.1.4" } } diff --git a/docs/pages/en/1.getting-started/1.quick-start.md b/docs/pages/en/1.getting-started/1.quick-start.md index a2b39e53..9125c699 100644 --- a/docs/pages/en/1.getting-started/1.quick-start.md +++ b/docs/pages/en/1.getting-started/1.quick-start.md @@ -62,12 +62,12 @@ description: 'Access text, images, and other media with Nuxt and the Sanity head ``` :::alert{type="info"} - You can find more about configuring `@nuxtjs/sanity` [here](/configuration). + You can find more about configuring `@nuxtjs/sanity` [here](/getting-started/configuration). ::: 4. **You're good to go!** - Check out [how to use Sanity](/usage). + Check out [how to use Sanity](/getting-started/usage). ## TypeScript diff --git a/docs/pages/en/1.getting-started/3.usage.md b/docs/pages/en/1.getting-started/3.usage.md index 4d0ef873..ce1ebf16 100644 --- a/docs/pages/en/1.getting-started/3.usage.md +++ b/docs/pages/en/1.getting-started/3.usage.md @@ -139,7 +139,7 @@ export default ({ $sanity }, inject) => { ### Additional clients -If you have [configured additional clients](/configuration#additionalclients) you can access them directly off `$sanity`, with all the same properties and methods as specified above. So, for example: +If you have [configured additional clients](/getting-started/configuration#additionalclients) you can access them directly off `$sanity`, with all the same properties and methods as specified above. So, for example: ```js{}[plugins/fetch.js] export default async ({ $sanity }) => { diff --git a/docs/yarn.lock b/docs/yarn.lock index de596615..4545c797 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -1598,16 +1598,17 @@ defu "^3.2.2" lodash.template "^4.5.0" -"@nuxtjs/composition-api@0.23.3": - version "0.23.3" - resolved "https://registry.yarnpkg.com/@nuxtjs/composition-api/-/composition-api-0.23.3.tgz#322c4b2fb220cf6b0dc5526cda6aca8d9fee193f" - integrity sha512-xMzIHdoWqEOyq4lxCJp8IZb+GRC0LYvvxzRE9HoP1zAoQRvzlJKX6xKJX1tCuGcnxSjgm2IDIbfZDs89XALcpQ== +"@nuxtjs/composition-api@0.24.0": + version "0.24.0" + resolved "https://registry.yarnpkg.com/@nuxtjs/composition-api/-/composition-api-0.24.0.tgz#7c9cade93bdc59644f7fe292e53edf218d7ea055" + integrity sha512-WrCX/dIIRvKyyy0pZft4JLXRSqAZe9CwxPT3iLeg8I9WvBw8DiCeHRspTCzCvbwHhn+sEibHgUThPKmB2Gfqlg== dependencies: - "@vue/composition-api" "1.0.0-rc.7" - defu "^4.0.1" + "@vue/composition-api" "1.0.0-rc.9" + defu "^5.0.0" estree-walker "^2.0.2" + fs-extra "^9.1.0" magic-string "^0.25.7" - ufo "^0.7.1" + ufo "^0.7.5" upath "^2.0.1" "@nuxtjs/proxy@^2.1.0": @@ -2008,14 +2009,7 @@ optionalDependencies: prettier "^1.18.2" -"@vue/composition-api@1.0.0-rc.7": - version "1.0.0-rc.7" - resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.0.0-rc.7.tgz#05a9e81ad91d85d3390b1386c0079666d2e1b3bb" - integrity sha512-aj/lWD+9dmJ+r9qkbASByqlphkbwvZ8q1T7yC5H1leWSdtxfWg7tDR98vZEKzjikRSztwC7xrtrLwOnt8glQDA== - dependencies: - tslib "^2.2.0" - -"@vue/composition-api@^1.0.0-rc.9": +"@vue/composition-api@1.0.0-rc.9", "@vue/composition-api@^1.0.0-rc.9": version "1.0.0-rc.9" resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.0.0-rc.9.tgz#ddfcaa13040add84edab918573dfc999b5f03cf3" integrity sha512-U//BqmGRVaPyZbYsPfRlmCKnnFkhRzUBu7cjrWn4PSwQ5Oh+M0KcYIHlupUd+Qmd8KwaiYiuUpJLncl3wFsrdg== @@ -2246,11 +2240,6 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -"@yarnpkg/lockfile@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" - integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== - abort-controller@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" @@ -4022,7 +4011,7 @@ create-require@^1.1.1: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-spawn@^6.0.0, cross-spawn@^6.0.5: +cross-spawn@^6.0.0: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -4512,10 +4501,10 @@ doctypes@^1.1.0: resolved "https://registry.yarnpkg.com/doctypes/-/doctypes-1.1.0.tgz#ea80b106a87538774e8a3a4a5afe293de489e0a9" integrity sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk= -docus@^0.5.6: - version "0.5.6" - resolved "https://registry.yarnpkg.com/docus/-/docus-0.5.6.tgz#0170acb0cd4a06e2448c4bd1abbc01909b4b0a34" - integrity sha512-oBy7tv6bmOyP7cz6zHczp3/EcU9Rk8PeJ9mCVb9ak+CLpNLRAzqSXe7ILm0xg2wpAAJULy2oEj1W/23RpGStDQ== +docus@^0.5.14: + version "0.5.14" + resolved "https://registry.yarnpkg.com/docus/-/docus-0.5.14.tgz#c12745c714d92e0aaf8d77e31ca9a5fe05b6d2e4" + integrity sha512-oxVxlfTElMQdDENLrbw7slP2JwUnM5MrTcmwStj8S7BXjpMsutj5CM3bvzHfuAl786ai7wJ/E5yFukWIYUCWiA== dependencies: "@docsearch/css" "^1.0.0-alpha.28" "@docsearch/js" "^1.0.0-alpha.28" @@ -4523,7 +4512,7 @@ docus@^0.5.6: "@nuxt/image" "0.4.10" "@nuxt/postcss8" "^1.1.3" "@nuxtjs/color-mode" "^2.0.5" - "@nuxtjs/composition-api" "0.23.3" + "@nuxtjs/composition-api" "0.24.0" "@nuxtjs/proxy" "^2.1.0" "@nuxtjs/pwa" "^3.3.5" "@types/graceful-fs" "^4.1.5" @@ -4551,7 +4540,6 @@ docus@^0.5.6: nuxt-vite "^0.1.0" nuxt-windicss "^0.5.4" ohmyfetch "^0.1.8" - patch-package "^6.4.7" plausible-tracker "^0.3.1" postinstall-postinstall "^2.1.0" prism-theme-vars "^0.2.2" @@ -5181,13 +5169,6 @@ find-up@^4.0.0: locate-path "^5.0.0" path-exists "^4.0.0" -find-yarn-workspace-root@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz#f47fb8d239c900eb78179aa81b66673eac88f7bd" - integrity sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ== - dependencies: - micromatch "^4.0.2" - flat@^5.0.0: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" @@ -5262,15 +5243,6 @@ fs-extra@^10.0.0: jsonfile "^6.0.1" universalify "^2.0.0" -fs-extra@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" - integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== - dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" - fs-extra@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" @@ -6192,13 +6164,6 @@ is-callable@^1.1.4, is-callable@^1.2.2: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9" integrity sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA== -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== - dependencies: - ci-info "^2.0.0" - is-color-stop@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-color-stop/-/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345" @@ -6653,13 +6618,6 @@ kind-of@^6.0.0, kind-of@^6.0.2: resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== -klaw-sync@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c" - integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ== - dependencies: - graceful-fs "^4.1.11" - klona@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.4.tgz#7bb1e3affb0cb8624547ef7e8f6708ea2e39dfc0" @@ -7870,7 +7828,7 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" -open@^7.3.0, open@^7.4.2: +open@^7.3.0: version "7.4.2" resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== @@ -8089,25 +8047,6 @@ pascalcase@^0.1.1: resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= -patch-package@^6.4.7: - version "6.4.7" - resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-6.4.7.tgz#2282d53c397909a0d9ef92dae3fdeb558382b148" - integrity sha512-S0vh/ZEafZ17hbhgqdnpunKDfzHQibQizx9g8yEf5dcVk3KOflOfdufRXQX8CSEkyOQwuM/bNz1GwKvFj54kaQ== - dependencies: - "@yarnpkg/lockfile" "^1.1.0" - chalk "^2.4.2" - cross-spawn "^6.0.5" - find-yarn-workspace-root "^2.0.0" - fs-extra "^7.0.1" - is-ci "^2.0.0" - klaw-sync "^6.0.0" - minimist "^1.2.0" - open "^7.4.2" - rimraf "^2.6.3" - semver "^5.6.0" - slash "^2.0.0" - tmp "^0.0.33" - path-browserify@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" @@ -10162,11 +10101,6 @@ sirv@^1.0.7: mime "^2.3.1" totalist "^1.0.0" -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" @@ -10926,7 +10860,7 @@ ufo@^0.6.10: resolved "https://registry.yarnpkg.com/ufo/-/ufo-0.6.10.tgz#c7ace9b8f72cb08c35e3a8c8edc76f062fbaa7d0" integrity sha512-sMbJnrBcKKsbVyr6++hb0n9lCmrMqkJrNnJIOJ3sckeqY6NMfAULcRGbBWcASSnN1HDV3YqiGCPzi9RVs511bw== -ufo@^0.7.1, ufo@^0.7.2: +ufo@^0.7.2, ufo@^0.7.5: version "0.7.5" resolved "https://registry.yarnpkg.com/ufo/-/ufo-0.7.5.tgz#5d5b2174747c0072edd30501994c8ac4ad2e77ea" integrity sha512-FGG+EgguC1oz5dTE1JptPWCyj6Z9mYpwvZY8PTu9Vh/Aoy+Mj9cpeQ3gg4kyEMDbMrH+lTYiw7bomG58B8X7Kg==