From f8baec9a3ba78c7c8874f20bcf2c5d52e54f921f Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Tue, 25 Mar 2025 09:24:00 +0100 Subject: [PATCH 1/2] fix: update docstring and logging --- src/ansys_sphinx_theme/__init__.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ansys_sphinx_theme/__init__.py b/src/ansys_sphinx_theme/__init__.py index 0c84348c7..1f746dd3b 100644 --- a/src/ansys_sphinx_theme/__init__.py +++ b/src/ansys_sphinx_theme/__init__.py @@ -419,7 +419,15 @@ def convert_pdf_to_png(pdf_path: pathlib.Path, output_dir: pathlib.Path, output_ def run_quarto_command(command, cwd): - """Run quarto command and logs its output.""" + """Run quarto command and logs its output. + + Parameters + ---------- + command : list + List of command arguments. + cwd : str + Current working directory. + """ command = ["quarto"] + command try: result = subprocess.run(command, cwd=cwd, check=True, capture_output=True, text=True) @@ -427,7 +435,7 @@ def run_quarto_command(command, cwd): logger.info(result.stdout) if result.stderr: - logger.info(result.stderr) + logger.error(result.stderr) except subprocess.CalledProcessError as e: raise RuntimeError(f"Failed to run the command: {e}") From 4f43301f9caaa49605e3b513353414f056f0d533 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 25 Mar 2025 08:25:43 +0000 Subject: [PATCH 2/2] chore: adding changelog file 655.fixed.md [dependabot-skip] --- doc/changelog.d/655.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/655.fixed.md diff --git a/doc/changelog.d/655.fixed.md b/doc/changelog.d/655.fixed.md new file mode 100644 index 000000000..e72a8d03d --- /dev/null +++ b/doc/changelog.d/655.fixed.md @@ -0,0 +1 @@ +change logging info to error in quarto build \ No newline at end of file