Fix doc generation.
Merge pull request #1838 from nouiz/fix_doc

Fix doc generation.