From 40ef9bc4024b7756dbe709e228adada3c9908606 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 24 Apr 2023 16:20:13 +0200 Subject: [PATCH] chore(docs): correct version access Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- docs/components/DocsRepl.vue | 4 ++-- docs/src/.vitepress/config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/components/DocsRepl.vue b/docs/components/DocsRepl.vue index 2d101a7e..01d37af0 100644 --- a/docs/components/DocsRepl.vue +++ b/docs/components/DocsRepl.vue @@ -9,8 +9,8 @@ const props = defineProps<{ example: keyof typeof exampleImports; mainFile?: str const { vueFlowVersion } = useVueFlow() -let css = `@import 'https://cdn.jsdelivr.net/npm/@vue-flow/core@${vueFlowVersion.value}/dist/style.css'; -@import 'https://cdn.jsdelivr.net/npm/@vue-flow/core@${vueFlowVersion.value}/dist/theme-default.css'; +let css = `@import 'https://cdn.jsdelivr.net/npm/@vue-flow/core@${vueFlowVersion}/dist/style.css'; +@import 'https://cdn.jsdelivr.net/npm/@vue-flow/core@${vueFlowVersion}/dist/theme-default.css'; @import 'https://cdn.jsdelivr.net/npm/@vue-flow/controls@latest/dist/style.css'; @import 'https://cdn.jsdelivr.net/npm/@vue-flow/minimap@latest/dist/style.css'; @import 'https://cdn.jsdelivr.net/npm/@vue-flow/node-resizer@latest/dist/style.css'; diff --git a/docs/src/.vitepress/config.ts b/docs/src/.vitepress/config.ts index d5b3e4a0..671c0133 100644 --- a/docs/src/.vitepress/config.ts +++ b/docs/src/.vitepress/config.ts @@ -123,7 +123,7 @@ export default defineConfigWithTheme({ indexName: 'vueflow', }, nav: [ - { text: `v${vueFlowVersion.value}`, link: '/changelog/', activeMatch: '^/changelog' }, + { text: `v${vueFlowVersion}`, link: '/changelog/', activeMatch: '^/changelog' }, { text: 'Guide', link: '/guide/', activeMatch: '^/guide/' }, { text: 'Examples',