Update generateDoc. Can use custom version.