docs: def document(self, document_tree, backend=None):
          """Create a :class:`DocumentTemplate` object based on the given
          document tree and this template configuration
  
          Args:
              document_tree (DocumentTree): tree of the document's contents
              backend: the backend to use when rendering the document
  
          """
          return self.template(document_tree, configuration=self,
                               backend=backend)