correct typos

This commit is contained in:
Sina Atalay 2024-02-14 20:46:22 +01:00
parent e0bd41d272
commit f5c4e84952
3 changed files with 5 additions and 5 deletions

View File

@ -435,8 +435,8 @@ def cli_command_new(full_name: Annotated[str, typer.Argument(help="Your full nam
file_name = f"{full_name.replace(' ', '_')}_CV.yaml" file_name = f"{full_name.replace(' ', '_')}_CV.yaml"
file_path = pathlib.Path(file_name) file_path = pathlib.Path(file_name)
# Instead of getting the dictionary with data_model.model_dump() directy, we convert # Instead of getting the dictionary with data_model.model_dump() directly, we
# it to JSON and then to a dictionary. Because the YAML library we are using # convert it to JSON and then to a dictionary. Because the YAML library we are using
# sometimes has problems with the dictionary returned by model_dump(). # sometimes has problems with the dictionary returned by model_dump().
data_model_as_json = data_model.model_dump_json( data_model_as_json = data_model.model_dump_json(
exclude_none=True, by_alias=True, exclude={"cv": {"sections"}} exclude_none=True, by_alias=True, exclude={"cv": {"sections"}}

View File

@ -1212,9 +1212,9 @@ def get_a_sample_data_model(name: str = "John Doe") -> RenderCVDataModel:
sections=sections, sections=sections,
) )
desgin = ClassicThemeOptions(theme="classic", show_timespan_in=["Experience"]) design = ClassicThemeOptions(theme="classic", show_timespan_in=["Experience"])
return RenderCVDataModel(cv=cv, design=desgin) return RenderCVDataModel(cv=cv, design=design)
def generate_json_schema() -> dict: def generate_json_schema() -> dict:

View File

@ -385,7 +385,7 @@ def markdown_to_latex(markdown_string: str) -> str:
will return: will return:
`#!pytjon "This is a \\textbf{bold} text with a \\href{https://google.com}{\\textit{link}}."` `#!python "This is a \\textbf{bold} text with a \\href{https://google.com}{\\textit{link}}."`
Args: Args:
markdown_string (str): The markdown string to convert. markdown_string (str): The markdown string to convert.