Add document and ignore patterns