From 7c934e08513ffda755fc0bc43984177da9c00ff1 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Tue, 16 Apr 2024 14:16:18 +0300 Subject: [PATCH] docs: refactor update_rendercv_files.py --- docs/update_rendercv_files.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/update_rendercv_files.py b/docs/update_rendercv_files.py index e785fbe..3addf41 100644 --- a/docs/update_rendercv_files.py +++ b/docs/update_rendercv_files.py @@ -182,17 +182,17 @@ def generate_entry_figures(): # create a temporary directory: temporary_directory_path = pathlib.Path(temporary_directory) for theme in themes: + design_dictionary = { + "theme": theme, + "disable_page_numbering": True, + "disable_last_updated_date": True, + } + if theme == "moderncv": + # moderncv theme does not support these options: + del design_dictionary["disable_page_numbering"] + del design_dictionary["disable_last_updated_date"] + for entry_type, entry in entries.items(): - design_dictionary = { - "theme": theme, - "disable_page_numbering": True, - "disable_last_updated_date": True, - } - if theme == "moderncv": - # moderncv theme does not support these options: - del design_dictionary["disable_page_numbering"] - del design_dictionary["disable_last_updated_date"] - # Create the data model with only one section and one entry data_model = dm.RenderCVDataModel( **{