add filter_repositories() to doc and source build files