DOC: simplify the code (Thx Stefan)
Merge pull request #960 from sciunto/doc_enhan

DOC: simplify the code (Thx Stefan)