Only generate docs task when packages are specified.