From c16dc9eefb028bd28e699e6a225d9782626743c5 Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Tue, 26 Sep 2023 22:28:12 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('9ce16967-b74a-44f1-9266-16c5ef12843c') --- doc/make.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/doc/make.py b/doc/make.py index 23b18d69acc04..878781c18a668 100755 --- a/doc/make.py +++ b/doc/make.py @@ -123,14 +123,14 @@ def _sphinx_build(self, kind: str): Parameters ---------- - kind : {'html', 'latex', 'linkcheck'} + kind : {'html', 'latex'} Examples -------- >>> DocBuilder(num_jobs=4)._sphinx_build('html') """ - if kind not in ("html", "latex", "linkcheck"): - raise ValueError(f"kind must be html, latex or linkcheck, not {kind}") + if kind not in ("html", "latex"): + raise ValueError(f"kind must be html or latex, not {kind}") cmd = ["sphinx-build", "-b", kind] if self.num_jobs: @@ -288,12 +288,6 @@ def zip_html(self): os.chdir(dirname) self._run_os("zip", zip_fname, "-r", "-q", *fnames) - def linkcheck(self): - """ - Check for broken links in the documentation. - """ - return self._sphinx_build("linkcheck") - def main(): cmds = [method for method in dir(DocBuilder) if not method.startswith("_")] @@ -379,4 +373,4 @@ def main(): if __name__ == "__main__": - sys.exit(main()) + sys.exit(main()) \ No newline at end of file