From 4306e87e1b686444b294ba4ff0c8fd42c22f4be1 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 18 Feb 2024 17:12:35 +0100 Subject: [PATCH] improve renderer --- rendercv/renderer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rendercv/renderer.py b/rendercv/renderer.py index f1cb69a..b47b5f4 100644 --- a/rendercv/renderer.py +++ b/rendercv/renderer.py @@ -860,7 +860,8 @@ def copy_theme_files_to_output_directory( ): """Copy the auxiliary files (all the files that don't end with `.j2.tex` and `.py`) of the theme to the output directory. For example, the "classic" theme has custom - fonts, and the $\\LaTeX$ needs it. + fonts, and the $\\LaTeX$ needs it. If the theme is a custom theme, then it will be + copied from the current working directory. Args: theme_name (str): The name of the theme. @@ -988,7 +989,7 @@ def markdown_to_html(markdown_file_path: pathlib.Path) -> pathlib.Path: raise FileNotFoundError(f"The file {markdown_file_path} doesn't exist!") html_file_path = ( - markdown_file_path.parent / f"{markdown_file_path.name}_PASTETOGRAMMARLY.html" + markdown_file_path.parent / f"{markdown_file_path.stem}_PASTETOGRAMMARLY.html" ) # Convert the markdown file to HTML: