본문으로 건너뛰기

네비게이션 속성

docs 는 아래 기능들이 사용되는 영역이다
Documents are groups of pages connected through:

  • a sidebar
  • previous/next navigation
  • versioning

Create your first Doc

폴더 구조를 그대로 라우팅한다 Create a Markdown file at docs/hello.md:

docs/hello.md
# Hello

This is my **first Docusaurus document**!

A new document is now available at http://localhost:3000/docs/hello.

Configure the Sidebar

Docusaurus automatically creates a sidebar from the docs folder.

Add metadata to customize the sidebar label and position:

docs/hello.md
---
sidebar_label: 'Hi!'
sidebar_position: 3
---

# Hello

This is my **first Docusaurus document**!

속성

프론트매터에 넣을 수 있는 속성은 그 외로도 다양하다

title 속성이 없을 경우
가장 첫번째 작성되어있는 heading text 가 title이 된다

id: 정체 불명
description: 설명으로 들어가는 부분
slug: /폴더경로(docs,blog)기준상대경로
title: H1에 작성되는 이름 ( 사이드 바 이름이 없을 경우 사이드바 이름도 한다 )
sidebar_label: '사이드바에 작성되는 이름'
sidebar_position: 정렬 순서 ( 파일 이름 앞에 00_* ) 으로 대체 가능

커스텀 사이드 바 생성

It is also possible to create your sidebar explicitly in sidebars.js:

sidebars.js
module.exports = {
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
}