def walk(self, parent=None):
if parent is None:<EOL><INDENT>yield self.root<EOL>parent = self.root<EOL><DEDENT>for cpage_name in parent.subpages:<EOL><INDENT>cpage = self.__all_pages[cpage_name]<EOL>yield cpage<EOL>for page in self.walk(parent=cpage):<EOL><INDENT>yield page<EOL><DEDENT><DEDENT>
Generator that yields pages in infix order

        Args:
            parent: hotdoc.core.tree.Page, optional, the page to start
                traversal from. If None, defaults to the root of the tree.

        Yields:
            hotdoc.core.tree.Page: the next page