Fix generate_docs task.
Merge pull request #1269 from rjackson/fix-generate_docs-task

Fix generate_docs task.