docs: refactor update_rendercv_files.py

This commit is contained in:
Sina Atalay 2024-04-16 14:16:18 +03:00
parent 5ae62c3d2d
commit 7c934e0851
1 changed files with 10 additions and 10 deletions

View File

@ -182,17 +182,17 @@ def generate_entry_figures():
# create a temporary directory: # create a temporary directory:
temporary_directory_path = pathlib.Path(temporary_directory) temporary_directory_path = pathlib.Path(temporary_directory)
for theme in themes: for theme in themes:
for entry_type, entry in entries.items(): design_dictionary = {
design_dictionary = { "theme": theme,
"theme": theme, "disable_page_numbering": True,
"disable_page_numbering": True, "disable_last_updated_date": True,
"disable_last_updated_date": True, }
} if theme == "moderncv":
if theme == "moderncv": # moderncv theme does not support these options:
# moderncv theme does not support these options: del design_dictionary["disable_page_numbering"]
del design_dictionary["disable_page_numbering"] del design_dictionary["disable_last_updated_date"]
del design_dictionary["disable_last_updated_date"]
for entry_type, entry in entries.items():
# Create the data model with only one section and one entry # Create the data model with only one section and one entry
data_model = dm.RenderCVDataModel( data_model = dm.RenderCVDataModel(
**{ **{