Fix script/update_doc.rb

It was reseting the changes generated by yard doc
Merge pull request #2565 from pitr-ch/quick/update-doc-fix

Fix script/update_doc.rb