langchain/document_loaders/confluence.py/ConfluenceLoader/process_pages
class ConfluenceLoader:    def process_pages(
        self,
        pages: List[dict],
        include_restricted_content: bool,
        include_attachments: bool,
        include_comments: bool,
    ) -> List[Document]:
        """Process a list of pages into a list of documents."""
        docs = []
        for page in pages:
            if not include_restricted_content and not self.is_public_page(page):
                continue
            doc = self.process_page(page, include_attachments, include_comments)
            docs.append(doc)

        return docs