Docusaurus 2.4.0 发布,从改进记录来看没有什么太大的变更,主要包括:
新特性
docusaurus-plugin-content-docs
,docusaurus-theme-classic
docusaurus-theme-classic
docusaurus-remark-plugin-npm2yarn
- #8690 feat(npm-to-yarn): 支持 PnPm 和定制转换器 (@armano2)
docusaurus
- #8677 feat(core): 增加脚本环境变量: NODE_ENV + BABEL_ENV + DOCUSAURUS_CURRENT_LOCALE (temporary i18n workaround) (@slorber)
docusaurus-theme-classic
,docusaurus-theme-common
- #8674 feat(theme-classic): respect
prefers-reduced-motion: reduce
mediaquery, Infima 升级到 alpha.43 (@slorber)
- #8674 feat(theme-classic): respect
docusaurus-theme-translations
- #8668 feat(theme-translations): add Hungarian theme translations (@trueqap)
- #8631 feat(theme-translations): add Norwegian (Bokmål) theme translation (@dr0nn1)
docusaurus-theme-common
- #8656 feat(theme-common): allow passing a string for details summary (@pReya)
docusaurus-plugin-google-gtag
- #8620 feat(gtag-plugin): gtag should support multiple tracking ids, notably for the UA => GA4 transition (@slorber)
还有一些 bug 修复,详情请看 ChangeLog。
还没有评论,来说两句吧...