ドキュメントページは、サイト全体のナビゲーション、読みやすい行幅の本文、このページの目次の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を置いたナビゲーション |
| メイン領域 | shell-main | max-w(720) mx-autoで最大幅を指定し、中央に配置した<article> |
| 補足領域 | shell-aside | 目次 |
- 行幅は本文側で決めます。 720pxには本文が約75文字収まります。これは読みやすいとされる行長の範囲では長めです。本文を囲むカラムが残りの幅を使い、本文は左右のカラムの間で中央に揃います。
- 両側のカラムは独立してスクロールします。 各カラムの高さはビューポートからヘッダーを除いた分です。長いナビゲーションをスクロールしてもページは動かず、ページをスクロールしてもナビゲーションの位置は変わりません。
- 目次は現在のセクションを自動で示します。 ブラウザーが
scroll-target-groupに対応していれば、目次はページのスクロールに追従します。対応していない場合は、スクリプトでaria-currentを設定します。 - 見出しはヘッダーに隠れません。 各見出しにはフラッシュを使います。リンクから移動すると、見出しはビューポートの上端から5rem下で止まるため、固定バーと重なりません。移動先の見出しはリングで示します。
- 本文の末尾には前後のページへのリンクを置きます。 ページャーに前のページと次のページのタイトルを表示します。
検索フィールドはhidden flex@container(--xl)で非表示にし、サイズコンテナーであるナビゲーションバーの幅が36rem以上になると表示します。ヘッダーの--navbar-padding-xはサイドバーの余白とナビゲーション項目の余白を足した1.25remなので、ブランドはその下のナビゲーションと同じ線から始まります。
#アクセシビリティ
- サイト内ナビゲーション(「ドキュメント」)、ページ内ナビゲーション(「このページの内容」)、パンくずリスト、ページャーには、それぞれ異なるラベルを付けます。両側のカラムでは、
<nav>を囲む要素自体にはランドマークの役割を持たせないため、各カラムにつきランドマークは1つです。 - ソースでは、ヘッダー、ナビゲーション、本文、目次の順に並べます。この順序では本文の
<h1>がナビゲーションの後に来るため、ページの最初に、tabindex="-1"を指定したメイン領域へのスキップリンクを置きます。 - 狭い画面では目次を非表示にします。目次からの移動はできなくなりますが、見出しはすべて本文に残ります。
- 検索とナビゲーションは、ページを見つける2つの手段です。ドロワーにも検索フィールドを置くため、ヘッダーのフィールドが非表示になるスマートフォンでも両方を使えます。
/は1文字のショートカットです。無効にしたり別のキーに変更したりする手段を用意し(WCAG 2.1.4)、フィールドにフォーカスがあるときは反応しないようにして、入力中に検索へ移動しないようにします。
#関連項目
- アプリシェルメイン領域をスクロールしてもサイドバーは定位置に残ります。幅が狭いときは、同じナビゲーションをドロワーで開けます。
- ページヘッダー、メイン領域、フッターを、ビューポート以上の高さを持つフレームに収めます。
- ナビゲーションバーページ上部にあり、スクロールでコンテンツがバーの下を通ると質感が現れるバー。
- ナビゲーションサイドバーや設定ページに表示する縦並びのリンク一覧。現在の項目は少し浮き上がって表示されます。
- 目次ページの見出しをリンクにし、表示中のセクションを CSS で示します。
- パンくずリスト現在のページまでの階層をリンクの一覧で示し、各階層に戻れるようにします。
- 見出しページの前景色で表示する見出しと、その上のラベル、下の導入文。
- フラッシュリンクの移動先を輪郭線で示し、その線が徐々に消えます。
- ページャー記事の末尾に置く、前後のページへのリンク。
- スキップリンクフォーカス時に表示され、ナビゲーションを飛ばせるページ先頭のリンク。
- ダイアログオーバーレイとして表示され、スクリプトなしで開閉できるネイティブのモーダルです。
- 入力フィールド背景面より一段くぼんだテキスト入力フィールド。ラベル、ヒント、エラー、グループに対応します。
- はみ出しレイアウト図や帯を本文より広く配置したり、両端まで広げたりできる 1 カラムレイアウトです。