문서 만들기
문서는 다음을 통해 연결된 페이지 그룹입니다.
- 사이드바
- 이전/다음 탐색
- 버전 관리
첫 번째 문서 만들기
docs/hello.md에 마크다운 파일을 생성합니다.
docs/hello.md
# 안녕하세요
이것은 저의 **첫 번째 Docusaurus 문서**입니다!
이제 http://localhost:3000/docs/hello에서 새 문서를 볼 수 있습니다.
사이드바 구성
Docusaurus는 docs 폴더로부터 자동으로 사이드바를 생성합니다.
사이드바 레이블과 위치를 지정하려면 메타데이터를 추가하세요.
docs/hello.md
---
sidebar_label: '안녕!'
sidebar_position: 3
---
# 안녕하세요
이것은 저의 **첫 번째 Docusaurus 문서**입니다!
sidebars.js에서 명시적으로 사이드바를 생성할 수도 있습니다.
sidebars.js
export default {
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: '튜토리얼',
items: ['tutorial-basics/create-a-document'],
},
],
};