文件頁有三欄,分別是整個網站的導覽、行寬適合閱讀的文章,以及本頁目錄。這個版面使用帶有頁首和輔助欄的應用程式框架。可用空間縮小時,目錄先收起,接著收起導覽,文章始終維持適合閱讀的行寬。
指南、參考文件、手冊,或任何需要把目錄放在一旁的長篇文章,都適合使用這個版面。周圍沒有導覽的文章或部落格文章,則是內含可延伸欄的頁面。
文件
<div class="shell bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 15rem"> <a class="skip" href="#docs-main">Skip to content</a> <header class="navbar shell-header bb(1) bb-solid b-line-hair" style="--navbar-padding-x: 1.25rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="docs-nav" command="show-modal" aria-label="Open navigation"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M3 5.5L13 5.5" /><path d="M3 10.5L13 10.5" /> </svg> </button> <a class="navbar-brand" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8 4.3333A3.6667 3.6667 0 0 1 8 11.6667Z" fill="currentColor" stroke="none" /> </svg>Atlas </a> <div class="navbar-end"> <label class="input-group input-group-sm w(220) hidden flex@container(--xl)"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="7" cy="7" r="4.5" /><path d="M10.182 10.182L14 14" /> </svg> <input class="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs"> <kbd class="kbd">/</kbd> </label> <a class="btn btn-sm" href="#">Dashboard</a> </div> </header> <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav class="nav" aria-label="Documentation"> <div class="nav-label">Getting started</div> <a class="nav-item" href="#">Introduction</a> <a class="nav-item" href="#" aria-current="page">Installation</a> <a class="nav-item" href="#">Theme</a> <div class="nav-label">Deploy</div> <a class="nav-item" href="#">Build settings</a> <a class="nav-item" href="#">Environment variables</a> <a class="nav-item" href="#">Domains</a> <a class="nav-item" href="#">Regions</a> <div class="nav-label">Reference</div> <a class="nav-item" href="#">Command line</a> <a class="nav-item" href="#">Configuration file</a> <a class="nav-item" href="#">Limits</a> </nav> </div> <main class="shell-main" id="docs-main" tabindex="-1"> <article class="flex flex-col gap-xl max-w(720) mx-auto px(20) py-xl"> <header class="flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Docs</a></li> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Getting started</a></li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#" aria-current="page">Installation</a> </li> </ol> </nav> <h1 class="heading heading-2xl">Installation</h1> <p class="lead"> Install the command line, link a folder to a project, and deploy it. It takes about two minutes. </p> </header> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-requirements">Requirements</h2> <p class="m(0) leading-md"> Atlas runs on any machine with Node 22 or later. The command line talks to the same API as the dashboard, so anything you can click you can also script. </p> <p class="m(0) leading-md"> You need an account and a project. Both are free to create, and neither asks for a card. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-install">Install the command line</h2> <p class="m(0) leading-md"> Install it globally, or run it without installing through your package manager. The second way always uses the latest release. </p> <p class="m(0) leading-md"> After the first run it asks you to sign in. The token is stored in your home directory and can be revoked from the dashboard. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-link">Link a project</h2> <p class="m(0) leading-md"> Run the link command in the folder of your app. It finds the framework, writes a small configuration file and connects the folder to a project. </p> <p class="m(0) leading-md"> Commit the configuration file. Everyone on the team then deploys the same way. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-deploy">Deploy</h2> <p class="m(0) leading-md"> Every push to a branch makes a preview with its own address. A push to the main branch goes to production. </p> <p class="m(0) leading-md"> A deployment is immutable. Rolling back is choosing an earlier one, and takes a few seconds. </p> </section> <nav class="pager" aria-label="Guide pages"> <a class="pager-link" rel="prev" href="#"> <span class="pager-label"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(180 8 8)" /><path d="M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5" transform="rotate(180 8 8)" /> </svg>Previous </span><span class="pager-title">Introduction</span> </a> <a class="pager-link" rel="next" href="#"> <span class="pager-label"> Next<svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5" /> </svg> </span><span class="pager-title">Theme</span> </a> </nav> </article> </main> <div class="shell-aside py-xl pxe-lg"> <nav class="toc" aria-label="On this page"> <p class="toc-title">On this page</p> <ul class="toc-list"> <li><a class="toc-link" href="#docs-requirements">Requirements</a></li> <li><a class="toc-link" href="#docs-install">Install the command line</a></li> <li><a class="toc-link" href="#docs-link">Link a project</a></li> <li><a class="toc-link" href="#docs-deploy">Deploy</a></li> </ul> </nav> </div> <dialog class="dialog dialog-drawer dialog-drawer-start" id="docs-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body flex flex-col gap-md"> <a class="navbar-brand h(40) px-xs" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8 4.3333A3.6667 3.6667 0 0 1 8 11.6667Z" fill="currentColor" stroke="none" /> </svg>Atlas </a> <label class="input-group input-group-sm"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="7" cy="7" r="4.5" /><path d="M10.182 10.182L14 14" /> </svg> <input class="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs"> </label> <nav class="nav" aria-label="Documentation, in the drawer"> <div class="nav-label">Getting started</div> <a class="nav-item" href="#">Introduction</a> <a class="nav-item" href="#" aria-current="page">Installation</a> <a class="nav-item" href="#">Theme</a> <div class="nav-label">Deploy</div> <a class="nav-item" href="#">Build settings</a> <a class="nav-item" href="#">Environment variables</a> <a class="nav-item" href="#">Domains</a> <a class="nav-item" href="#">Regions</a> <div class="nav-label">Reference</div> <a class="nav-item" href="#">Command line</a> <a class="nav-item" href="#">Configuration file</a> <a class="nav-item" href="#">Limits</a> </nav> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="docs-nav" command="close" aria-label="Close navigation"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M4 4L12 12" /><path d="M4 12L12 4" /> </svg> </button> </dialog></div>import MenuIcon from '@master/icons-react/native/16/soft/menu'import ContrastIcon from '@master/icons-react/native/16/soft/contrast'import SearchIcon from '@master/icons-react/native/16/soft/search'import ArrowLeftIcon from '@master/icons-react/native/16/soft/arrow-left'import ArrowRightIcon from '@master/icons-react/native/16/soft/arrow-right'import XIcon from '@master/icons-react/native/16/soft/x'<div className="shell bg-surface-base fg-text-body text-sm" style={{ '--shell-sidebar': '15rem' } as React.CSSProperties}> <a className="skip" href="#docs-main">Skip to content</a> <header className="navbar shell-header bb(1) bb-solid b-line-hair" style={{ '--navbar-padding-x': '1.25rem' } as React.CSSProperties}> <button type="button" className="btn btn-quiet btn-square btn-sm shell-toggle" {...{ commandfor: 'docs-nav', command: 'show-modal' }} aria-label="Open navigation"> <MenuIcon className="icon" /> </button> <a className="navbar-brand" href="#"><ContrastIcon className="icon" />Atlas</a> <div className="navbar-end"> <label className="input-group input-group-sm w(220) hidden flex@container(--xl)"> <SearchIcon className="icon" /> <input className="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs" /> <kbd className="kbd">/</kbd> </label> <a className="btn btn-sm" href="#">Dashboard</a> </div> </header> <div className="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav className="nav" aria-label="Documentation"> <div className="nav-label">Getting started</div> <a className="nav-item" href="#">Introduction</a> <a className="nav-item" href="#" aria-current="page">Installation</a> <a className="nav-item" href="#">Theme</a> <div className="nav-label">Deploy</div> <a className="nav-item" href="#">Build settings</a> <a className="nav-item" href="#">Environment variables</a> <a className="nav-item" href="#">Domains</a> <a className="nav-item" href="#">Regions</a> <div className="nav-label">Reference</div> <a className="nav-item" href="#">Command line</a> <a className="nav-item" href="#">Configuration file</a> <a className="nav-item" href="#">Limits</a> </nav> </div> <main className="shell-main" id="docs-main" tabIndex={-1}> <article className="flex flex-col gap-xl max-w(720) mx-auto px(20) py-xl"> <header className="flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol className="breadcrumb"> <li className="breadcrumb-item"><a className="breadcrumb-link" href="#">Docs</a></li> <li className="breadcrumb-item"> <a className="breadcrumb-link" href="#">Getting started</a> </li> <li className="breadcrumb-item"> <a className="breadcrumb-link" href="#" aria-current="page">Installation</a> </li> </ol> </nav> <h1 className="heading heading-2xl">Installation</h1> <p className="lead"> Install the command line, link a folder to a project, and deploy it. It takes about two minutes. </p> </header> <section className="flex flex-col gap-sm"> <h2 className="heading heading-lg flash" id="docs-requirements">Requirements</h2> <p className="m(0) leading-md"> Atlas runs on any machine with Node 22 or later. The command line talks to the same API as the dashboard, so anything you can click you can also script. </p> <p className="m(0) leading-md"> You need an account and a project. Both are free to create, and neither asks for a card. </p> </section> <section className="flex flex-col gap-sm"> <h2 className="heading heading-lg flash" id="docs-install">Install the command line</h2> <p className="m(0) leading-md"> Install it globally, or run it without installing through your package manager. The second way always uses the latest release. </p> <p className="m(0) leading-md"> After the first run it asks you to sign in. The token is stored in your home directory and can be revoked from the dashboard. </p> </section> <section className="flex flex-col gap-sm"> <h2 className="heading heading-lg flash" id="docs-link">Link a project</h2> <p className="m(0) leading-md"> Run the link command in the folder of your app. It finds the framework, writes a small configuration file and connects the folder to a project. </p> <p className="m(0) leading-md"> Commit the configuration file. Everyone on the team then deploys the same way. </p> </section> <section className="flex flex-col gap-sm"> <h2 className="heading heading-lg flash" id="docs-deploy">Deploy</h2> <p className="m(0) leading-md"> Every push to a branch makes a preview with its own address. A push to the main branch goes to production. </p> <p className="m(0) leading-md"> A deployment is immutable. Rolling back is choosing an earlier one, and takes a few seconds. </p> </section> <nav className="pager" aria-label="Guide pages"> <a className="pager-link" rel="prev" href="#"> <span className="pager-label"><ArrowLeftIcon className="icon" />Previous</span><span className="pager-title">Introduction</span> </a> <a className="pager-link" rel="next" href="#"> <span className="pager-label">Next<ArrowRightIcon className="icon" /></span><span className="pager-title">Theme</span> </a> </nav> </article> </main> <div className="shell-aside py-xl pxe-lg"> <nav className="toc" aria-label="On this page"> <p className="toc-title">On this page</p> <ul className="toc-list"> <li><a className="toc-link" href="#docs-requirements">Requirements</a></li> <li><a className="toc-link" href="#docs-install">Install the command line</a></li> <li><a className="toc-link" href="#docs-link">Link a project</a></li> <li><a className="toc-link" href="#docs-deploy">Deploy</a></li> </ul> </nav> </div> <dialog className="dialog dialog-drawer dialog-drawer-start" id="docs-nav" closedby="any" aria-label="Navigation"> <div className="dialog-body flex flex-col gap-md"> <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a> <label className="input-group input-group-sm"> <SearchIcon className="icon" /> <input className="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs" /> </label> <nav className="nav" aria-label="Documentation, in the drawer"> <div className="nav-label">Getting started</div> <a className="nav-item" href="#">Introduction</a> <a className="nav-item" href="#" aria-current="page">Installation</a> <a className="nav-item" href="#">Theme</a> <div className="nav-label">Deploy</div> <a className="nav-item" href="#">Build settings</a> <a className="nav-item" href="#">Environment variables</a> <a className="nav-item" href="#">Domains</a> <a className="nav-item" href="#">Regions</a> <div className="nav-label">Reference</div> <a className="nav-item" href="#">Command line</a> <a className="nav-item" href="#">Configuration file</a> <a className="nav-item" href="#">Limits</a> </nav> </div> <button type="button" className="btn btn-quiet btn-square btn-sm dialog-close" {...{ commandfor: 'docs-nav', command: 'close' }} aria-label="Close navigation"> <XIcon className="icon" /> </button> </dialog></div><script> import MenuIcon from '@master/icons-svelte/native/16/soft/menu' import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast' import SearchIcon from '@master/icons-svelte/native/16/soft/search' import ArrowLeftIcon from '@master/icons-svelte/native/16/soft/arrow-left' import ArrowRightIcon from '@master/icons-svelte/native/16/soft/arrow-right' import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 15rem"> <a class="skip" href="#docs-main">Skip to content</a> <header class="navbar shell-header bb(1) bb-solid b-line-hair" style="--navbar-padding-x: 1.25rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="docs-nav" command="show-modal" aria-label="Open navigation"> <MenuIcon class="icon" /> </button> <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a> <div class="navbar-end"> <label class="input-group input-group-sm w(220) hidden flex@container(--xl)"> <SearchIcon class="icon" /> <input class="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs"> <kbd class="kbd">/</kbd> </label> <a class="btn btn-sm" href="#">Dashboard</a> </div> </header> <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav class="nav" aria-label="Documentation"> <div class="nav-label">Getting started</div> <a class="nav-item" href="#">Introduction</a> <a class="nav-item" href="#" aria-current="page">Installation</a> <a class="nav-item" href="#">Theme</a> <div class="nav-label">Deploy</div> <a class="nav-item" href="#">Build settings</a> <a class="nav-item" href="#">Environment variables</a> <a class="nav-item" href="#">Domains</a> <a class="nav-item" href="#">Regions</a> <div class="nav-label">Reference</div> <a class="nav-item" href="#">Command line</a> <a class="nav-item" href="#">Configuration file</a> <a class="nav-item" href="#">Limits</a> </nav> </div> <main class="shell-main" id="docs-main" tabindex="-1"> <article class="flex flex-col gap-xl max-w(720) mx-auto px(20) py-xl"> <header class="flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Docs</a></li> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Getting started</a></li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#" aria-current="page">Installation</a> </li> </ol> </nav> <h1 class="heading heading-2xl">Installation</h1> <p class="lead"> Install the command line, link a folder to a project, and deploy it. It takes about two minutes. </p> </header> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-requirements">Requirements</h2> <p class="m(0) leading-md"> Atlas runs on any machine with Node 22 or later. The command line talks to the same API as the dashboard, so anything you can click you can also script. </p> <p class="m(0) leading-md"> You need an account and a project. Both are free to create, and neither asks for a card. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-install">Install the command line</h2> <p class="m(0) leading-md"> Install it globally, or run it without installing through your package manager. The second way always uses the latest release. </p> <p class="m(0) leading-md"> After the first run it asks you to sign in. The token is stored in your home directory and can be revoked from the dashboard. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-link">Link a project</h2> <p class="m(0) leading-md"> Run the link command in the folder of your app. It finds the framework, writes a small configuration file and connects the folder to a project. </p> <p class="m(0) leading-md"> Commit the configuration file. Everyone on the team then deploys the same way. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-deploy">Deploy</h2> <p class="m(0) leading-md"> Every push to a branch makes a preview with its own address. A push to the main branch goes to production. </p> <p class="m(0) leading-md"> A deployment is immutable. Rolling back is choosing an earlier one, and takes a few seconds. </p> </section> <nav class="pager" aria-label="Guide pages"> <a class="pager-link" rel="prev" href="#"> <span class="pager-label"><ArrowLeftIcon class="icon" />Previous</span><span class="pager-title">Introduction</span> </a> <a class="pager-link" rel="next" href="#"> <span class="pager-label">Next<ArrowRightIcon class="icon" /></span><span class="pager-title">Theme</span> </a> </nav> </article> </main> <div class="shell-aside py-xl pxe-lg"> <nav class="toc" aria-label="On this page"> <p class="toc-title">On this page</p> <ul class="toc-list"> <li><a class="toc-link" href="#docs-requirements">Requirements</a></li> <li><a class="toc-link" href="#docs-install">Install the command line</a></li> <li><a class="toc-link" href="#docs-link">Link a project</a></li> <li><a class="toc-link" href="#docs-deploy">Deploy</a></li> </ul> </nav> </div> <dialog class="dialog dialog-drawer dialog-drawer-start" id="docs-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body flex flex-col gap-md"> <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a> <label class="input-group input-group-sm"> <SearchIcon class="icon" /> <input class="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs"> </label> <nav class="nav" aria-label="Documentation, in the drawer"> <div class="nav-label">Getting started</div> <a class="nav-item" href="#">Introduction</a> <a class="nav-item" href="#" aria-current="page">Installation</a> <a class="nav-item" href="#">Theme</a> <div class="nav-label">Deploy</div> <a class="nav-item" href="#">Build settings</a> <a class="nav-item" href="#">Environment variables</a> <a class="nav-item" href="#">Domains</a> <a class="nav-item" href="#">Regions</a> <div class="nav-label">Reference</div> <a class="nav-item" href="#">Command line</a> <a class="nav-item" href="#">Configuration file</a> <a class="nav-item" href="#">Limits</a> </nav> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="docs-nav" command="close" aria-label="Close navigation"> <XIcon class="icon" /> </button> </dialog></div><script setup>import MenuIcon from '@master/icons-vue/native/16/soft/menu'import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import SearchIcon from '@master/icons-vue/native/16/soft/search'import ArrowLeftIcon from '@master/icons-vue/native/16/soft/arrow-left'import ArrowRightIcon from '@master/icons-vue/native/16/soft/arrow-right'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template> <div class="shell bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 15rem"> <a class="skip" href="#docs-main">Skip to content</a> <header class="navbar shell-header bb(1) bb-solid b-line-hair" style="--navbar-padding-x: 1.25rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="docs-nav" command="show-modal" aria-label="Open navigation"> <MenuIcon class="icon" /> </button> <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a> <div class="navbar-end"> <label class="input-group input-group-sm w(220) hidden flex@container(--xl)"> <SearchIcon class="icon" /> <input class="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs"> <kbd class="kbd">/</kbd> </label> <a class="btn btn-sm" href="#">Dashboard</a> </div> </header> <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav class="nav" aria-label="Documentation"> <div class="nav-label">Getting started</div> <a class="nav-item" href="#">Introduction</a> <a class="nav-item" href="#" aria-current="page">Installation</a> <a class="nav-item" href="#">Theme</a> <div class="nav-label">Deploy</div> <a class="nav-item" href="#">Build settings</a> <a class="nav-item" href="#">Environment variables</a> <a class="nav-item" href="#">Domains</a> <a class="nav-item" href="#">Regions</a> <div class="nav-label">Reference</div> <a class="nav-item" href="#">Command line</a> <a class="nav-item" href="#">Configuration file</a> <a class="nav-item" href="#">Limits</a> </nav> </div> <main class="shell-main" id="docs-main" tabindex="-1"> <article class="flex flex-col gap-xl max-w(720) mx-auto px(20) py-xl"> <header class="flex flex-col gap-sm"> <nav aria-label="Breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a class="breadcrumb-link" href="#">Docs</a></li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#">Getting started</a> </li> <li class="breadcrumb-item"> <a class="breadcrumb-link" href="#" aria-current="page">Installation</a> </li> </ol> </nav> <h1 class="heading heading-2xl">Installation</h1> <p class="lead"> Install the command line, link a folder to a project, and deploy it. It takes about two minutes. </p> </header> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-requirements">Requirements</h2> <p class="m(0) leading-md"> Atlas runs on any machine with Node 22 or later. The command line talks to the same API as the dashboard, so anything you can click you can also script. </p> <p class="m(0) leading-md"> You need an account and a project. Both are free to create, and neither asks for a card. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-install">Install the command line</h2> <p class="m(0) leading-md"> Install it globally, or run it without installing through your package manager. The second way always uses the latest release. </p> <p class="m(0) leading-md"> After the first run it asks you to sign in. The token is stored in your home directory and can be revoked from the dashboard. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-link">Link a project</h2> <p class="m(0) leading-md"> Run the link command in the folder of your app. It finds the framework, writes a small configuration file and connects the folder to a project. </p> <p class="m(0) leading-md"> Commit the configuration file. Everyone on the team then deploys the same way. </p> </section> <section class="flex flex-col gap-sm"> <h2 class="heading heading-lg flash" id="docs-deploy">Deploy</h2> <p class="m(0) leading-md"> Every push to a branch makes a preview with its own address. A push to the main branch goes to production. </p> <p class="m(0) leading-md"> A deployment is immutable. Rolling back is choosing an earlier one, and takes a few seconds. </p> </section> <nav class="pager" aria-label="Guide pages"> <a class="pager-link" rel="prev" href="#"> <span class="pager-label"><ArrowLeftIcon class="icon" />Previous</span><span class="pager-title">Introduction</span> </a> <a class="pager-link" rel="next" href="#"> <span class="pager-label">Next<ArrowRightIcon class="icon" /></span><span class="pager-title">Theme</span> </a> </nav> </article> </main> <div class="shell-aside py-xl pxe-lg"> <nav class="toc" aria-label="On this page"> <p class="toc-title">On this page</p> <ul class="toc-list"> <li><a class="toc-link" href="#docs-requirements">Requirements</a></li> <li><a class="toc-link" href="#docs-install">Install the command line</a></li> <li><a class="toc-link" href="#docs-link">Link a project</a></li> <li><a class="toc-link" href="#docs-deploy">Deploy</a></li> </ul> </nav> </div> <dialog class="dialog dialog-drawer dialog-drawer-start" id="docs-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body flex flex-col gap-md"> <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a> <label class="input-group input-group-sm"> <SearchIcon class="icon" /> <input class="input-group-field" type="search" placeholder="Search the docs" aria-label="Search the docs"> </label> <nav class="nav" aria-label="Documentation, in the drawer"> <div class="nav-label">Getting started</div> <a class="nav-item" href="#">Introduction</a> <a class="nav-item" href="#" aria-current="page">Installation</a> <a class="nav-item" href="#">Theme</a> <div class="nav-label">Deploy</div> <a class="nav-item" href="#">Build settings</a> <a class="nav-item" href="#">Environment variables</a> <a class="nav-item" href="#">Domains</a> <a class="nav-item" href="#">Regions</a> <div class="nav-label">Reference</div> <a class="nav-item" href="#">Command line</a> <a class="nav-item" href="#">Configuration file</a> <a class="nav-item" href="#">Limits</a> </nav> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="docs-nav" command="close" aria-label="Close navigation"> <XIcon class="icon" /> </button> </dialog> </div></template>捲動頁面時,兩側的欄會留在原位,目錄會標示目前看到的章節。切換到「平板」時,目錄會隱藏。切換到「手機」時,導覽會移入抽屜。
#建構方式
| 區域 | 類別 | 內容 |
|---|---|---|
| 頁首 | navbar shell-header | 品牌標誌、搜尋欄位、前往產品的入口 |
| 側邊欄 | shell-sidebar | 導覽清單,每組上方都有 nav-label |
| 主要區域 | shell-main | 套用 max-w(720) mx-auto 的 <article> |
| 輔助欄 | shell-aside | 目錄 |
- 由文章設定閱讀行寬。 720px 每行約可容納 75 個內文字元,接近舒適閱讀行長的上限。文章所在的欄會占用剩餘空間,讓文章在兩側的欄之間保持置中。
- 兩側的欄各自捲動。 每一欄的高度都等於頁首下方可用的檢視區高度。捲動較長的導覽時,頁面會留在原位,捲動頁面時也不會帶動導覽。
- 目錄會自動標示目前章節。 瀏覽器支援
scroll-target-group時,目錄會隨頁面捲動更新標記。其他情況下,請用腳本設定aria-current。 - 標題會避開頁首。 每個標題都套用 flash。透過連結跳到標題時,標題會停在距檢視區頂端 5rem 的位置,避開貼在頂端的導覽列,並以外框標出跳到的標題。
- 文章結尾提供繼續閱讀的入口。 前後頁導覽會顯示上一篇和下一篇的頁名。
搜尋欄位透過 hidden flex@container(--xl) 設為預設隱藏。導覽列是尺寸容器,寬度達到 36rem 時就會顯示搜尋欄位。頁首的 --navbar-padding-x 為 1.25rem,也就是側邊欄內距加上導覽項目的內距,因此品牌與下方導覽從同一條線開始。
#無障礙
- 四組導覽各自需要標籤,分別是網站導覽(「Documentation」)、本頁導覽(「On this page」)、麵包屑導覽和前後頁導覽。兩側的欄都用一般元素包住
<nav>,所以每欄只會有一個地標。 - 原始碼依序是頁首、導覽、文章、目錄。依序閱讀時會先遇到導覽,才讀到文章的
<h1>,因此第一個元素是通往主要區域的略過連結,主要區域設有tabindex="-1"。 - 窄螢幕會隱藏目錄。文章仍保留所有標題,只是少了快速跳轉的方式。
- 搜尋與導覽是找到頁面的兩種方式。抽屜裡也放了搜尋欄位,所以在頁首欄位隱藏的手機上,兩種方式都還在。
/是單鍵快速鍵:請提供關閉或改設按鍵的方式(WCAG 2.1.4),並且在焦點位於欄位內時不要觸發,以免輸入時被帶到搜尋欄位。
#相關項目
- 導覽列位於頁面頂端的導覽列,頁面內容捲到它下方時才會顯示背景。
- 導覽清單適合側邊欄或設定頁面的直向導覽清單,目前所在的項目會微微浮起。
- 目錄將頁面標題列成連結,並透過 CSS 標記目前在檢視區中的章節。
- 麵包屑導覽用連結清單顯示通往目前頁面的路徑,讓讀者可以返回任一上層。
- 標題以頁面的高對比文字色呈現標題,搭配上方的前導標籤與下方的引言。
- 定位提示以外框標出連結指向的位置,隨後淡出。
- 前後頁導覽在文章底部提供上一篇和下一篇的連結。
- 略過連結頁面上的第一個連結,取得焦點時才顯示,可略過導覽並跳到內容。
- 對話框以覆疊面板呈現的原生模態對話框,無須腳本即可開啟和關閉。
- 輸入欄位採內凹樣式的文字欄位,支援標籤、提示、錯誤訊息與群組。
- 可延伸欄維持適合閱讀的欄寬,讓圖片或橫幅可以超出欄位,甚至延伸至兩側邊緣。