fix(ci): correct tutorial preview URL generation #1118
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
未翻訳ドキュメント一覧Issueのプレビュー URL生成ロジックにバグがあったため修正しました。
問題
チュートリアルのプレビューURLが誤った形式で生成されていました:
誤り:
tutorials/first-app/intro/README.md→https://angular.jp/tutorials/first-app/introtutorials/first-app/steps/01-hello-world/README.md→https://angular.jp/tutorials/first-app/steps/01-hello-world正しいURL:
tutorials/first-app/intro/README.md→https://angular.jp/tutorials/first-apptutorials/first-app/steps/01-hello-world/README.md→https://angular.jp/tutorials/first-app/01-hello-world修正内容
チュートリアルパス(
tutorials/で始まる)の場合のみ、以下の変換を適用:/introディレクトリを削除/steps/を/に置換通常のガイドなど他のコンテンツには影響しません。
テスト