From: Weijie Yuan <wy@wyuan.org>
To: 葉宸佑 <chenyou910331@gmail.com>
Cc: Alex Shi <alexs@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
Dongliang Mu <dzm91@hust.edu.cn>,
Yanteng Si <si.yanteng@linux.dev>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 03/25] docs/zh_TW: process: sync 4.Coding.rst with the English original
Date: Mon, 23 Nov 2026 09:23:37 +0800 [thread overview]
Message-ID: <awOVmVPNOCNTzLcD@wyuan.org> (raw)
In-Reply-To: <CAKspUhLvHoWW9unBOFfFrykdxpBswBraaBJnbxpC9rg7yvTFUQ@mail.gmail.com>
On Thu, Nov 19, 2026 at 07:50:57PM +0800, 葉宸佑 wrote:
> On Thu, Nov 12, 2026 at 01:36:54PM +0800, Weijie Yuan wrote:
> > You used <tw_codingstyle> label here, but after rendering, the html
> > output is still "Documentation/process/coding-style.rst", which is
> > pointing to the zh-tw translation, not the original one. So it is
> > inconsistent, right?
>
> You're not misunderstanding, you're right. With :ref:`text <label>`, the
> text is displayed as is and only the label decides where the link goes.
> Since the label exists, Sphinx has nothing to warn about.
>
> > I suggest that in this series, either use the full path to refer to a
> > file directly, or stick to the discouraged writing style and wait until
> > once these two series are completed, we can then carry out a thorough
> > cleanup. What do you think?
>
> I'll go with the second option for v2: keep the :ref:s and labels, but
> display the zh_TW path, e.g.
>
> :ref:`Documentation/translations/zh_TW/process/coding-style.rst
> <tw_codingstyle>`
>
> so the text matches where the link goes. Turning them into plain paths
> can then go into the cleanup together with the label work.
>
> To make sure nothing is missed, I checked every :ref: in both series
> with a script. Besides the ones displaying an English path, it found
> one in embargoed-hardware-issues.rst copied from the English text as
> "Documentation/admin-guide/ <securitybugs>", where both the text and the
> target are English. The zh_TW security-bugs.rst has no label, so I'll
> use its full path there instead.
Thanks!
> > Regarding the "ref" of one specific section, I remember that it could be
> > referred to using a relative path, and with a label?
>
> A :ref: only takes a label, so a section needs one, like
> <tw_interleaved_replies> in 2.Process.rst, which points at a section of
> submitting-patches.rst. A relative path works with :doc:, but that
> links a whole document, and for that a plain path is simpler since
> automarkup turns it into a link.
Okay, got it.
> I'll leave your Reviewed-by off this patch in v2.
Aha, that was completely my carelessness ;-)
Sorry that my schedule has been a bit tight recently, but I'll try to
take a look at the rest soon. But of course you can start brewing your
v2 if you have time now. ;-)
Thanks.
next prev parent reply other threads:[~2026-11-23 1:23 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 11:31 [PATCH 00/25] docs/zh_TW: process: resync translations with the English originals Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 01/25] docs/zh_TW: process: sync 1.Intro.rst with the English original Chen-Yu Yeh
2026-11-11 13:08 ` Weijie Yuan
2026-11-19 11:49 ` 葉宸佑
2026-11-23 0:44 ` Weijie Yuan
2026-11-06 11:31 ` [PATCH 02/25] docs/zh_TW: process: sync 2.Process.rst " Chen-Yu Yeh
2026-11-11 14:32 ` Weijie Yuan
2026-11-19 11:49 ` 葉宸佑
2026-11-23 1:12 ` Weijie Yuan
2026-11-06 11:31 ` [PATCH 03/25] docs/zh_TW: process: sync 4.Coding.rst " Chen-Yu Yeh
2026-11-12 3:25 ` Weijie Yuan
2026-11-12 5:36 ` Weijie Yuan
2026-11-19 11:50 ` 葉宸佑
2026-11-23 1:23 ` Weijie Yuan [this message]
2026-11-06 11:31 ` [PATCH 04/25] docs/zh_TW: process: sync 5.Posting.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 05/25] docs/zh_TW: process: sync 6.Followthrough.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 06/25] docs/zh_TW: process: sync 7.AdvancedTopics.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 07/25] docs/zh_TW: process: sync 8.Conclusion.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 08/25] docs/zh_TW: process: sync code-of-conduct-interpretation.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 09/25] docs/zh_TW: process: sync code-of-conduct.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 10/25] docs/zh_TW: process: sync gdb-kernel-debugging.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 11/25] docs/zh_TW: process: sync development-process.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 12/25] docs/zh_TW: process: sync email-clients.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 13/25] docs/zh_TW: process: sync kernel-driver-statement.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 14/25] docs/zh_TW: process: sync kernel-enforcement-statement.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 15/25] docs/zh_TW: process: sync management-style.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 16/25] docs/zh_TW: process: sync security-bugs.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 17/25] docs/zh_TW: process: sync volatile-considered-harmful.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 18/25] docs/zh_TW: process: sync 3.Early-stage.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 19/25] docs/zh_TW: process: sync coding-style.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 20/25] docs/zh_TW: process: sync embargoed-hardware-issues.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 21/25] docs/zh_TW: process: sync howto.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 22/25] docs/zh_TW: process: sync license-rules.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 23/25] docs/zh_TW: process: sync stable-api-nonsense.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 24/25] docs/zh_TW: process: sync submit-checklist.rst " Chen-Yu Yeh
2026-11-06 11:31 ` [PATCH 25/25] docs/zh_TW: process: sync submitting-patches.rst " Chen-Yu Yeh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awOVmVPNOCNTzLcD@wyuan.org \
--to=wy@wyuan.org \
--cc=alexs@kernel.org \
--cc=chenyou910331@gmail.com \
--cc=corbet@lwn.net \
--cc=dzm91@hust.edu.cn \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=si.yanteng@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox