도큐사우루스 2.4를 소개하게 되어 무척 기쁩니다.
업그레이드 과정은 간단합니다. 도큐사우루스는 릴리스 프로세스 문서에 설명된 대로 시맨틱 버전 체계를 준수해 마이너 버전은 하위 호환성을 유지합니다.
새로 추가된 기능
사이드바 아이템 설명
#8236 요구사항을 처리하면서 link
와 category
타입의 문서 사이드바 아이템에 description
속성을 추가했습니다.
sidebars.js
[
{
type: 'link',
label: 'Link with description',
href: 'https://docusaurus.io',
description: 'Some link description',
},
{
type: 'category',
label: 'Category with description',
description: 'Some category description',
items: [],
},
];
description 속성으로 추가한 문구는 카테고리에서 생성하는 인덱스 페이지에 표시됩니다.
테마 쿼리 문자열
#8708 요구사항을 처리하면서 docusaurus-theme
쿼리 문자열을 추가하고 도큐사우루스가 light
또는 dark
모드를 지정해서 시작할 수 있도록 기능을 개선했습니다.
작성된 도큐사우루스 페이지를 iframe이나 WebView에 임베드할 때 일관된 테마를 유지하는 데 유용합니다.
Remark 플러그인 npm2yarn 업그레이드
#8690 요구사항을 처리하면서 Remark 플러그인 @docusaurus/remark-plugin-npm2yarn이 가지고 있던 여러 변환 처리 관련 버그를 수정하고 pnpm에 대한 지원을 강화했으며 새 탭을 만드는 사용자 지정 컨버터를 등록할 수 있도록 기능을 개선했습니다.
Run these commands!
```bash npm2yarn
npm install
npm run build
npm run myCustomScript -- --some-arg
```
http://localhost:3000
- npm
- Yarn
- pnpm
npm install
npm run build
npm run myCustomScript -- --some-arg