Try to update the viewdoc script for 2.6.