deployDoc function

Deploy a single document