Skip to content

Commit

Permalink
man: use more commonly used asciidoc file extension .adoc
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Jul 30, 2024
1 parent f5c3c50 commit a2e357a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion man/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion man/picom-inspect.1.asciidoc → man/picom-inspect.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
2 changes: 1 addition & 1 deletion man/picom-trans.1.asciidoc → man/picom-trans.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion man/picom.1.asciidoc → man/picom.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

0 comments on commit a2e357a

Please sign in to comment.