Skip to contentSkip to conversation

linux-next: build warning after merge of the jc_docs tree

DISCUSSION Stephen Rothwell 2 participants 3 messages Nov 16, 2020 – Dec 14, 2020

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

Hi all,

After merging the jc_docs tree, today's linux-next build (htmldocs) produced this warning:

Documentation/translations/zh_CN/filesystems/tmpfs.rst:5: WARNING: undefined label: tmpfs_index (if the link has no caption the label must precede a section header)

Introduced by commit

09028e60fcea ("doc: zh_CN: add translatation for tmpfs")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 9 lines · On Mon, 16 Nov 2020 17:03:03 +1100 Stephen Rothwell <[email protected]>…

After merging the jc_docs tree, today's linux-next build (htmldocs) produced this warning:

Documentation/translations/zh_CN/filesystems/tmpfs.rst:5: WARNING: undefined label: tmpfs_index (if the link has no caption the label must precede a section header)

Introduced by commit

09028e60fcea ("doc: zh_CN: add translatation for tmpfs")

I am still getting this warning.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#2 lore raw
Quoted 5 lines · On Tue, 15 Dec 2020 06:51:43 +1100 Stephen Rothwell <[email protected]>…
Quoted 4 lines · On Mon, 16 Nov 2020 17:03:03 +1100 Stephen Rothwell <[email protected]>…

After merging the jc_docs tree, today's linux-next build (htmldocs) produced this warning:

Quoted 7 lines
Quoted 5 lines

Documentation/translations/zh_CN/filesystems/tmpfs.rst:5: WARNING: undefined label: tmpfs_index (if the link has no caption the label must precede a section header)

Introduced by commit

09028e60fcea ("doc: zh_CN: add translatation for tmpfs")

I am still getting this warning.

OK, enough of that; I've just tacked on the following patch to address this problem, thanks for the report.

Thanks,

jon

From 47e44ed01434e51e2e42b188482d837c01e5d16e Mon Sep 17 00:00:00 2001
From: Jonathan Corbet <[email protected]>
Date: Mon, 14 Dec 2020 13:14:22 -0700
Subject: [PATCH] docs: fix broken cross reference in translations/zh_CN

Commit 09028e60fcea ("doc: zh_CN: add translatation for tmpfs") introduced a cross reference without adding the appropriate target tag, leading to this docs-build warning:

Documentation/translations/zh_CN/filesystems/tmpfs.rst:5: WARNING: undefined label: tmpfs_index (if the link has no caption the label must precede a section header)

With automarkup, we don't actually need an explicit reference here at all, so just take it out.

Fixes 09028e60fcea ("doc: zh_CN: add translatation for tmpfs")
---
 Documentation/translations/zh_CN/filesystems/tmpfs.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/translations/zh_CN/filesystems/tmpfs.rst +1 -1
index cf3ccab20e50..6fd9d83b2db5 100644
@@ -2,7 +2,7 @@
 
 .. include:: ../disclaimer-zh_CN.rst
 
-:Original: :ref:`Documentation/filesystems/tmpfs.rst <tmpfs_index>`
+:Original: Documentation/filesystems/tmpfs.rst
 
 translated by Wang Qing<[email protected]>
 
Signature · 1 line
2.28.0