Signed-off-by: Kefu Chai <kchai@redhat.com>
source_suffix = '.rst'
master_doc = 'index'
exclude_patterns = ['**/.#*', '**/*~', 'start/quick-common.rst']
+if tags.has('man'):
+ exclude_patterns += ['architecture.rst', 'glossary.rst', 'release*.rst',
+ 'api/*',
+ 'cephfs/*',
+ 'dev/*',
+ 'install/*',
+ 'mon/*',
+ 'rados/*',
+ 'radosgw/*',
+ 'rbd/*',
+ 'start/*']
+
pygments_style = 'sphinx'
html_theme = 'ceph'
add_custom_command(
OUTPUT ${sphinx_output}
- COMMAND ${SPHINX_BUILD} -b man -d ${CMAKE_BINARY_DIR}/doc/doctrees -c ${CMAKE_SOURCE_DIR}/man ${CMAKE_CURRENT_SOURCE_DIR} ${sphinx_output_dir}
+ COMMAND ${SPHINX_BUILD} -b man -t man -d ${CMAKE_BINARY_DIR}/doc/doctrees -c ${CMAKE_SOURCE_DIR}/man ${CMAKE_CURRENT_SOURCE_DIR} ${sphinx_output_dir}
DEPENDS ${sphinx_input})
add_custom_target(
# in a tree populated from dist tarball, the $(top_srcdir)/doc is not included
sphinx-build.stamp:
if [ -d $(top_srcdir)/doc/man ] ; then \
- ${SPHINX_BUILD} -b man -d doctrees -c $(top_srcdir)/man $(top_srcdir)/doc/man $(top_builddir)/man; \
+ ${SPHINX_BUILD} -b man -t man -d doctrees -c $(top_srcdir)/man $(top_srcdir)/doc/man $(top_builddir)/man; \
fi
clean-local::