conditionalize building docs
Make it possible to disable building the documentation subpackage. This
makes it easier to build this package on platforms where not all the doc
dependencies are available. For example, CentOS 9 does not have a
"python3-docs" subpackage.