From 5ee565b70bfe53b6194574e8ab05a79b4b469bd2 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 30 Mar 2021 15:21:05 +0200 Subject: [PATCH] docs: create ssr folder --- docs/.vitepress/config.js | 2 +- docs/core-concepts/index.md | 2 +- docs/getting-started.md | 2 +- docs/{server-side-rendering.md => ssr/index.md} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename docs/{server-side-rendering.md => ssr/index.md} (100%) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index eef639a3..9dc971e6 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -178,7 +178,7 @@ module.exports = { }, { text: 'Server-Side Rendering (SSR)', - link: '/server-side-rendering.html', + link: '/ssr/', }, { text: 'Cookbook', diff --git a/docs/core-concepts/index.md b/docs/core-concepts/index.md index 4f075149..7b4390f1 100644 --- a/docs/core-concepts/index.md +++ b/docs/core-concepts/index.md @@ -47,7 +47,7 @@ router.beforeEach((to) => { ``` :::tip -When dealing with Server Side Rendering, you will have to pass the `pinia` instance to `useStore()`. Read more about this in the [SSR guide](/server-side-rendering.md). +When dealing with Server Side Rendering, you will have to pass the `pinia` instance to `useStore()`. Read more about this in the [SSR guide](/ssr/index.md). ::: Once the store is instantiated, you can access any property defined in `state`, `getters`, and `actions` directly on the store. We will see these in detail in the next pages but autocompletion will help you. diff --git a/docs/getting-started.md b/docs/getting-started.md index 6046e3f1..2012d248 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -9,7 +9,7 @@ npm install pinia@next ``` :::tip -`pinia@next` install Pinia v2 for Vue 3. If your app is using Vue 2, you need to install Pinia v1: `pinia@latest` **and** `@vue/composition-api`. If you are using Nuxt, you should follow [these instructions](./server-side-rendering.md#nuxt-js). +`pinia@next` install Pinia v2 for Vue 3. If your app is using Vue 2, you need to install Pinia v1: `pinia@latest` **and** `@vue/composition-api`. If you are using Nuxt, you should follow [these instructions](./ssr/index.md#nuxt-js). ::: Create a pinia (the root store) and pass it to app: diff --git a/docs/server-side-rendering.md b/docs/ssr/index.md similarity index 100% rename from docs/server-side-rendering.md rename to docs/ssr/index.md -- 2.47.2