How to create a new document template

TODO: describe how to create a new document, how to save it and view revision history as well as how to publish.