Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vitepress/guide/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
],
},
{
Expand Down
1 change: 1 addition & 0 deletions scripts/check-navigation-browser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down
3 changes: 3 additions & 0 deletions tests/guide/navigation.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })),
Expand Down
Loading