From c29e1a4c3d8a9c4d767f6c6a3b9768aee4f809d8 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Tue, 30 Jul 2024 17:23:46 +0100 Subject: [PATCH] man: use more commonly used asciidoc file extension .adoc Signed-off-by: Yuxuan Shui --- man/meson.build | 8 +++++++- man/{picom-inspect.1.asciidoc => picom-inspect.1.adoc} | 2 +- man/{picom-trans.1.asciidoc => picom-trans.1.adoc} | 2 +- man/{picom.1.asciidoc => picom.1.adoc} | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) rename man/{picom-inspect.1.asciidoc => picom-inspect.1.adoc} (95%) rename man/{picom-trans.1.asciidoc => picom-trans.1.adoc} (97%) rename man/{picom.1.asciidoc => picom.1.adoc} (99%) diff --git a/man/meson.build b/man/meson.build index aa71da8f..a14e7608 100644 --- a/man/meson.build +++ b/man/meson.build @@ -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 diff --git a/man/picom-inspect.1.asciidoc b/man/picom-inspect.1.adoc similarity index 95% rename from man/picom-inspect.1.asciidoc rename to man/picom-inspect.1.adoc index 0bf8461c..f27fa840 100644 --- a/man/picom-inspect.1.asciidoc +++ b/man/picom-inspect.1.adoc @@ -37,4 +37,4 @@ Homepage: SEE ALSO -------- -*xcompmgr*(1), xref:picom.1.asciidoc[*picom*(1)] +*xcompmgr*(1), xref:picom.1.adoc[*picom*(1)] diff --git a/man/picom-trans.1.asciidoc b/man/picom-trans.1.adoc similarity index 97% rename from man/picom-trans.1.asciidoc rename to man/picom-trans.1.adoc index c756d6ef..a59af9d8 100644 --- a/man/picom-trans.1.asciidoc +++ b/man/picom-trans.1.adoc @@ -111,4 +111,4 @@ Please submit bug reports to . SEE ALSO -------- -xref:picom.1.asciidoc[*picom*(1)], *xprop*(1), *xwininfo*(1) +xref:picom.1.adoc[*picom*(1)], *xprop*(1), *xwininfo*(1) diff --git a/man/picom.1.asciidoc b/man/picom.1.adoc similarity index 99% rename from man/picom.1.asciidoc rename to man/picom.1.adoc index aafb79d6..3ae62dda 100644 --- a/man/picom.1.asciidoc +++ b/man/picom.1.adoc @@ -559,4 +559,4 @@ Homepage: 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)]