mirror of https://github.com/eyhc1/rendercv.git
rename HTML output
This commit is contained in:
parent
ee6f92059e
commit
4abf367039
|
@ -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.
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue