문서 페이지는 사이트 전체 탐색 메뉴, 읽기 좋은 너비의 본문, 현재 페이지의 목차로 이루어진 3열 레이아웃입니다. 앱 셸에 헤더와 보조 영역을 둔 형태입니다. 가용 너비가 줄어들면 목차가 먼저 사라지고 그다음 탐색 메뉴가 사라집니다. 본문에는 계속 같은 읽기 너비 기준이 적용됩니다.
가이드, 레퍼런스, 핸드북을 비롯해 독자가 목차를 옆에 두고 읽어야 하는 긴 아티클에 사용합니다. 주변에 탐색 메뉴가 없는 아티클이나 블로그 게시글은 브레이크아웃을 넣은 페이지입니다.
문서
<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을 둔 nav |
| 주 영역 | 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이므로, 브랜드가 아래 내비게이션과 같은 선에서 시작합니다.
#접근성
- 네 탐색 영역에는 각각 레이블이 필요합니다. 사이트 탐색에는 "문서", 페이지 목차에는 "이 페이지의 목차"를 사용하고, 브레드크럼과 이전·다음 페이지 탐색에도 각각 레이블을 지정합니다. 양옆 열은 각각
<nav>요소를 일반 요소로 감싼 구조이므로 열마다 랜드마크가 하나씩 생깁니다. - 소스 순서는 헤더, 탐색 메뉴, 본문, 목차입니다. 페이지를 순서대로 읽으면 탐색 메뉴를 지나 본문의
<h1>에 도달합니다. 따라서 첫 번째 요소로 건너뛰기 링크를 두어tabindex="-1"이 지정된 주 영역으로 바로 이동할 수 있게 합니다. - 좁은 화면에서는 목차를 숨깁니다. 목차로 바로 이동하는 편의는 줄어들지만, 모든 제목은 본문에 그대로 남습니다.
- 검색과 탐색 메뉴는 페이지를 찾는 두 가지 방법입니다. 드로어에도 검색 필드를 두므로, 헤더의 필드가 숨겨지는 휴대폰에서도 두 방법을 모두 사용할 수 있습니다.
/는 한 글자 단축키입니다. 끄거나 다른 키로 바꿀 수 있는 방법을 제공하고(WCAG 2.1.4), 포커스가 입력 필드에 있을 때는 반응하지 않게 하여 입력 중에 검색으로 이동하지 않도록 합니다.
#관련 항목
- 앱 셸메인 영역을 스크롤해도 사이드바는 제자리에 머물며, 셸이 좁아지면 사이드바를 드로어로 열 수 있습니다.
- 페이지최소 높이가 뷰포트 높이인 프레임에 헤더, 본문 영역, 푸터를 배치하는 레이아웃입니다.
- 내비게이션 바스크롤하는 콘텐츠가 막대 아래를 지나갈 때 표면 효과가 나타나는 페이지 상단의 막대입니다.
- 내비게이션 목록사이드바나 설정 페이지에서 이동할 곳을 세로로 나열하는 목록으로, 현재 항목이 살짝 떠올라 보입니다.
- 목차페이지 안의 각 제목을 링크로 나열하고 화면에 보이는 섹션을 CSS로 표시하는 목차입니다.
- 브레드크럼현재 페이지까지의 경로를 링크 목록으로 표시하고, 각 상위 단계로 돌아갈 수 있게 합니다.
- 제목페이지의 기본 글자색으로 표시하는 제목과 제목 위 안내 문구, 아래 소개 문단입니다.
- 플래시링크가 가리키는 위치에 나타났다가 서서히 사라지는 윤곽선입니다.
- 이전·다음 페이지 탐색글 하단에서 이전 페이지와 다음 페이지로 이동하는 링크입니다.
- 건너뛰기 링크포커스를 받았을 때 표시되며 탐색 영역을 건너뛰는 페이지의 첫 번째 링크입니다.
- 대화 상자스크립트 없이 열고 닫는 오버레이 시트 형태의 네이티브 모달입니다.
- 입력 필드표면을 파낸 듯한 텍스트 입력 필드와 레이블, 힌트, 오류, 입력 그룹.
- 브레이크아웃그림이나 띠 영역을 본문 단보다 넓게 펼치거나 양쪽 가장자리까지 확장할 수 있는 단일 열 레이아웃입니다.