-
Notifications
You must be signed in to change notification settings - Fork 13
feat: Webサイトのページに原文へのリンクを追加 #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 |
|
個人的には一番下のリンクは存在が気づかれにくいのでは?という懸念があります。 上部の肥大化を気にされるのなら、実装は面倒かもしれませんが みたいな感じで翻訳表示のボックスに混ぜ込むのが良いのではないかと思いました。 |
|
記事のメタデータが最下部にあるパターンはVitePress, Docusaurus, Zennなど、さまざまなWeb上のドキュメントで頻出なので、原文へのリンクを最下部に配置すること自体は一定の合理性があるように思います。ただしもう少し他のドキュメントの実装例を参考にしつつ検討します。 |
|
記事のメタデータへのリンクは、通常は記事編集者しか触らないため目立たないように下部にあると思っています。 |
|
スタイルを変えてページ上部にも原文へのリンクを追加しました。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
お疲れ様です。
手元での動作を確認いたしました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご対応いただきありがとうございます。とても便利になったと思います。
|
ご対応ありがとうございました。 |
close #158
変更点