Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Jul 25, 2025

close #158

変更点

  • ページの上部と下部に原文へのリンクを追加した

@3w36zj6 3w36zj6 requested a review from Copilot July 25, 2025 22:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a link to the original English page at the bottom of website pages to address issue #158. The link is positioned at the bottom to avoid cluttering the top section which already contains translation status indicators.

  • Adds a "原文(英語)を開く" (Open Original English) link that directs users to the English version on typst.app
  • Conditionally displays the link only for non-community translation status pages
  • Introduces a new WorldIcon component for visual representation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
website/src/components/templates/BaseTemplate.tsx Adds conditional link to original English page with styling and layout adjustments
website/src/components/icons/index.ts Exports the new WorldIcon component
website/src/components/icons/WorldIcon.tsx Implements new SVG icon component for the world/globe symbol

@ultimatile
Copy link
Contributor

個人的には一番下のリンクは存在が気づかれにくいのでは?という懸念があります。

上部の肥大化を気にされるのなら、実装は面倒かもしれませんが

このページは日本語に翻訳済みです。[原文を表示]

みたいな感じで翻訳表示のボックスに混ぜ込むのが良いのではないかと思いました。

@3w36zj6
Copy link
Member Author

3w36zj6 commented Jul 25, 2025

記事のメタデータが最下部にあるパターンはVitePress, Docusaurus, Zennなど、さまざまなWeb上のドキュメントで頻出なので、原文へのリンクを最下部に配置すること自体は一定の合理性があるように思います。ただしもう少し他のドキュメントの実装例を参考にしつつ検討します。

@ultimatile
Copy link
Contributor

記事のメタデータへのリンクは、通常は記事編集者しか触らないため目立たないように下部にあると思っています。
原文は、翻訳の下地になっているという意味で記事のメタデータであると言えますが、一般の読者でも原文を参照したいというケースはある程度あると思います。
また、本レポジトリ中のメタデータに相当するものは原文が埋め込まれているRustソースやmarkdownファイルに相当し、もしこれらへのリンクがあるなら下部など目立たない場所にある方が適切だと思います。
結局のところ、原文を読者向けのコンテンツだと思うなら上部、開発者向けコンテンツだと思うのなら下部ではないかと思います。
(ここでは実装コストは勘定に入れていません。)

@3w36zj6
Copy link
Member Author

3w36zj6 commented Jul 26, 2025

スタイルを変えてページ上部にも原文へのリンクを追加しました。

Copy link
Contributor

@gomazarashi gomazarashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

お疲れ様です。
手元での動作を確認いたしました。

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご対応いただきありがとうございます。とても便利になったと思います。

@ultimatile
Copy link
Contributor

ご対応ありがとうございました。

@3w36zj6 3w36zj6 merged commit 3e3a61c into main Jul 27, 2025
5 checks passed
@3w36zj6 3w36zj6 deleted the feature/add-original-page-link branch July 27, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

翻訳元ページへのリンクを追加する

5 participants