diff --git a/docs/user_guide/index.md b/docs/user_guide/index.md index b506961..6ccc55c 100644 --- a/docs/user_guide/index.md +++ b/docs/user_guide/index.md @@ -73,7 +73,7 @@ This command will generate a directory called `rendercv_output`, which contains - $\LaTeX$ source code of the PDF file, `Your_Name_CV.tex`. - PNG files for each page of the PDF file. - The CV in Markdown format, `Your_Name_CV.md`. -- An HTML file from the Markdown file, `Your_Name_CV_PASTETOGRAMMARLY.html`. +- An HTML file from the Markdown file, `Your_Name_CV.html`. This file is generated so that it can be opened in a browser and pasted into Grammarly or similar tools for spell and grammar checking. diff --git a/rendercv/renderer.py b/rendercv/renderer.py index 62f1f62..20e4950 100644 --- a/rendercv/renderer.py +++ b/rendercv/renderer.py @@ -1082,7 +1082,7 @@ def markdown_to_html(markdown_file_path: pathlib.Path) -> pathlib.Path: # Write html into a file: html_file_path = ( - markdown_file_path.parent / f"{markdown_file_path.stem}_OPENINBROWSER_AND.html" + markdown_file_path.parent / f"{markdown_file_path.stem}.html" ) html_file_path.write_text(html, encoding="utf-8") diff --git a/tests/test_cli.py b/tests/test_cli.py index 36d3407..ca2ee23 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -255,7 +255,7 @@ def test_render_command(tmp_path, input_file_path): pdf_file_path = output_folder_path / "John_Doe_CV.pdf" latex_file_path = output_folder_path / "John_Doe_CV.tex" markdown_file_path = output_folder_path / "John_Doe_CV.md" - html_file_path = output_folder_path / "John_Doe_CV_PASTETOGRAMMARLY.html" + html_file_path = output_folder_path / "John_Doe_CV.html" png_file_path = output_folder_path / "John_Doe_CV_1.png" assert output_folder_path.exists() @@ -283,7 +283,7 @@ def test_render_command_with_relative_input_file_path(tmp_path, input_file_path) pdf_file_path = output_folder_path / "John_Doe_CV.pdf" latex_file_path = output_folder_path / "John_Doe_CV.tex" markdown_file_path = output_folder_path / "John_Doe_CV.md" - html_file_path = output_folder_path / "John_Doe_CV_PASTETOGRAMMARLY.html" + html_file_path = output_folder_path / "John_Doe_CV.html" png_file_path = output_folder_path / "John_Doe_CV_1.png" assert output_folder_path.exists() @@ -365,7 +365,7 @@ def test_render_command_with_custom_png_path_multiple_pages(tmp_path): ("option", "file_name"), [ ("--dont-generate-markdown", "John_Doe_CV.md"), - ("--dont-generate-html", "John_Doe_CV_PASTETOGRAMMARLY.html"), + ("--dont-generate-html", "John_Doe_CV.html"), ("--dont-generate-png", "John_Doe_CV_1.png"), ], ) @@ -532,7 +532,7 @@ def test_create_theme_command(tmp_path, input_file_path, based_on): pdf_file_path = output_folder_path / "John_Doe_CV.pdf" latex_file_path = output_folder_path / "John_Doe_CV.tex" markdown_file_path = output_folder_path / "John_Doe_CV.md" - html_file_path = output_folder_path / "John_Doe_CV_PASTETOGRAMMARLY.html" + html_file_path = output_folder_path / "John_Doe_CV.html" png_file_path = output_folder_path / "John_Doe_CV_1.png" assert output_folder_path.exists() diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 1dfe4b5..e70e41a 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -644,7 +644,7 @@ def test_markdown_to_html( reference_name = ( f"{theme_name}_{folder_name_dictionary[curriculum_vitae_data_model]}" ) - output_file_name = f"{reference_name}_PASTETOGRAMMARLY.html" + output_file_name = f"{reference_name}.html" reference_file_name = f"{reference_name}.html" def markdown_to_html(output_directory_path, reference_file_or_directory_path):