From 702830465ac87867fa4051a9be5036ef0b795c13 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 31 Aug 2023 23:02:14 -0400 Subject: Move man pages to their own directory --- doc/meson.build | 51 ++++++--------------------------------------------- 1 file changed, 6 insertions(+), 45 deletions(-) (limited to 'doc/meson.build') diff --git a/doc/meson.build b/doc/meson.build index b492483d..7180ec28 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -3,6 +3,12 @@ docdir = get_option('datadir') / 'doc' +############# +# Man pages # +############# + +subdir('man') + ############# # Reference # ############# @@ -65,48 +71,3 @@ if build_docs endif endforeach endif - -############# -# Man Pages # -############# - -mandoc_css = files('mandoc.css') - -if get_option('lint') - stylelint = find_program('stylelint', required: false) - if stylelint.found() - test('stylelint', stylelint, args: [mandoc_css], suite: 'data') - endif -endif - -mandoc = find_program('mandoc', required: false) -if mandoc.found() - configure_file(input: mandoc_css, output: '@PLAINNAME@', copy: true) - - serdi_html = custom_target( - 'serdi.html', - build_by_default: true, - capture: true, - command: [ - mandoc, - '-Kutf-8', - '-Ostyle=mandoc.css,man=%N.html', - '-Thtml', - '-Wwarning,stop', - '@INPUT@', - ], - input: files('serdi.1'), - output: 'serdi.html', - ) -endif - -if not meson.is_subproject() - summary( - { - 'HTML man pages': mandoc.found(), - 'API documentation': build_docs, - }, - bool_yn: true, - section: 'Components', - ) -endif -- cgit v1.2.1