1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-25 14:06:08 -05:00

man: use more commonly used asciidoc file extension .adoc

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-07-30 17:23:46 +01:00
parent 5efb3e0448
commit c29e1a4c3d
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4
4 changed files with 10 additions and 4 deletions

View file

@ -2,12 +2,18 @@ mans = ['picom.1', 'picom-inspect.1', 'picom-trans.1']
if get_option('with_docs')
a2x = find_program('asciidoctor')
foreach m : mans
custom_target(m, output: [m], input: [m+'.asciidoc'],
custom_target(m, output: [m], input: [m+'.adoc'],
command: [a2x, '-a',
'picom-version='+version,
'--backend', 'manpage', '@INPUT@', '-D',
meson.current_build_dir()],
install: true,
install_dir: join_paths(get_option('mandir'), 'man1'))
custom_target(m+'.html', output: [m+'.html'], input: [m+'.adoc'],
command: [a2x, '-a',
'picom-version='+version,
'--backend', 'html', '@INPUT@', '-D',
meson.current_build_dir()],
install_dir: get_option('datadir') / 'doc' / 'picom')
endforeach
endif

View file

@ -37,4 +37,4 @@ Homepage: <https://github.com/yshui/picom>
SEE ALSO
--------
*xcompmgr*(1), xref:picom.1.asciidoc[*picom*(1)]
*xcompmgr*(1), xref:picom.1.adoc[*picom*(1)]

View file

@ -111,4 +111,4 @@ Please submit bug reports to <https://github.com/yshui/picom>.
SEE ALSO
--------
xref:picom.1.asciidoc[*picom*(1)], *xprop*(1), *xwininfo*(1)
xref:picom.1.adoc[*picom*(1)], *xprop*(1), *xwininfo*(1)

View file

@ -559,4 +559,4 @@ Homepage: <https://github.com/yshui/picom>
SEE ALSO
--------
*xcompmgr*(1), xref:picom-inspect.1.asciidoc[*picom-inspect*(1)], xref:picom-trans.1.asciidoc[*picom-trans*(1)]
*xcompmgr*(1), xref:picom-inspect.1.adoc[*picom-inspect*(1)], xref:picom-trans.1.adoc[*picom-trans*(1)]