# 安装依赖
npm ci
# 运行
npm run start
# 构建
npm run build
# 多语言文档路径
https://docusaurus.io/docs/i18n/introduction#translation-files-location
https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs#i18n
mkdir -p i18n/en/docusaurus-plugin-content-docs/current
cp -r docs/** i18n/en/docusaurus-plugin-content-docs/current
mkdir -p i18n/en/docusaurus-plugin-content-docs-quick/current
cp -r quick/** i18n/en/docusaurus-plugin-content-docs-quick/current
# 创建多语言元数据
npm run write-translations -- --locale en
# 指定i18n语言运行
npm run start -- --locale en
创建新版本
npm run docusaurus docs:version v2.7.x
文档 https://rikublock.dev/docs/tutorials/giscus-integration/
# 因为插入的位置不同,我们使用 swizzle DocItem/Paginator来修改
npm run swizzle @docusaurus/theme-classic DocItem/Paginator -- --wrap --typescript