* gen-docs: automatically update markdown file * also strip whitespace * do not add extra newline * update TOC