Skip to content

Commit c2cd5b1

Browse files
authored
[CI & ja & zh] Enable format check, and fixes for ja and zh (#4631)
1 parent e7a6289 commit c2cd5b1

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

content/ja/_index.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
title: OpenTelemetry
33
description: >-
44
効果的な観測を可能にする、高品質でユビキタスかつポータブルなテレメトリー
5-
developer_note:
6-
blocks/coverコラム(以下で使用)は、ファイル名に "background" を含む画像ファイルを背景画像として使用します。
5+
developer_note: blocks/coverコラム(以下で使用)は、ファイル名に "background" を含む画像ファイルを背景画像として使用します。
76
show_banner: true
87
default_lang_commit: 902043db
98
---

content/ja/docs/what-is-opentelemetry.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ OpenTelemetryの主な目的は、あなたのアプリケーションやシス
2929

3030
OpenTelemetryは、2つの重要な原則に従いながら、オブザーバビリティの需要を満たしています。
3131

32-
1. あなたが生成したデータはあなたのものです。ベンダーのロックインはありません。
33-
2. APIと規約は1セットだけ覚えれば良いです。
32+
1. あなたが生成したデータはあなたのものです。ベンダーのロックインはありません。
33+
2. APIと規約は1セットだけ覚えれば良いです。
3434

3535
この2つの原則を組み合わせることで、現代のコンピューティングの世界で必要とされる柔軟性をチームや組織に与えられます。
3636

content/zh/docs/demo/_index.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ default_lang_commit: b7ee690154aacc8d6e43636af00743994fb6dc27
2222

2323
想要了解特定编程语言的工具是如何工作的?从这里开始:
2424

25-
| 语言 | 自动插桩 | 插桩库 | 手动插桩 |
26-
| ---------- | ------------------- | -------------------- | ------------------------------------ |
27-
| .NET | | [购物车服务](services/cart/) | [购物车服务](services/cart/) |
28-
| C++ | | | [货币服务](services/currency/) |
29-
| Go | | [会计服务](services/accounting/)[结账服务](services/checkout/)[产品目录服务](services/product-catalog/) | [结账服务](services/checkout/)[产品目录服务](services/product-catalog/) |
30-
| Java | [广告服务](services/ad/) | | [广告服务](services/ad/) |
31-
| JavaScript | | [前端](services/frontend/) | [前端](services/frontend/)[支付服务](services/payment/) |
32-
| Kotlin | | [欺诈检测服务](services/fraud-detection/) | |
33-
| PHP | | [报价服务](services/quote/) | [报价服务](services/quote/) |
34-
| Python | [推荐服务](services/recommendation/) | | [推荐服务](services/recommendation/) |
35-
| Ruby | | [电子邮件服务](services/email/) | [电子邮件服务](services/email/) |
36-
| Rust | | [发货服务](services/shipping/) | [发货服务](services/shipping/) |
25+
| 语言 | 自动插桩 | 插桩库 | 手动插桩 |
26+
| ---------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
27+
| .NET | | [购物车服务](services/cart/) | [购物车服务](services/cart/) |
28+
| C++ | | | [货币服务](services/currency/) |
29+
| Go | | [会计服务](services/accounting/)[结账服务](services/checkout/)[产品目录服务](services/product-catalog/) | [结账服务](services/checkout/)[产品目录服务](services/product-catalog/) |
30+
| Java | [广告服务](services/ad/) | | [广告服务](services/ad/) |
31+
| JavaScript | | [前端](services/frontend/) | [前端](services/frontend/)[支付服务](services/payment/) |
32+
| Kotlin | | [欺诈检测服务](services/fraud-detection/) | |
33+
| PHP | | [报价服务](services/quote/) | [报价服务](services/quote/) |
34+
| Python | [推荐服务](services/recommendation/) | | [推荐服务](services/recommendation/) |
35+
| Ruby | | [电子邮件服务](services/email/) | [电子邮件服务](services/email/) |
36+
| Rust | | [发货服务](services/shipping/) | [发货服务](services/shipping/) |
3737

3838
## 服务文档
3939

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"spelling": "cSpell:ignore docsy elemetry HTMLTEST hugo loglevel netlify prebuild precheck preinstall postbuild postget refcache textlint -",
2+
"spelling": "cSpell:ignore docsy elemetry HTMLTEST hugo loglevel netlify nowrap prebuild precheck preinstall postbuild postget refcache textlint -",
33
"Notes": [
44
"The 'all' runs _all_ named scripts in sequence, even if one fails; and exits with failure in that case."
55
],
66
"scripts": {
77
"__check:links": "make --keep-going check-links",
88
"_build": "npm run _hugo -- -e dev --buildDrafts --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
99
"_check:format:any": "npx prettier --check --ignore-path ''",
10+
"_check:format:ja+zh": "npm run _check:format:nowrap -- content/ja content/zh",
11+
"_check:format:nowrap": "npm run _check:format:any -- --prose-wrap preserve",
1012
"_check:format": "npx prettier --check .",
1113
"_check:links--md": "npx markdown-link-check --config .markdown-link-check.json *.md",
1214
"_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)",
@@ -38,7 +40,7 @@
3840
"build": "npm run _build",
3941
"cd:public": "cd public &&",
4042
"check:filenames": "test -z \"$(npm run -s _ls-bad-filenames)\" || npm run -s _filename-error",
41-
"check:format": "npm run _check:format || (echo '[help] Run: npm run fix:format'; exit 1)",
43+
"check:format": "npm run _check:format && npm run _check:format:ja+zh || (echo '[help] Run: npm run fix:format'; exit 1)",
4244
"check:links:internal": "npm run _check:links:internal",
4345
"check:links": "npm run _check:links",
4446
"check:markdown": "scripts/check-markdown-wrapper.sh",
@@ -62,7 +64,7 @@
6264
"fix:submodules": "npm run _sync",
6365
"fix:text": "npm run check:text -- --fix",
6466
"fix": "npm run fix:all",
65-
"format": "npm run _check:format -- --write",
67+
"format": "npm run _check:format -- --write && npm run _check:format:ja+zh -- --write",
6668
"get:submodule": "npm run _get:${GET:-submodule}",
6769
"install:netlify-cli": "npm list netlify-cli || npm install netlify-cli",
6870
"log:check:links": "npm run check:links | tee tmp/build-log.txt",

0 commit comments

Comments
 (0)