Generate function docs from syntax map