scripts/docsurgeon: Fix document header for section 1 man pages
Vishal Verma
maintainerPATCH 1/1 scripts/docsurgeon: Fix document header for section 1 man pages
Document header generation for section 1 man pages (cxl-foo commands) was missing the section number in parenthesis, i.e. it would generate:
cxl-foo
=======
instead of:
cxl-foo(1)
==========
resulting in asciidoc(tor) warnings.
--- scripts/docsurgeon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/docsurgeon +1 -1
@@ -244,7 +244,7 @@ gen_cli() # Start template generation printf "%s\n" "$copyright_cli" > "$tmp" - gen_header "$name" >> "$tmp" + gen_header "$name($_arg_section)" >> "$tmp" gen_section_name "$name" >> "$tmp" gen_section_synopsis_1 "$name" >> "$tmp" gen_section "DESCRIPTION" >> "$tmp"
base-commit: 55f36387ee8a88c489863103347ae275b1bc9191
prerequisite-patch-id: 24c7dc0c646c21238e4741a9432739788c908de7
prerequisite-patch-id: 2f5ab7c9c5b30aa585956e8a43dd2ec4d92d6afb
prerequisite-patch-id: 6ffa6ce0ea258fec17fa6066e4ee437ffd26307c
prerequisite-patch-id: 98f586353f89820d0b0e294c165dbbd7306cdd40
prerequisite-patch-id: 83f078f0afe936dc6f0e172f59da14412981a030
Signature · 1 line
2.34.1
Quoted 7 lines · Vishal Verma
Document header generation for section 1 man pages (cxl-foo commands) was missing the section number in parenthesis, i.e. it would generate:
cxl-foo
=======
Quoted 7 lines
instead of:
cxl-foo(1)
==========resulting in asciidoc(tor) warnings.
What was the warning? Is a "Fixes:" tag appropriate?
Quoted 29 lines
Signed-off-by Vishal Verma <[email protected]>--- scripts/docsurgeon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/docsurgeon +1
-1@@ -244,7 +244,7 @@ gen_cli() # Start template generation printf "%s\n" "$copyright_cli" > "$tmp" - gen_header "$name" >> "$tmp" + gen_header "$name($_arg_section)" >> "$tmp" gen_section_name "$name" >> "$tmp" gen_section_synopsis_1 "$name" >> "$tmp" gen_section "DESCRIPTION" >> "$tmp"base-commit:
55f36387ee8a88c489863103347ae275b1bc9191
prerequisite-patch-id:24c7dc0c646c21238e4741a9432739788c908de7
prerequisite-patch-id:2f5ab7c9c5b30aa585956e8a43dd2ec4d92d6afb
prerequisite-patch-id:6ffa6ce0ea258fec17fa6066e4ee437ffd26307c
prerequisite-patch-id:98f586353f89820d0b0e294c165dbbd7306cdd40
prerequisite-patch-id:83f078f0afe936dc6f0e172f59da14412981a030--
2.34.1
Verma, Vishal L
maintainerQuoted 12 lines · Dan Williams
Quoted 10 lines · Vishal Verma
Document header generation for section 1 man pages (cxl-foo commands) was
missing the section number in parenthesis, i.e. it would generate:cxl-foo
=======instead of:
Quoted 7 lines
Quoted 5 lines
cxl-foo(1)
==========resulting in asciidoc(tor) warnings.
What was the warning? Is a "Fixes:" tag appropriate?
I don't think so, this was only for man pages generated by 'docsurgeon', of which cxl-create-region (WIP) will be the first. No existing man pages needed to be modified.
Quoted 31 lines
Quoted 30 lines
Signed-off-by Vishal Verma <[email protected]>---
scripts/docsurgeon | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)scripts/docsurgeon +0
-0@@ -244,7 +244,7 @@ gen_cli() # Start template generationprintf "%s\n" "$copyright_cli" > "$tmp" -
gen_header"$name" >> "$tmp"
+gen_header"$name($_arg_section)" >> "$tmp"gen_section_name"$name" >> "$tmp"gen_section_synopsis_1"$name" >> "$tmp"gen_section"DESCRIPTION" >> "$tmp"base-commit:
55f36387ee8a88c489863103347ae275b1bc9191
prerequisite-patch-id:24c7dc0c646c21238e4741a9432739788c908de7
prerequisite-patch-id:2f5ab7c9c5b30aa585956e8a43dd2ec4d92d6afb
prerequisite-patch-id:6ffa6ce0ea258fec17fa6066e4ee437ffd26307c
prerequisite-patch-id:98f586353f89820d0b0e294c165dbbd7306cdd40
prerequisite-patch-id:83f078f0afe936dc6f0e172f59da14412981a030--
2.34.1