Skip to content

Commit ee02adf

Browse files
Move the Linux packages link below the quick start and open its guide
Signed-off-by: Guanzhou Song <guanzhousong@microsoft.com>
1 parent ad134e4 commit ee02adf

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

‎app/page.tsx‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,7 @@ export default function Home() {
364364
Run DocumentDB locally
365365
</h2>
366366
<p className="mt-2 text-sm leading-6 text-gray-400">
367-
Both options require Docker. No Docker on Linux?{" "}
368-
<Link
369-
href="/packages"
370-
className="font-semibold text-blue-300 transition-colors hover:text-blue-200"
371-
>
372-
Install Linux packages
373-
</Link>
374-
.
367+
Both options require Docker.
375368
</p>
376369
</div>
377370
<QuickStartTabs
@@ -381,6 +374,15 @@ export default function Home() {
381374
dockerDocsUrl="/docs/getting-started/docker"
382375
vscodeDocsUrl="/docs/getting-started/vscode-quickstart"
383376
/>
377+
<p className="mt-6 border-t border-neutral-800 pt-4 text-sm leading-6 text-gray-400">
378+
Prefer to install directly on Linux?{" "}
379+
<Link
380+
href="/docs/getting-started/packages"
381+
className="whitespace-nowrap font-semibold text-blue-300 transition-colors hover:text-blue-200"
382+
>
383+
Linux packages guide
384+
</Link>
385+
</p>
384386
</div>
385387
</div>
386388
</div>

‎tests/quickStart.test.ts‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,14 @@ describe('homepage local quick start', () => {
103103
expect(panel('guided')).not.toContain('Linux containers');
104104
});
105105

106-
it('points Linux users without Docker to packages, outside either panel', () => {
107-
const link = card.indexOf('href="/packages"');
108-
expect(link).toBeGreaterThan(-1);
109-
expect(link).toBeLessThan(card.indexOf('role="tablist"'));
110-
expect(card.slice(link)).toMatch(/^href="\/packages"[^>]*>Install Linux packages</);
106+
it('opens the Linux packages guide from below both panels, not before the default path', () => {
107+
const href = 'href="/docs/getting-started/packages"';
108+
const link = card.indexOf(href);
109+
expect(card.split(href)).toHaveLength(2);
110+
expect(link).toBeGreaterThan(card.indexOf('id="quickstart-panel-guided"'));
111+
// Closes the guided panel and the tabs wrapper, so the footer is visible from either tab.
112+
expect(card.slice(0, card.lastIndexOf('<p', link))).toMatch(/<\/div><\/div>$/);
113+
expect(card.slice(link)).toMatch(/^href="[^"]+"[^>]*>Linux packages guide</);
111114
});
112115

113116
it('explains manual control and guided provisioning rather than editor choice', () => {

0 commit comments

Comments
 (0)