Skip to content

Commit 9779ff9

Browse files
committed
Remove unnecessary code documentation update.
1 parent fc1d23f commit 9779ff9

File tree

2 files changed

+0
-49
lines changed

2 files changed

+0
-49
lines changed

PyFunceble/cli/entry_points/production.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,3 @@ def producer() -> None: # pylint: disable=too-many-statements
141141
print(PyFunceble.cli.storage.ERROR)
142142
print(traceback.format_exc())
143143
sys.exit(1)
144-
145-
print("Update documentation", end=" ")
146-
try:
147-
utility.update_documentation()
148-
print(PyFunceble.cli.storage.DONE)
149-
except: # pylint: disable=bare-except
150-
print(PyFunceble.cli.storage.ERROR)
151-
print(traceback.format_exc())
152-
sys.exit(1)

PyFunceble/cli/scripts/production.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)