move gendoc into matrix-doc project