2020-05-31 18:38:28

by Lukas Bulwahn

[permalink] [raw]
Subject: [PATCH] doc: zh_CN: use doc reference to resolve undefined label warning

Documentation generation warns:

Documentation/translations/zh_CN/filesystems/debugfs.rst:5:
WARNING: undefined label: debugfs_index

Use doc reference for files rather than introducing a label to refer to.
This resolves the warning above.

Signed-off-by: Lukas Bulwahn <[email protected]>
---
Jonathan, please pick this quick warning fix.

applies on your doc-next and next-20200529

Documentation/translations/zh_CN/filesystems/debugfs.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/translations/zh_CN/filesystems/debugfs.rst b/Documentation/translations/zh_CN/filesystems/debugfs.rst
index f8a28793c277..822c4d42fdf9 100644
--- a/Documentation/translations/zh_CN/filesystems/debugfs.rst
+++ b/Documentation/translations/zh_CN/filesystems/debugfs.rst
@@ -2,7 +2,7 @@

.. include:: ../disclaimer-zh_CN.rst

-:Original: :ref:`Documentation/filesystems/debugfs.txt <debugfs_index>`
+:Original: :doc:`../../../filesystems/debugfs`

=======
Debugfs
--
2.17.1


2020-06-03 07:42:57

by Alex Shi

[permalink] [raw]
Subject: Re: [PATCH] doc: zh_CN: use doc reference to resolve undefined label warning



?? 2020/6/1 ????2:35, Lukas Bulwahn ะด??:
> Documentation generation warns:
>
> Documentation/translations/zh_CN/filesystems/debugfs.rst:5:
> WARNING: undefined label: debugfs_index

It's due to debugfs.txt changed to debugfs.rst.

>
> Use doc reference for files rather than introducing a label to refer to.
> This resolves the warning above.

Anyway this fix is also fine for me.

Reviewed-by: Alex Shi <[email protected]>

>
> Signed-off-by: Lukas Bulwahn <[email protected]>
> ---
> Jonathan, please pick this quick warning fix.
>
> applies on your doc-next and next-20200529
>
> Documentation/translations/zh_CN/filesystems/debugfs.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/translations/zh_CN/filesystems/debugfs.rst b/Documentation/translations/zh_CN/filesystems/debugfs.rst
> index f8a28793c277..822c4d42fdf9 100644
> --- a/Documentation/translations/zh_CN/filesystems/debugfs.rst
> +++ b/Documentation/translations/zh_CN/filesystems/debugfs.rst
> @@ -2,7 +2,7 @@
>
> .. include:: ../disclaimer-zh_CN.rst
>
> -:Original: :ref:`Documentation/filesystems/debugfs.txt <debugfs_index>`
> +:Original: :doc:`../../../filesystems/debugfs`
>
> =======
> Debugfs
>

2020-06-08 15:27:36

by Jonathan Corbet

[permalink] [raw]
Subject: Re: [PATCH] doc: zh_CN: use doc reference to resolve undefined label warning

On Sun, 31 May 2020 20:35:56 +0200
Lukas Bulwahn <[email protected]> wrote:

> Documentation generation warns:
>
> Documentation/translations/zh_CN/filesystems/debugfs.rst:5:
> WARNING: undefined label: debugfs_index
>
> Use doc reference for files rather than introducing a label to refer to.
> This resolves the warning above.
>
> Signed-off-by: Lukas Bulwahn <[email protected]>
> ---
> Jonathan, please pick this quick warning fix.

Applied, thanks.

jon