From ce5a8f126a305494569619b469dd167fb7dfe2a4 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Fri, 22 Nov 2024 08:56:15 -0300 Subject: [PATCH 1/2] DOCS: flip the if check and move on if mounted back --- v3-docs/docs/.vitepress/theme/Layout.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v3-docs/docs/.vitepress/theme/Layout.vue b/v3-docs/docs/.vitepress/theme/Layout.vue index b2f5460b04..4b21e79933 100644 --- a/v3-docs/docs/.vitepress/theme/Layout.vue +++ b/v3-docs/docs/.vitepress/theme/Layout.vue @@ -3,7 +3,7 @@ import NotFound from './NotFound.vue' import GoToLatest from './GoToLatest.vue' import { useData, useRouter } from 'vitepress' import DefaultTheme from 'vitepress/theme' -import { nextTick, provide, ref, onBeforeMount } from 'vue' +import { nextTick, provide, ref, onMounted } from 'vue' import { redirect } from './redirects/script'; const { isDark } = useData() const router = useRouter() @@ -51,9 +51,9 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => { }) -const isLatestVersion = ref(false); +const isLatestVersion = ref(true); -onBeforeMount(() => { +onMounted(() => { isLatestVersion.value = isClient && window.location.href.startsWith("https://docs.meteor.com/") }); From 2a7fd32e599c57147000720b45393a05d8488e36 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Fri, 22 Nov 2024 09:01:43 -0300 Subject: [PATCH 2/2] DEV: update generator to check for changes in the meteor tool version --- v3-docs/v3-migration-docs/index.md | 6 +++--- v3-docs/v3-migration-docs/versions-generator.js | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/v3-docs/v3-migration-docs/index.md b/v3-docs/v3-migration-docs/index.md index aff0df2510..4aa566b6fb 100644 --- a/v3-docs/v3-migration-docs/index.md +++ b/v3-docs/v3-migration-docs/index.md @@ -1,7 +1,7 @@ --- -meteor_version: 3.0.4 -node_version: 20.18.0 -npm_version: 10.8.2 +meteor_version: 3.1.0 +node_version: 22.11.0 +npm_version: 10.9.0 --- # Meteor 3.0 Migration Guide diff --git a/v3-docs/v3-migration-docs/versions-generator.js b/v3-docs/v3-migration-docs/versions-generator.js index ddbe2579c1..8573648b46 100644 --- a/v3-docs/v3-migration-docs/versions-generator.js +++ b/v3-docs/v3-migration-docs/versions-generator.js @@ -9,7 +9,11 @@ const meteorToolLink = const getMeteorVersionFromDevel = async () => { const response = await fetch(meteorToolLink); const text = await response.text(); - const version = text.match(/version: '(.*)'/)[1]; + const version = text + .match(/version: (.*)/)[1] + .replaceAll("'", "") + .replaceAll('"', "") + .replaceAll(",", ""); return version; };