Skip to contentSkip to conversation

docs/zh_TW: remove top-level labels from process/

PATCH In review Weijie Yuan 2 participants 4 messages Oct 29 – Oct 30

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/zh_TW: remove top-level labels from process/

I happened to notice that there was actually an embarrassing label on this page [*] that had been rendered in HTML.

* https://docs.kernel.org/translations/zh_TW/process/kernel-enforcement-statement.html

Therefore let me drop these labels in process dir but leave the cleanup job later.

--- >8 ---
From: Weijie Yuan <[email protected]>

We can link to these documents by path, so the top-level labels do not buy us anything.

Drop these redundant labels from the Traditional Chinese process documents.

---

* Tested with '(make cleandocs && make htmldocs) 2>&1 | grep -F -e zh_CN -e zh_TW' seems work fine. But please leave an eye on this if available.

* Based on these series on top of Alex's docs-next branch..
- [v2 0/7] docs/zh_TW: remove duplicated maintainer contact information
- [0/4] docs/zh_TW: relocate translations to follow the English layout
- [1/1] docs/zh_TW: remove the unreachable plain-text translations
- [0/3] docs/zh_TW: mark translations that are not kept in sync

which are currently queued here for 7.5:
https://github.com/kernel-zh/linux-zh_TW.git docs-next

 Documentation/translations/zh_TW/process/1.Intro.rst            | 2 --
 Documentation/translations/zh_TW/process/2.Process.rst          | 2 --
 Documentation/translations/zh_TW/process/3.Early-stage.rst      | 2 --
 Documentation/translations/zh_TW/process/4.Coding.rst           | 2 --
 Documentation/translations/zh_TW/process/5.Posting.rst          | 2 --
 Documentation/translations/zh_TW/process/6.Followthrough.rst    | 2 --
 Documentation/translations/zh_TW/process/7.AdvancedTopics.rst   | 2 --
 Documentation/translations/zh_TW/process/8.Conclusion.rst       | 2 --
 .../zh_TW/process/code-of-conduct-interpretation.rst            | 2 --
 Documentation/translations/zh_TW/process/code-of-conduct.rst    | 2 --
 Documentation/translations/zh_TW/process/coding-style.rst       | 2 --
 .../translations/zh_TW/process/development-process.rst          | 2 --
 Documentation/translations/zh_TW/process/email-clients.rst      | 2 --
 Documentation/translations/zh_TW/process/howto.rst              | 2 --
 Documentation/translations/zh_TW/process/index.rst              | 2 --
 .../translations/zh_TW/process/kernel-driver-statement.rst      | 2 --
 .../translations/zh_TW/process/kernel-enforcement-statement.rst | 2 --
 Documentation/translations/zh_TW/process/license-rules.rst      | 2 --
 Documentation/translations/zh_TW/process/management-style.rst   | 2 --
 .../translations/zh_TW/process/programming-language.rst         | 2 --
 .../translations/zh_TW/process/stable-api-nonsense.rst          | 2 --
 .../translations/zh_TW/process/stable-kernel-rules.rst          | 2 --
 Documentation/translations/zh_TW/process/submit-checklist.rst   | 2 --
 Documentation/translations/zh_TW/process/submitting-patches.rst | 2 --
 .../translations/zh_TW/process/volatile-considered-harmful.rst  | 2 --
 25 files changed, 50 deletions(-)
Documentation/translations/zh_TW/process/1.Intro.rst +0 -2
index 65c5ae095504..0c1c6709b1cb 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/1.Intro.rst <development_process_intro>`
 
-.. _tw_development_process_intro:
-
 引言
 ====
 
Documentation/translations/zh_TW/process/2.Process.rst +0 -2
index cf9bd1b1444a..85e1444b3be6 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/2.Process.rst <development_process>`
 
-.. _tw_development_process:
-
 開發流程如何進行
 ================
 
Documentation/translations/zh_TW/process/3.Early-stage.rst +0 -2
index 7d7ecf9658e5..be3dadcf1663 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/3.Early-stage.rst <development_early_stage>`
 
-.. _tw_development_early_stage:
-
 早期規劃
 ========
 
Documentation/translations/zh_TW/process/4.Coding.rst +0 -2
index 423d51f4b3de..982735fd6134 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/4.Coding.rst <development_coding>`
 
-.. _tw_development_coding:
-
 使代碼正確
 ======================
 
Documentation/translations/zh_TW/process/5.Posting.rst +0 -2
index d54b16364474..ba3b8a79f21a 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/5.Posting.rst <development_posting>`
 
-.. _tw_development_posting:
-
 發布補丁
 ========
 
Documentation/translations/zh_TW/process/6.Followthrough.rst +0 -2
index 76082a15677f..e9a70eec850c 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/6.Followthrough.rst <development_followthrough>`
 
-.. _tw_development_followthrough:
-
 跟進
 ====
 
Documentation/translations/zh_TW/process/7.AdvancedTopics.rst +0 -2
index 392c00213078..fb2e3764802f 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/7.AdvancedTopics.rst <development_advancedtopics>`
 
-.. _tw_development_advancedtopics:
-
 進階主題
 ========
 
Documentation/translations/zh_TW/process/8.Conclusion.rst +0 -2
index 2436263c6506..82e89d992964 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/8.Conclusion.rst <development_conclusion>`
 
-.. _tw_development_conclusion:
-
 更多資訊
 ========
 
Documentation/translations/zh_TW/process/code-of-conduct-interpretation.rst +0 -2
index 4fc568409198..fbb9fb719b19 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/code-of-conduct-interpretation.rst <code_of_conduct_interpretation>`
 
-.. _tw_code_of_conduct_interpretation:
-
 Linux核心貢獻者契約行為準則解釋
 ===============================
 
Documentation/translations/zh_TW/process/code-of-conduct.rst +0 -2
index 0266cd74a0b1..4db8ddc71474 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/code-of-conduct.rst <code_of_conduct>`
 
-.. _tw_code_of_conduct:
-
 貢獻者契約行爲準則
 ++++++++++++++++++
 
Documentation/translations/zh_TW/process/coding-style.rst +0 -2
index 5778b707503f..166b952cb54e 100644
@@ -4,8 +4,6 @@
 
 :Original: Documentation/process/coding-style.rst
 
-.. _tw_codingstyle:
-
 Linux 核心程式碼風格
 ====================
 
Documentation/translations/zh_TW/process/development-process.rst +0 -2
index 1d22aa0d3711..e3e69882d8f6 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/development-process.rst <development_process_main>`
 
-.. _tw_development_process_main:
-
 內核開發過程指南
 ================
 
Documentation/translations/zh_TW/process/email-clients.rst +0 -2
index 272e3073521d..7a5cf79fe4f9 100644
@@ -2,8 +2,6 @@
 
 .. include:: ../disclaimer-zh_TW.rst
 
-.. _tw_email_clients:
-
 :Original: Documentation/process/email-clients.rst
 
 Linux郵件客戶端設定資訊
Documentation/translations/zh_TW/process/howto.rst +0 -2
index 1ffc076ce26c..46c7a63398f7 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_howto:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/howto.rst <process_howto>`
Documentation/translations/zh_TW/process/index.rst +0 -2
index bd638264bbe4..b27af36ce3bb 100644
@@ -9,8 +9,6 @@
 
 :Original: :ref:`Documentation/process/index.rst <process_index>`
 
-.. _tw_process_index:
-
 ========================
 與Linux核心社群一起工作
 ========================
Documentation/translations/zh_TW/process/kernel-driver-statement.rst +0 -2
index 34bcb6f164cb..e6ff67f75650 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_statement_driver:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/kernel-driver-statement.rst <process_statement_driver>`
Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst +0 -2
index d54d20529294..45bb50fd1e6a 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_statement_kernel:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/kernel-enforcement-statement.rst <process_statement_kernel>`
Documentation/translations/zh_TW/process/license-rules.rst +0 -2
index 0a4558b7fc76..8f9b57e223a7 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/license-rules.rst <kernel_licensing>`
 
-.. _tw_kernel_licensing:
-
 Linux核心許可規則
 =================
 
Documentation/translations/zh_TW/process/management-style.rst +0 -2
index 2cef0ef25ede..9908724e37a2 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/management-style.rst <managementstyle>`
 
-.. _tw_managementstyle:
-
 Linux內核管理風格
 =================
 
Documentation/translations/zh_TW/process/programming-language.rst +0 -2
index 9aac89e2c23b..04ad22a25a4e 100644
@@ -4,8 +4,6 @@
 
 :Original: :ref:`Documentation/process/programming-language.rst <programming_language>`
 
-.. _tw_programming_language:
-
 程式語言
 ========
 
Documentation/translations/zh_TW/process/stable-api-nonsense.rst +0 -2
index 94748429c182..2e82df8544ef 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_stable_api_nonsense:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/stable-api-nonsense.rst
Documentation/translations/zh_TW/process/stable-kernel-rules.rst +0 -2
index d182d625728d..bd0a1599dbff 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_stable_kernel_rules:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/stable-kernel-rules.rst <stable_kernel_rules>`
Documentation/translations/zh_TW/process/submit-checklist.rst +0 -2
index 452fecc7c425..f5b2cb56eec4 100644
@@ -4,8 +4,6 @@
 
 :Original: Documentation/process/submit-checklist.rst
 
-.. _tw_submitchecklist:
-
 Linux內核補丁提交檢查單
 ~~~~~~~~~~~~~~~~~~~~~~~
 
Documentation/translations/zh_TW/process/submitting-patches.rst +0 -2
index 514903daae25..967e558350c0 100644
@@ -2,8 +2,6 @@
 
 .. include:: ../disclaimer-zh_TW.rst
 
-.. _tw_submittingpatches:
-
 :Original: Documentation/process/submitting-patches.rst
 
 提交補丁:如何讓你的改動進入核心
Documentation/translations/zh_TW/process/volatile-considered-harmful.rst +0 -2
index edfc83f32672..a2384b60b874 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_volatile_considered_harmful:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/volatile-considered-harmful.rst
maintainer
#1 lore raw
Quoted 8 lines · Weijie Yuan

I happened to notice that there was actually an embarrassing label on this page [*] that had been rendered in HTML.

* https://docs.kernel.org/translations/zh_TW/process/kernel-enforcement-statement.html

Therefore let me drop these labels in process dir but leave the cleanup job later.

Quoted 8 lines

--- >8 ---
From: Weijie Yuan <[email protected]>

We can link to these documents by path, so the top-level labels do not buy us anything.

Drop these redundant labels from the Traditional Chinese process documents.

Hi Weijie,

Removing these labels breaks existing zh_TW cross-references. The patch deletes 25 labels, but 17 of them are still targets of 25 :ref: uses.

Dongliang Mu

Quoted 362 lines

---

* Tested with '(make cleandocs && make htmldocs) 2>&1 | grep -F -e zh_CN -e zh_TW' seems work fine. But please leave an eye on this if available.

* Based on these series on top of Alex's docs-next branch..
- [v2 0/7] docs/zh_TW: remove duplicated maintainer contact information
- [0/4] docs/zh_TW: relocate translations to follow the English layout
- [1/1] docs/zh_TW: remove the unreachable plain-text translations
- [0/3] docs/zh_TW: mark translations that are not kept in sync

which are currently queued here for 7.5:
https://github.com/kernel-zh/linux-zh_TW.git docs-next

  Documentation/translations/zh_TW/process/1.Intro.rst            | 2 --
  Documentation/translations/zh_TW/process/2.Process.rst          | 2 --
  Documentation/translations/zh_TW/process/3.Early-stage.rst      | 2 --
  Documentation/translations/zh_TW/process/4.Coding.rst           | 2 --
  Documentation/translations/zh_TW/process/5.Posting.rst          | 2 --
  Documentation/translations/zh_TW/process/6.Followthrough.rst    | 2 --
  Documentation/translations/zh_TW/process/7.AdvancedTopics.rst   | 2 --
  Documentation/translations/zh_TW/process/8.Conclusion.rst       | 2 --
  .../zh_TW/process/code-of-conduct-interpretation.rst            | 2 --
  Documentation/translations/zh_TW/process/code-of-conduct.rst    | 2 --
  Documentation/translations/zh_TW/process/coding-style.rst       | 2 --
  .../translations/zh_TW/process/development-process.rst          | 2 --
  Documentation/translations/zh_TW/process/email-clients.rst      | 2 --
  Documentation/translations/zh_TW/process/howto.rst              | 2 --
  Documentation/translations/zh_TW/process/index.rst              | 2 --
  .../translations/zh_TW/process/kernel-driver-statement.rst      | 2 --
  .../translations/zh_TW/process/kernel-enforcement-statement.rst | 2 --
  Documentation/translations/zh_TW/process/license-rules.rst      | 2 --
  Documentation/translations/zh_TW/process/management-style.rst   | 2 --
  .../translations/zh_TW/process/programming-language.rst         | 2 --
  .../translations/zh_TW/process/stable-api-nonsense.rst          | 2 --
  .../translations/zh_TW/process/stable-kernel-rules.rst          | 2 --
  Documentation/translations/zh_TW/process/submit-checklist.rst   | 2 --
  Documentation/translations/zh_TW/process/submitting-patches.rst | 2 --
  .../translations/zh_TW/process/volatile-considered-harmful.rst  | 2 --
  25 files changed, 50 deletions(-)
Documentation/translations/zh_TW/process/1.Intro.rst +0 -2
index 65c5ae095504..0c1c6709b1cb 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/1.Intro.rst <development_process_intro>`
 
-.. _tw_development_process_intro:
-
  引言
  ====
 
Documentation/translations/zh_TW/process/2.Process.rst +0 -2
index cf9bd1b1444a..85e1444b3be6 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/2.Process.rst <development_process>`
 
-.. _tw_development_process:
-
  開發流程如何進行
  ================
 
Documentation/translations/zh_TW/process/3.Early-stage.rst +0 -2
index 7d7ecf9658e5..be3dadcf1663 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/3.Early-stage.rst <development_early_stage>`
 
-.. _tw_development_early_stage:
-
  早期規劃
  ========
 
Documentation/translations/zh_TW/process/4.Coding.rst +0 -2
index 423d51f4b3de..982735fd6134 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/4.Coding.rst <development_coding>`
 
-.. _tw_development_coding:
-
  使代碼正確
  ======================
 
Documentation/translations/zh_TW/process/5.Posting.rst +0 -2
index d54b16364474..ba3b8a79f21a 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/5.Posting.rst <development_posting>`
 
-.. _tw_development_posting:
-
  發布補丁
  ========
 
Documentation/translations/zh_TW/process/6.Followthrough.rst +0 -2
index 76082a15677f..e9a70eec850c 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/6.Followthrough.rst <development_followthrough>`
 
-.. _tw_development_followthrough:
-
  跟進
  ====
 
Documentation/translations/zh_TW/process/7.AdvancedTopics.rst +0 -2
index 392c00213078..fb2e3764802f 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/7.AdvancedTopics.rst <development_advancedtopics>`
 
-.. _tw_development_advancedtopics:
-
  進階主題
  ========
 
Documentation/translations/zh_TW/process/8.Conclusion.rst +0 -2
index 2436263c6506..82e89d992964 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/8.Conclusion.rst <development_conclusion>`
 
-.. _tw_development_conclusion:
-
  更多資訊
  ========
 
Documentation/translations/zh_TW/process/code-of-conduct-interpretation.rst +0 -2
index 4fc568409198..fbb9fb719b19 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/code-of-conduct-interpretation.rst <code_of_conduct_interpretation>`
 
-.. _tw_code_of_conduct_interpretation:
-
  Linux核心貢獻者契約行為準則解釋
  ===============================
 
Documentation/translations/zh_TW/process/code-of-conduct.rst +0 -2
index 0266cd74a0b1..4db8ddc71474 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/code-of-conduct.rst <code_of_conduct>`
 
-.. _tw_code_of_conduct:
-
  貢獻者契約行爲準則
  ++++++++++++++++++
 
Documentation/translations/zh_TW/process/coding-style.rst +0 -2
index 5778b707503f..166b952cb54e 100644
@@ -4,8 +4,6 @@
 
  :Original: Documentation/process/coding-style.rst
 
-.. _tw_codingstyle:
-
  Linux 核心程式碼風格
  ====================
 
Documentation/translations/zh_TW/process/development-process.rst +0 -2
index 1d22aa0d3711..e3e69882d8f6 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/development-process.rst <development_process_main>`
 
-.. _tw_development_process_main:
-
  內核開發過程指南
  ================
 
Documentation/translations/zh_TW/process/email-clients.rst +0 -2
index 272e3073521d..7a5cf79fe4f9 100644
@@ -2,8 +2,6 @@
 
  .. include:: ../disclaimer-zh_TW.rst
 
-.. _tw_email_clients:
-
  :Original: Documentation/process/email-clients.rst
 
  Linux郵件客戶端設定資訊
Documentation/translations/zh_TW/process/howto.rst +0 -2
index 1ffc076ce26c..46c7a63398f7 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_howto:
-
  .. include:: ../disclaimer-zh_TW.rst
 
  :Original: :ref:`Documentation/process/howto.rst <process_howto>`
Documentation/translations/zh_TW/process/index.rst +0 -2
index bd638264bbe4..b27af36ce3bb 100644
@@ -9,8 +9,6 @@
 
  :Original: :ref:`Documentation/process/index.rst <process_index>`
 
-.. _tw_process_index:
-
  ========================
  與Linux核心社群一起工作
  ========================
Documentation/translations/zh_TW/process/kernel-driver-statement.rst +0 -2
index 34bcb6f164cb..e6ff67f75650 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_statement_driver:
-
  .. include:: ../disclaimer-zh_TW.rst
 
  :Original: :ref:`Documentation/process/kernel-driver-statement.rst <process_statement_driver>`
Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst +0 -2
index d54d20529294..45bb50fd1e6a 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_statement_kernel:
-
  .. include:: ../disclaimer-zh_TW.rst
 
  :Original: :ref:`Documentation/process/kernel-enforcement-statement.rst <process_statement_kernel>`
Documentation/translations/zh_TW/process/license-rules.rst +0 -2
index 0a4558b7fc76..8f9b57e223a7 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/license-rules.rst <kernel_licensing>`
 
-.. _tw_kernel_licensing:
-
  Linux核心許可規則
  =================
 
Documentation/translations/zh_TW/process/management-style.rst +0 -2
index 2cef0ef25ede..9908724e37a2 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/management-style.rst <managementstyle>`
 
-.. _tw_managementstyle:
-
  Linux內核管理風格
  =================
 
Documentation/translations/zh_TW/process/programming-language.rst +0 -2
index 9aac89e2c23b..04ad22a25a4e 100644
@@ -4,8 +4,6 @@
 
  :Original: :ref:`Documentation/process/programming-language.rst <programming_language>`
 
-.. _tw_programming_language:
-
  程式語言
  ========
 
Documentation/translations/zh_TW/process/stable-api-nonsense.rst +0 -2
index 94748429c182..2e82df8544ef 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_stable_api_nonsense:
-
  .. include:: ../disclaimer-zh_TW.rst
 
  :Original: :ref:`Documentation/process/stable-api-nonsense.rst
Documentation/translations/zh_TW/process/stable-kernel-rules.rst +0 -2
index d182d625728d..bd0a1599dbff 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_stable_kernel_rules:
-
  .. include:: ../disclaimer-zh_TW.rst
 
  :Original: :ref:`Documentation/process/stable-kernel-rules.rst <stable_kernel_rules>`
Documentation/translations/zh_TW/process/submit-checklist.rst +0 -2
index 452fecc7c425..f5b2cb56eec4 100644
@@ -4,8 +4,6 @@
 
  :Original: Documentation/process/submit-checklist.rst
 
-.. _tw_submitchecklist:
-
  Linux內核補丁提交檢查單
  ~~~~~~~~~~~~~~~~~~~~~~~
 
Documentation/translations/zh_TW/process/submitting-patches.rst +0 -2
index 514903daae25..967e558350c0 100644
@@ -2,8 +2,6 @@
 
  .. include:: ../disclaimer-zh_TW.rst
 
-.. _tw_submittingpatches:
-
  :Original: Documentation/process/submitting-patches.rst
 
  提交補丁:如何讓你的改動進入核心
Documentation/translations/zh_TW/process/volatile-considered-harmful.rst +0 -2
index edfc83f32672..a2384b60b874 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_volatile_considered_harmful:
-
  .. include:: ../disclaimer-zh_TW.rst
 
  :Original: :ref:`Documentation/process/volatile-considered-harmful.rst
#2 lore raw
Quoted 19 lines · Dongliang Mu
Quoted 8 lines · Weijie Yuan

I happened to notice that there was actually an embarrassing label on this page [*] that had been rendered in HTML.

* https://docs.kernel.org/translations/zh_TW/process/kernel-enforcement-statement.html

Therefore let me drop these labels in process dir but leave the cleanup job later.

Quoted 8 lines

--- >8 ---
From: Weijie Yuan <[email protected]>

We can link to these documents by path, so the top-level labels do not buy us anything.

Drop these redundant labels from the Traditional Chinese process documents.

Quoted 6 lines

Hi Weijie,

Removing these labels breaks existing zh_TW cross-references. The patch deletes 25 labels, but 17 of them are still targets of 25 :ref: uses.

Dongliang Mu

Thanks for your quick check! Indeed, there are many of them being used. I'm doing this stupidly, sorry.

Then I'm wondering why 'make htmldocs' did not complain about this..

[compiled again..] OK, that's because my machine stuck for a moment. Sphinx did complain about this, ouch.

Anyway, the actual reason of this patch is here:

Quoted 10 lines

Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst line 3

Quoted 10 lines
Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst +0 -2
index d54d20529294..45bb50fd1e6a 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
-.. _tw_process_statement_kernel:
-
  .. include:: ../disclaimer-zh_TW.rst
  :Original: :ref:`Documentation/process/kernel-enforcement-statement.rst <process_statement_kernel>`

There is an invisible U+FEFF character before '.. _tw_process_statement_kernel:' prevents it from being recognized as a label, causing it to be rendered as plain text in the HTML output.

Will handle these issues soon.

Thanks!

#3 lore raw

PATCH v2 1/1 docs/zh_TW: drop unused enforcement statement label

Quoted 52 lines · Weijie Yuan
Quoted 19 lines · Dongliang Mu
Quoted 8 lines · Weijie Yuan

I happened to notice that there was actually an embarrassing label on this page [*] that had been rendered in HTML.

* https://docs.kernel.org/translations/zh_TW/process/kernel-enforcement-statement.html

Therefore let me drop these labels in process dir but leave the cleanup job later.

Quoted 8 lines

--- >8 ---
From: Weijie Yuan <[email protected]>

We can link to these documents by path, so the top-level labels do not buy us anything.

Drop these redundant labels from the Traditional Chinese process documents.

Quoted 6 lines

Hi Weijie,

Removing these labels breaks existing zh_TW cross-references. The patch deletes 25 labels, but 17 of them are still targets of 25 :ref: uses.

Dongliang Mu

Thanks for your quick check! Indeed, there are many of them being used. I'm doing this stupidly, sorry.

Then I'm wondering why 'make htmldocs' did not complain about this..

[compiled again..] OK, that's because my machine stuck for a moment. Sphinx did complain about this, ouch.

Anyway, the actual reason of this patch is here:

Quoted 10 lines

Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst line 3

Quoted 10 lines
Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst +0 -2
index d54d20529294..45bb50fd1e6a 100644
@@ -1,7 +1,5 @@
  .. SPDX-License-Identifier: GPL-2.0
-.. _tw_process_statement_kernel:
-
  .. include:: ../disclaimer-zh_TW.rst
  :Original: :ref:`Documentation/process/kernel-enforcement-statement.rst <process_statement_kernel>`

There is an invisible U+FEFF character before '.. _tw_process_statement_kernel:' prevents it from being recognized as a label, causing it to be rendered as plain text in the HTML output.

Quoted 1 line

Will handle these issues soon.

Hmm, now I realized that the last patch I submitted actually covered too wide a scope. The English originals still use those labels and references, e.g. ":ref:development_process" so I do not have a every strong standpoint to change zh_TW which would make our translation inconsistent with the original one.

Therefore, here comes v2 which is only aiming to remove that embarrassing label.

-- >8 --
From: Weijie Yuan <[email protected]>
Subject: [PATCH v2] docs/zh_TW: drop unused enforcement statement label

The tw_process_statement_kernel label has an invisible U+FEFF character before its opening "..". This prevents the reStructuredText parser from recognizing it, so the HTML output shows the label definition as plain text.

Nothing in the tree refers to this label, and the table of contents uses the document path. Drop the unused label to remove the stray text from the output.

---
 .../translations/zh_TW/process/kernel-enforcement-statement.rst | 2 --
 1 file changed, 2 deletions(-)
Documentation/translations/zh_TW/process/kernel-enforcement-statement.rst +0 -2
index d54d20529294..45bb50fd1e6a 100644
@@ -1,7 +1,5 @@
 .. SPDX-License-Identifier: GPL-2.0
 
-.. _tw_process_statement_kernel:
-
 .. include:: ../disclaimer-zh_TW.rst
 
 :Original: :ref:`Documentation/process/kernel-enforcement-statement.rst <process_statement_kernel>`
Signature · 1 line
2.56.0.385.gac671c819a