도큐사우루스 2.1
· 3분 읽기 분량
We are happy to announce Docusaurus 2.1, our very first minor version release.
업그레이드 과정은 간단합니다. 도큐사우루스는 릴리스 프로세스 문서에 설명된 대로 시맨틱 버전 체계를 준수해 마이너 버전은 하위 호환성을 유지합니다.
새로 추가된 기능
DocCardList 기능 개선
In #8008, we simplified the usage of the<DocCardList>
component, that is notably used on sidebar category generated index pages.
The items
prop is now optional, and will be automatically inferred from the content of the parent sidebar category:
import DocCardList from '@theme/DocCardList';
- import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
- <DocCardList items={useCurrentSidebarCategory().items}/>
+ <DocCardList/>
또한 사이드바 카테고리에 링크되지 않은 일반 문서를 포함한 모든 문서에서 <DocCardList>
를 사용할 수 있도록 했습니다.