Documentation for Alauda Build of OpenTelemetry v2
$ yarn install- It's recommended to use Visual Studio Code editor and install the MDX extension for document writing
yarn dev: Start the local development server, file modifications will update in real-time. (Note: Left navigation bar related modifications require restarting the service)yarn build: Build production environment code, static files will be generated in thedistdirectory after build completionyarn serve: Preview the built static files locally
当 Alauda Build of OpenTelemetry 发布新版本时,使用 hack/update-otel-version.sh 批量更新 ./docs/en/ 下所有 .mdx 文档中出现的旧版本号。
./hack/update-otel-version.sh <旧版本> <新版本>版本号格式为 X.Y.Z-rN,例如 0.146.0-r0。
-
确认新版本号(例如
0.147.0-r0)。 -
在仓库根目录执行脚本:
./hack/update-otel-version.sh 0.146.0-r0 0.147.0-r0
脚本会自动查找
./docs/en/下所有包含旧版本号的.mdx文件,并将其中的旧版本号全部替换为新版本号;运行结束后会输出被修改的文件列表。 -
使用
git diff检查改动是否符合预期:git diff docs/en/
-
本地运行
yarn dev预览相关页面,确认渲染无异常。 -
确认无误后提交改动并发起 PR。
提示:若想新增其它需要随版本一起更新的文件类型或目录,可直接编辑
hack/update-otel-version.sh中的grep -r --include='*.mdx'与DOCS_DIR配置。