transforming docs to rst