@@ -338,46 +338,6 @@ def format_file(file: str, isortconfig: isort.settings.Config) -> None:
338338
339339 format_file (os .path .join (root , file ), isort_config )
340340
341- @staticmethod
342- def update_documentation () -> "ProductionPrep" :
343- """
344- Updates the code documentation.
345-
346- :raise RuntimeError:
347- When one of the wanted directory is not found.
348- """
349-
350- PyFunceble .facility .Logger .info (
351- "Started to update and generate the documentation." ,
352- )
353-
354- docs_dir_helper = DirectoryHelper ("docs" )
355- source_code_dir_helper = DirectoryHelper ("PyFunceble" )
356-
357- if not docs_dir_helper .exists ():
358- raise RuntimeError (f"{ docs_dir_helper .realpath !r} not found." )
359-
360- if not source_code_dir_helper .exists ():
361- raise RuntimeError (f"{ source_code_dir_helper .realpath !r} not found." )
362-
363- header = "Code Documentation"
364- source_code_destination = os .path .join (docs_dir_helper .realpath , "code" )
365-
366- CommandHelper (
367- f"sphinx-apidoc -d 5 -f -H { header !r} -o "
368- f"{ source_code_destination !r} { source_code_dir_helper .realpath } "
369- ).execute (raise_on_error = True )
370-
371- docs_destination = os .path .join (docs_dir_helper .realpath , "_build" , "html" )
372-
373- CommandHelper (
374- f"sphinx-build -a -Q { docs_dir_helper .realpath !r} { docs_destination !r} "
375- ).execute (raise_on_error = False )
376-
377- PyFunceble .facility .Logger .info (
378- "Finished to update and generate the documentation." ,
379- )
380-
381341 def update_code_urls (self ) -> "ProductionPrep" :
382342 """
383343 Updates all URL in the source code.
0 commit comments