[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9b1c56e8-44e8-4b17-9211-d9499ab9b447@infradead.org>
Date: Sat, 27 Dec 2025 11:07:33 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: mustafaelrasheid@...il.com
Cc: Jonathan Corbet <corbet@....net>, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] docs: Makefile: wrap SPHINXDIRS help text
On 12/27/25 4:52 AM, mustafaelrasheid@...il.com wrote:
> From: Mustafa Elrasheid <mustafaelrasheid@...il.com>
>
> When using `make help`, SPHINXDIR doesn't wrap around 80 characters,
> causing text to overflow or wrap in incorrect ways,
> which then makes the text difficult to read
>
> Signed-off-by: Mustafa Elrasheid <mustafaelrasheid@...il.com>
Acked-by: Randy Dunlap <rdunlap@...radead.org>
Tested-by: Randy Dunlap <rdunlap@...radead.org>
Thanks.
> ---
> v3:
> - Moved SPHINXDIRS to a new line for better readability
> - Added `-g 75` to increase the goal of fmt instead of 93% of `-w 75`
> v2:
> - Added '-s' in fmt to prevent word segmenting at the end of lines.
> - Reduced width in `fmt -w` to account for the added indentation of
> `sed`
>
> Documentation/Makefile | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/Makefile b/Documentation/Makefile
> index e96ac6dcac4f..377a449656c8 100644
> --- a/Documentation/Makefile
> +++ b/Documentation/Makefile
> @@ -98,7 +98,8 @@ dochelp:
> @echo ' cleandocs - clean all generated files'
> @echo
> @echo ' make SPHINXDIRS="s1 s2" [target] Generate only docs of folder s1, s2'
> - @echo ' top level values for SPHINXDIRS are: $(_SPHINXDIRS)'
> + @echo ' top level values for SPHINXDIRS are:'
> + @echo '$(_SPHINXDIRS)' | fmt -s -w 75 -g 75 | sed 's/^/ /'
> @echo ' you may also use a subdirectory like SPHINXDIRS=userspace-api/media,'
> @echo ' provided that there is an index.rst file at the subdirectory.'
> @echo
--
~Randy
Powered by blists - more mailing lists