mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
doc: sync with master branch
Pick relevant doc updates. doc: fix DoxygenLayout.xml for doxygen 1.10 doc: add reference docs + index for config and env variables doc: add some more coverage doc: move config man pages under config/ doc: add sections to index, clarify discussion of properties doc: disable dot graphs in API docs again doc: some updates doc: fix up example dependencies in meson
This commit is contained in:
parent
876c3f43ab
commit
030768ab8e
20 changed files with 2600 additions and 185 deletions
|
|
@ -15,6 +15,7 @@ doxygen_env.set('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/pipewire/pi
|
|||
doxygen_env.set('PIPEWIRE_CONFIG_DIR', pipewire_configdir)
|
||||
doxygen_env.set('PIPEWIRE_CONFDATADIR', pipewire_confdatadir)
|
||||
doxygen_env.set('SPA_PLUGINDIR', spa_plugindir)
|
||||
doxygen_env.set('BUILD_DIR', meson.current_build_dir())
|
||||
|
||||
dot_found = find_program('dot', required: false).found()
|
||||
summary({'dot (used with doxygen)': dot_found}, bool_yn: true, section: 'Optional programs')
|
||||
|
|
@ -64,12 +65,16 @@ extra_docs = [
|
|||
]
|
||||
|
||||
manpage_docs = [
|
||||
'dox/programs/libpipewire-modules.7.md',
|
||||
'dox/programs/pipewire-pulse-modules.7.md',
|
||||
'dox/config/pipewire-pulse.conf.5.md',
|
||||
'dox/config/pipewire.conf.5.md',
|
||||
'dox/config/pipewire-client.conf.5.md',
|
||||
'dox/config/pipewire-jack.conf.5.md',
|
||||
'dox/config/pipewire-devices.7.md',
|
||||
'dox/config/pipewire-filter-chain.conf.5.md',
|
||||
'dox/config/pipewire-pulse-modules.7.md',
|
||||
'dox/config/libpipewire-modules.7.md',
|
||||
'dox/programs/pipewire-pulse.1.md',
|
||||
'dox/programs/pipewire-pulse.conf.5.md',
|
||||
'dox/programs/pipewire.1.md',
|
||||
'dox/programs/pipewire.conf.5.md',
|
||||
'dox/programs/pw-cat.1.md',
|
||||
'dox/programs/pw-cli.1.md',
|
||||
'dox/programs/pw-config.1.md',
|
||||
|
|
@ -145,11 +150,17 @@ example_files = [
|
|||
'tutorial5.c',
|
||||
'tutorial6.c',
|
||||
]
|
||||
example_dep_files = []
|
||||
foreach h : example_files
|
||||
example_dep_files += ['examples/' + h]
|
||||
endforeach
|
||||
foreach h : examples
|
||||
example_files += [h + '.c']
|
||||
example_dep_files += ['../src/examples/' + h + '.c']
|
||||
endforeach
|
||||
foreach h : spa_examples
|
||||
example_files += ['spa/examples/' + h + '.c']
|
||||
example_dep_files += ['../spa/examples/' + h + '.c']
|
||||
endforeach
|
||||
|
||||
example_doxygen = []
|
||||
|
|
@ -196,6 +207,7 @@ doxygen_env.set('PIPEWIRE_PULSE_MODULES', '<ul><li>' + '</li><li>'.join(pulse_mo
|
|||
doxygen_layout = meson.project_source_root() / 'doc' / 'DoxygenLayout.xml'
|
||||
doxygen_filter_c = meson.project_source_root() / 'doc' / 'input-filter.py'
|
||||
doxygen_filter_h = meson.project_source_root() / 'doc' / 'input-filter-h.sh'
|
||||
doxygen_filter_md = meson.project_source_root() / 'doc' / 'input-filter-md.py'
|
||||
|
||||
doxyfile_conf.set('inputs', ' '.join(inputs + input_dirs))
|
||||
doxyfile_conf.set('cssfiles', ' '.join(cssfiles))
|
||||
|
|
@ -203,6 +215,7 @@ doxyfile_conf.set('layout', doxygen_layout)
|
|||
doxyfile_conf.set('path_prefixes', ' '.join(path_prefixes))
|
||||
doxyfile_conf.set('c_input_filter', doxygen_filter_c)
|
||||
doxyfile_conf.set('h_input_filter', doxygen_filter_h)
|
||||
doxyfile_conf.set('md_input_filter', doxygen_filter_md)
|
||||
|
||||
doxyfile = configure_file(input: 'Doxyfile.in',
|
||||
output: 'Doxyfile',
|
||||
|
|
@ -213,8 +226,16 @@ if docdir == ''
|
|||
docdir = pipewire_datadir / 'doc' / meson.project_name()
|
||||
endif
|
||||
|
||||
index_json = custom_target('index.json',
|
||||
command: [ doxygen_filter_md, '--index', '@INPUT@' ],
|
||||
input: extra_docs + manpage_docs,
|
||||
output: 'index.json',
|
||||
env: doxygen_env
|
||||
)
|
||||
|
||||
html_target = custom_target('pipewire-docs',
|
||||
input: [ doxyfile, doxygen_layout, examples_dox, doxygen_filter_c, doxygen_filter_h ] + inputs + cssfiles,
|
||||
input: [ doxyfile, doxygen_layout, example_dep_files, examples_dox,
|
||||
doxygen_filter_c, doxygen_filter_h, index_json ] + inputs + cssfiles,
|
||||
output: [ 'html' ],
|
||||
command: [ doxygen, doxyfile ],
|
||||
env: doxygen_env,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue