rm -f $TOPDIR/src/pybind/rbd/rados.pxd $TOPDIR/src/pybind/cephfs/rados.pxd
-$vdir/bin/sphinx-build -a -n -b dirhtml -d doctrees $TOPDIR/doc $TOPDIR/build-doc/output/html
-$vdir/bin/sphinx-build -a -b man -d doctrees $TOPDIR/doc $TOPDIR/build-doc/output/man
+if [ -z "$@" ]; then
+ sphinx_targets="html man"
+else
+ sphinx_targets=$@
+fi
+for target in $sphinx_targets; do
+ builder=$target
+ case $target in
+ html)
+ builder=dirhtml
+ ;;
+ man)
+ extra_opt="-t man"
+ ;;
+ esac
+ $vdir/bin/sphinx-build -a -b $builder $extra_opt -d doctrees \
+ $TOPDIR/doc $TOPDIR/build-doc/output/$target
+done
#
# Build and install JavaDocs
cd ceph
-To build the documentation on Debian/Ubuntu, execute::
+To build the documentation on Debian/Ubuntu, Fedora, or CentOS/RHEL, execute::
admin/build-doc
-To build the documentation on Fedora, execute::
+To scan for the reachablity of external links, execute::
- admin/build-doc
-
-To build the documentation on CentOS/RHEL, execute::
-
- admin/build-doc
+ admin/build-doc linkcheck
Executing ``admin/build-doc`` will create a ``build-doc`` directory under ``ceph``.
You may need to create a directory under ``ceph/build-doc`` for output of Javadoc