탐색

v2.1.0
사이트 페이지

문서

탐색 메뉴, 읽기 좋은 너비의 본문, 현재 페이지의 목차로 구성된 레이아웃입니다.

문서 페이지는 사이트 전체 탐색 메뉴, 읽기 좋은 너비의 본문, 현재 페이지의 목차로 이루어진 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-mainmax-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), 포커스가 입력 필드에 있을 때는 반응하지 않게 하여 입력 중에 검색으로 이동하지 않도록 합니다.