docs/build_docs.py
)
            if completed_proc.returncode != 0:
                spelling_errors.append(
                    SpellingError(
                        file_path=None,
                        line_no=None,
                        spelling=None,
                        suggestion=None,
                        context_line=None,
                        message=(
                            f"Sphinx spellcheck returned non-zero exit status: {completed_proc.returncode}."
                        ),
                    )
                )
                warning_text = ""
                for filepath in glob(f"{tmp_dir}/**/*.spelling", recursive=True):
                    with open(filepath) as speeling_file:
                        warning_text += speeling_file.read()
                spelling_errors.extend(parse_spelling_warnings(warning_text, self._src_dir))
        return spelling_errors
    def build_sphinx_docs(self) -> List[DocBuildError]:
        """Build Sphinx documentation"""
        build_errors = []
        with NamedTemporaryFile() as tmp_file, with_group(f"Building docs: {self.package_name}"):
            build_cmd = [
                "sphinx-build",
                "-T",  
                "--color",  
                "-b",  
                "html",