updated script to generate docs for 4.0.0