doc: include manpages in html docs

Include manpages as raw text in html docs.  Simple and readable
enough...
This commit is contained in:
Pauli Virtanen 2022-01-20 21:06:54 +02:00 committed by Wim Taymans
parent 695f8dfdd9
commit 88e744a06f
16 changed files with 56 additions and 36 deletions

View file

@ -479,22 +479,25 @@ if alsa_dep.found()
subdir('pipewire-alsa/tests')
endif
doxygen = find_program('doxygen', required : get_option('docs'))
if doxygen.found()
subdir('doc')
endif
generate_manpages = false
if not get_option('man').disabled()
rst2man = find_program('rst2man', required: false)
if not rst2man.found()
rst2man = find_program('rst2man.py', required: get_option('man'))
endif
summary({'Manpage generation': rst2man.found()}, bool_yn: true)
if rst2man.found()
subdir('man')
generate_manpages = true
endif
endif
summary({'Manpage generation': generate_manpages}, bool_yn: true)
subdir('man')
doxygen = find_program('doxygen', required : get_option('docs'))
if doxygen.found()
subdir('doc')
endif
setenv = find_program('pw-uninstalled.sh')
run_target('pw-uninstalled',
command : [setenv,