create a doc, and move doc to the dir