Fix offline doc build and test when you don't have a internet connection