/doc/doxyxml
/doc/html
/doc/kresd.8
+/doc/texinfo
/install-sh
/libkres.pc
/libtool
"Doxygen_", "``documentation``", "Generating API documentation."
"Sphinx_ and sphinx_rtd_theme_", "``documentation``", "Building this
HTML/PDF documentation."
+ "Texinfo_", "``documentation``", "Generating this documentation in Info
+ format."
"breathe_", "``documentation``", "Exposing Doxygen API doc to Sphinx."
"libsystemd_", "``daemon``", "Systemd watchdog support."
"libprotobuf_ 3.0+", "``modules/dnstap``", "Protocol Buffers support for
.. _breathe: https://github.com/michaeljones/breathe
.. _Sphinx: http://sphinx-doc.org/
.. _sphinx_rtd_theme: https://pypi.python.org/pypi/sphinx_rtd_theme
+.. _Texinfo: https://www.gnu.org/software/texinfo/
.. _pkg-config: https://www.freedesktop.org/wiki/Software/pkg-config/
.. _libknot: https://gitlab.nic.cz/knot/knot-dns
.. _cmocka: https://cmocka.org/
('index', 'libkres', u'libkres documentation',
[u'CZ.NIC Labs'], 1)
]
+
+# -- Options for Texinfo output ------------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+# dir menu entry, description, category)
+texinfo_documents = [
+ ('index', 'knot-resolver', u'Knot Resolver', u'CZ.NIC Labs',
+ 'Knot Resolver', 'Caching DNS resolver.', 'Network services'),
+]
install_man(man_kresd)
-# html documentation
+# html and info documentation
if get_option('doc') == 'enabled'
message('--- doc dependencies ---')
doxygen = find_program('doxygen')
if not sphinx_build.found()
sphinx_build = find_program('sphinx-build')
endif
+ makeinfo = find_program('makeinfo', required: false)
# python dependencies: breathe, sphinx_rtd_theme
python_breathe = run_command('python3', '-c', 'import breathe')
join_paths(meson.current_source_dir(), 'html'),
install_dir: doc_dir,
)
+
+ if makeinfo.found()
+ # install info docs
+ install_subdir(
+ join_paths(meson.current_source_dir(), 'texinfo'),
+ strip_directory: true,
+ exclude_files: ['Makefile', 'knot-resolver.texi'],
+ install_dir: info_dir,
+ )
+ endif
endif
make_doc = find_program('../scripts/make-doc.sh')
prefix = get_option('prefix')
data_dir = join_paths(prefix, get_option('datadir'), 'knot-resolver')
doc_dir = join_paths(prefix, get_option('datadir'), 'doc', 'knot-resolver')
+info_dir = join_paths(prefix, get_option('datadir'), 'info')
examples_dir = join_paths(doc_dir, 'examples')
etc_dir = join_paths(prefix, get_option('sysconfdir'), 'knot-resolver')
lib_dir = join_paths(prefix, get_option('libdir'), 'knot-resolver')
rm -rf doc/html
${SPHINX} ${@} -b html -d doc/.doctrees doc doc/html
+
+if command -v makeinfo &>/dev/null; then
+ rm -rf doc/texinfo
+ ${SPHINX} ${@} -b texinfo -d doc/.doctrees doc doc/texinfo && \
+ make -C doc/texinfo info
+fi