Exclude doc builds if with_doc 0.