diff --git a/.vitepress/guide/navigation.ts b/.vitepress/guide/navigation.ts index 04c7c4d3..200ef8a2 100644 --- a/.vitepress/guide/navigation.ts +++ b/.vitepress/guide/navigation.ts @@ -15,7 +15,6 @@ export const guideSections: GuideSection[] = [ items: [ { text: 'Build your first service', link: '/en/guide/quickstart', collapsed: true, items: [{ text: 'Step-by-step tutorial', link: '/en/guide/quickstart-manual' }] }, { text: 'Scaffold a service', link: '/en/guide/scaffolding' }, - { text: 'Service builder', link: '/en/builder' }, ], }, { diff --git a/scripts/check-navigation-browser.mjs b/scripts/check-navigation-browser.mjs index 3841586d..a89af989 100644 --- a/scripts/check-navigation-browser.mjs +++ b/scripts/check-navigation-browser.mjs @@ -97,6 +97,7 @@ try { const nav = page.getByRole('navigation', { name: 'Main Navigation', exact: true }); assert.deepEqual(await nav.locator(':scope > .VPNavBarMenuLink, :scope > .VPNavBarMenuGroup > button').allTextContents(), ['Get started', 'Guides', 'API', 'Builder']); await uniquePageLinks(nav); + assert.equal(await page.locator('.VPSidebar a[href="/en/builder"]').count(), 0); await builderOutline(nav.getByRole('link', { name: 'Builder', exact: true })); result.header.push({ theme, order: ['Get started', 'Guides', 'API', 'Builder'], outlinedBuilder: true, uniquePages: true }); for (const [label, route] of [ diff --git a/tests/guide/navigation.test.mjs b/tests/guide/navigation.test.mjs index 03bf8bf9..df078e6d 100644 --- a/tests/guide/navigation.test.mjs +++ b/tests/guide/navigation.test.mjs @@ -22,6 +22,9 @@ test('header routes directly to About, Builder, section entries and generated AP assert.equal(nav[0].link, '/en/guide/about'); assert.equal(nav[2].link, '/en/api/'); assert.equal(nav[3].link, '/en/builder'); + const gettingStarted = guideSections.find(({ id }) => id === 'get-started'); + assert.ok(gettingStarted); + assert.ok(!flatten(gettingStarted.items).some((item) => item.link === '/en/builder')); assert.deepEqual( nav[1].items, guideSections.filter(({ id }) => id !== 'get-started').map(({ text, link }) => ({ text, link })),