diff --git a/doc/c/Doxyfile.in b/doc/c/Doxyfile.in index 0824002..17af796 100644 --- a/doc/c/Doxyfile.in +++ b/doc/c/Doxyfile.in @@ -21,7 +21,8 @@ SHOW_FILES = NO MACRO_EXPANSION = YES PREDEFINED = SRATOM_API +RECURSIVE = YES STRIP_FROM_PATH = @SRATOM_SRCDIR@ -INPUT = @SRATOM_HEADERS@ +INPUT = @SRATOM_SRCDIR@/include -OUTPUT_DIRECTORY = doc/c +OUTPUT_DIRECTORY = @DOX_OUTPUT@ diff --git a/doc/c/api/meson.build b/doc/c/api/meson.build index 8deb5fb..27faf4d 100644 --- a/doc/c/api/meson.build +++ b/doc/c/api/meson.build @@ -1,5 +1,5 @@ c_sratom_rst = custom_target( - 'C API ReST Documentation', - command: [dox_to_sphinx, '-f', '@INPUT0@', 'doc/c/api'], + 'Sratom C API ReST Documentation', + command: [dox_to_sphinx, '-f', '@INPUT0@', meson.current_build_dir()], input: [c_index_xml] + c_rst_files, output: 'sratom.rst') diff --git a/doc/c/meson.build b/doc/c/meson.build index 2de95b7..f02851e 100644 --- a/doc/c/meson.build +++ b/doc/c/meson.build @@ -20,8 +20,10 @@ subdir('xml') subdir('api') docs = custom_target( - 'C API Documentation (singlehtml)', - command: [sphinx_build, '-M', 'singlehtml', 'doc/c/', 'doc/c/', '-E', '-q', '-t', 'singlehtml'], + 'singlehtml documentation for sratom', + command: [sphinx_build, '-M', 'singlehtml', + meson.current_build_dir(), meson.current_build_dir(), + '-E', '-q', '-t', 'singlehtml'], input: [c_rst_files, c_sratom_rst, c_index_xml], output: 'singlehtml', build_by_default: true, @@ -29,8 +31,10 @@ docs = custom_target( install_dir: docdir / 'sratom-0') docs = custom_target( - 'C API Documentation (html)', - command: [sphinx_build, '-M', 'html', 'doc/c/', 'doc/c/', '-E', '-q', '-t', 'html'], + 'html documentation for sratom', + command: [sphinx_build, '-M', 'html', + meson.current_build_dir(), meson.current_build_dir(), + '-E', '-q', '-t', 'html'], input: [c_rst_files, c_sratom_rst, c_index_xml], output: 'html', build_by_default: true, diff --git a/doc/c/xml/meson.build b/doc/c/xml/meson.build index f50ad17..27696ed 100644 --- a/doc/c/xml/meson.build +++ b/doc/c/xml/meson.build @@ -6,8 +6,8 @@ foreach h : c_headers endforeach config = configuration_data() -config.set('SRATOM_HEADERS', ' '.join(c_doxygen_input)) config.set('SRATOM_SRCDIR', sratom_src_root) +config.set('DOX_OUTPUT', meson.current_build_dir() / '..') c_doxyfile = configure_file(configuration: config, input: '../Doxyfile.in',