meson: Streamline the way we detect when to build documentation