File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 ( / ^ h r e f = " \/ p a c k a g e s " [ ^ > ] * > I n s t a l l L i n u x p a c k a g e s < / ) ;
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 ( / < \/ d i v > < \/ d i v > $ / ) ;
113+ expect ( card . slice ( link ) ) . toMatch ( / ^ h r e f = " [ ^ " ] + " [ ^ > ] * > L i n u x p a c k a g e s g u i d e < / ) ;
111114 } ) ;
112115
113116 it ( 'explains manual control and guided provisioning rather than editor choice' , ( ) => {
You can’t perform that action at this time.
0 commit comments