mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
Comment out locale part in sample content
This commit is contained in:
@@ -4910,8 +4910,8 @@ endobj
|
||||
<<
|
||||
/Type /Annot
|
||||
/Subtype /Link
|
||||
/Rect [56.06929 397.4389 149.3393 410.0389]
|
||||
/Border [0 0 0]
|
||||
/Rect [56.06929 397.4389 149.3393 410.0389]
|
||||
/Border [0 0 0]
|
||||
/A <<
|
||||
/Type /Action
|
||||
/S /URI
|
||||
@@ -4922,7 +4922,7 @@ endobj
|
||||
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
||||
>>
|
||||
endobj
|
||||
|
||||
|
||||
413 0 obj
|
||||
<<
|
||||
/Type /Page
|
||||
@@ -5372,7 +5372,7 @@ trailer
|
||||
0000029312 00000 n
|
||||
0000029396 00000 n
|
||||
0000029485 00000 n
|
||||
0000029576 00000 n
|
||||
0000029576 00000 n
|
||||
0000029665 00000 n
|
||||
0000029749 00000 n
|
||||
0000029838 00000 n
|
||||
|
||||
@@ -318,40 +318,40 @@ design:
|
||||
# date_and_location_column: DATE
|
||||
locale:
|
||||
language: english
|
||||
last_updated: Last updated in
|
||||
month: month
|
||||
months: months
|
||||
year: year
|
||||
years: years
|
||||
present: present
|
||||
month_abbreviations:
|
||||
- Jan
|
||||
- Feb
|
||||
- Mar
|
||||
- Apr
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- Aug
|
||||
- Sept
|
||||
- Oct
|
||||
- Nov
|
||||
- Dec
|
||||
month_names:
|
||||
- January
|
||||
- February
|
||||
- March
|
||||
- April
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- August
|
||||
- September
|
||||
- October
|
||||
- November
|
||||
- December
|
||||
# last_updated: Last updated in
|
||||
# month: month
|
||||
# months: months
|
||||
# year: year
|
||||
# years: years
|
||||
# present: present
|
||||
# month_abbreviations:
|
||||
# - Jan
|
||||
# - Feb
|
||||
# - Mar
|
||||
# - Apr
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - Aug
|
||||
# - Sept
|
||||
# - Oct
|
||||
# - Nov
|
||||
# - Dec
|
||||
# month_names:
|
||||
# - January
|
||||
# - February
|
||||
# - March
|
||||
# - April
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - August
|
||||
# - September
|
||||
# - October
|
||||
# - November
|
||||
# - December
|
||||
settings:
|
||||
current_date: '2025-12-09'
|
||||
current_date: '2025-12-10'
|
||||
render_command:
|
||||
design:
|
||||
locale:
|
||||
|
||||
@@ -4831,8 +4831,8 @@ endobj
|
||||
>>
|
||||
/F 4
|
||||
/StructParent 17
|
||||
/Contents (https://doi.org/10.1234/neurips.2022.5678)
|
||||
>>
|
||||
/Contents (https://doi.org/10.1234/neurips.2022.5678)
|
||||
>>
|
||||
endobj
|
||||
|
||||
401 0 obj
|
||||
@@ -4843,7 +4843,7 @@ endobj
|
||||
/Border [0 0 0]
|
||||
/A <<
|
||||
/Type /Action
|
||||
/S /URI
|
||||
/S /URI
|
||||
/URI (https://doi.org/10.1234/icml.2022.9012)
|
||||
>>
|
||||
/F 4
|
||||
@@ -5283,7 +5283,7 @@ trailer
|
||||
0000025200 00000 n
|
||||
0000025282 00000 n
|
||||
0000025371 00000 n
|
||||
0000025453 00000 n
|
||||
0000025453 00000 n
|
||||
0000025550 00000 n
|
||||
0000025644 00000 n
|
||||
0000025802 00000 n
|
||||
|
||||
@@ -311,40 +311,40 @@ design:
|
||||
# date_and_location_column: DATE
|
||||
locale:
|
||||
language: english
|
||||
last_updated: Last updated in
|
||||
month: month
|
||||
months: months
|
||||
year: year
|
||||
years: years
|
||||
present: present
|
||||
month_abbreviations:
|
||||
- Jan
|
||||
- Feb
|
||||
- Mar
|
||||
- Apr
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- Aug
|
||||
- Sept
|
||||
- Oct
|
||||
- Nov
|
||||
- Dec
|
||||
month_names:
|
||||
- January
|
||||
- February
|
||||
- March
|
||||
- April
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- August
|
||||
- September
|
||||
- October
|
||||
- November
|
||||
- December
|
||||
# last_updated: Last updated in
|
||||
# month: month
|
||||
# months: months
|
||||
# year: year
|
||||
# years: years
|
||||
# present: present
|
||||
# month_abbreviations:
|
||||
# - Jan
|
||||
# - Feb
|
||||
# - Mar
|
||||
# - Apr
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - Aug
|
||||
# - Sept
|
||||
# - Oct
|
||||
# - Nov
|
||||
# - Dec
|
||||
# month_names:
|
||||
# - January
|
||||
# - February
|
||||
# - March
|
||||
# - April
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - August
|
||||
# - September
|
||||
# - October
|
||||
# - November
|
||||
# - December
|
||||
settings:
|
||||
current_date: '2025-12-09'
|
||||
current_date: '2025-12-10'
|
||||
render_command:
|
||||
design:
|
||||
locale:
|
||||
|
||||
@@ -4397,8 +4397,8 @@ endobj
|
||||
|
||||
384 0 obj
|
||||
<<
|
||||
/Type /Annot
|
||||
/Subtype /Link
|
||||
/Type /Annot
|
||||
/Subtype /Link
|
||||
/Rect [50.4 369.83456 154.04 382.54456]
|
||||
/Border [0 0 0]
|
||||
/A <<
|
||||
@@ -4409,7 +4409,7 @@ endobj
|
||||
/F 4
|
||||
/StructParent 11
|
||||
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
||||
>>
|
||||
>>
|
||||
endobj
|
||||
|
||||
385 0 obj
|
||||
@@ -4831,7 +4831,7 @@ trailer
|
||||
0000026428 00000 n
|
||||
0000026522 00000 n
|
||||
0000026680 00000 n
|
||||
0000026769 00000 n
|
||||
0000026769 00000 n
|
||||
0000026853 00000 n
|
||||
0000026942 00000 n
|
||||
0000027033 00000 n
|
||||
|
||||
@@ -311,40 +311,40 @@ design:
|
||||
# date_and_location_column: DATE
|
||||
locale:
|
||||
language: english
|
||||
last_updated: Last updated in
|
||||
month: month
|
||||
months: months
|
||||
year: year
|
||||
years: years
|
||||
present: present
|
||||
month_abbreviations:
|
||||
- Jan
|
||||
- Feb
|
||||
- Mar
|
||||
- Apr
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- Aug
|
||||
- Sept
|
||||
- Oct
|
||||
- Nov
|
||||
- Dec
|
||||
month_names:
|
||||
- January
|
||||
- February
|
||||
- March
|
||||
- April
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- August
|
||||
- September
|
||||
- October
|
||||
- November
|
||||
- December
|
||||
# last_updated: Last updated in
|
||||
# month: month
|
||||
# months: months
|
||||
# year: year
|
||||
# years: years
|
||||
# present: present
|
||||
# month_abbreviations:
|
||||
# - Jan
|
||||
# - Feb
|
||||
# - Mar
|
||||
# - Apr
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - Aug
|
||||
# - Sept
|
||||
# - Oct
|
||||
# - Nov
|
||||
# - Dec
|
||||
# month_names:
|
||||
# - January
|
||||
# - February
|
||||
# - March
|
||||
# - April
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - August
|
||||
# - September
|
||||
# - October
|
||||
# - November
|
||||
# - December
|
||||
settings:
|
||||
current_date: '2025-12-09'
|
||||
current_date: '2025-12-10'
|
||||
render_command:
|
||||
design:
|
||||
locale:
|
||||
|
||||
@@ -5325,8 +5325,8 @@ endobj
|
||||
446 0 obj
|
||||
<<
|
||||
/Type /Annot
|
||||
/Subtype /Link
|
||||
/Rect [176.54173 292.9539 262.22174 305.66388]
|
||||
/Subtype /Link
|
||||
/Rect [176.54173 292.9539 262.22174 305.66388]
|
||||
/Border [0 0 0]
|
||||
/A <<
|
||||
/Type /Action
|
||||
@@ -5337,7 +5337,7 @@ endobj
|
||||
/StructParent 19
|
||||
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
||||
>>
|
||||
endobj
|
||||
endobj
|
||||
|
||||
447 0 obj
|
||||
<<
|
||||
@@ -5821,7 +5821,7 @@ trailer
|
||||
0000033410 00000 n
|
||||
0000033499 00000 n
|
||||
0000033590 00000 n
|
||||
0000033679 00000 n
|
||||
0000033679 00000 n
|
||||
0000033763 00000 n
|
||||
0000033852 00000 n
|
||||
0000033943 00000 n
|
||||
|
||||
@@ -311,40 +311,40 @@ design:
|
||||
# date_and_location_column: DATE
|
||||
locale:
|
||||
language: english
|
||||
last_updated: Last updated in
|
||||
month: month
|
||||
months: months
|
||||
year: year
|
||||
years: years
|
||||
present: present
|
||||
month_abbreviations:
|
||||
- Jan
|
||||
- Feb
|
||||
- Mar
|
||||
- Apr
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- Aug
|
||||
- Sept
|
||||
- Oct
|
||||
- Nov
|
||||
- Dec
|
||||
month_names:
|
||||
- January
|
||||
- February
|
||||
- March
|
||||
- April
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- August
|
||||
- September
|
||||
- October
|
||||
- November
|
||||
- December
|
||||
# last_updated: Last updated in
|
||||
# month: month
|
||||
# months: months
|
||||
# year: year
|
||||
# years: years
|
||||
# present: present
|
||||
# month_abbreviations:
|
||||
# - Jan
|
||||
# - Feb
|
||||
# - Mar
|
||||
# - Apr
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - Aug
|
||||
# - Sept
|
||||
# - Oct
|
||||
# - Nov
|
||||
# - Dec
|
||||
# month_names:
|
||||
# - January
|
||||
# - February
|
||||
# - March
|
||||
# - April
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - August
|
||||
# - September
|
||||
# - October
|
||||
# - November
|
||||
# - December
|
||||
settings:
|
||||
current_date: '2025-12-09'
|
||||
current_date: '2025-12-10'
|
||||
render_command:
|
||||
design:
|
||||
locale:
|
||||
|
||||
@@ -4848,8 +4848,8 @@ endobj
|
||||
<<
|
||||
/Type /Annot
|
||||
/Subtype /Link
|
||||
/Rect [56.06929 422.5909 157.73929 435.4209]
|
||||
/Border [0 0 0]
|
||||
/Rect [56.06929 422.5909 157.73929 435.4209]
|
||||
/Border [0 0 0]
|
||||
/A <<
|
||||
/Type /Action
|
||||
/S /URI
|
||||
@@ -4860,7 +4860,7 @@ endobj
|
||||
/Contents (https://doi.org/10.1234/icml.2022.9012)
|
||||
>>
|
||||
endobj
|
||||
|
||||
|
||||
425 0 obj
|
||||
<<
|
||||
/Type /Annot
|
||||
@@ -5323,7 +5323,7 @@ trailer
|
||||
0000028487 00000 n
|
||||
0000028645 00000 n
|
||||
0000028734 00000 n
|
||||
0000028818 00000 n
|
||||
0000028818 00000 n
|
||||
0000028907 00000 n
|
||||
0000028998 00000 n
|
||||
0000029087 00000 n
|
||||
|
||||
@@ -319,40 +319,40 @@ design:
|
||||
# date_and_location_column: DATE
|
||||
locale:
|
||||
language: english
|
||||
last_updated: Last updated in
|
||||
month: month
|
||||
months: months
|
||||
year: year
|
||||
years: years
|
||||
present: present
|
||||
month_abbreviations:
|
||||
- Jan
|
||||
- Feb
|
||||
- Mar
|
||||
- Apr
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- Aug
|
||||
- Sept
|
||||
- Oct
|
||||
- Nov
|
||||
- Dec
|
||||
month_names:
|
||||
- January
|
||||
- February
|
||||
- March
|
||||
- April
|
||||
- May
|
||||
- June
|
||||
- July
|
||||
- August
|
||||
- September
|
||||
- October
|
||||
- November
|
||||
- December
|
||||
# last_updated: Last updated in
|
||||
# month: month
|
||||
# months: months
|
||||
# year: year
|
||||
# years: years
|
||||
# present: present
|
||||
# month_abbreviations:
|
||||
# - Jan
|
||||
# - Feb
|
||||
# - Mar
|
||||
# - Apr
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - Aug
|
||||
# - Sept
|
||||
# - Oct
|
||||
# - Nov
|
||||
# - Dec
|
||||
# month_names:
|
||||
# - January
|
||||
# - February
|
||||
# - March
|
||||
# - April
|
||||
# - May
|
||||
# - June
|
||||
# - July
|
||||
# - August
|
||||
# - September
|
||||
# - October
|
||||
# - November
|
||||
# - December
|
||||
settings:
|
||||
current_date: '2025-12-09'
|
||||
current_date: '2025-12-10'
|
||||
render_command:
|
||||
design:
|
||||
locale:
|
||||
|
||||
@@ -188,8 +188,19 @@ def create_sample_yaml_input_file(
|
||||
]
|
||||
yaml_design_field = yaml_design_theme_part + "\n".join(below_design) + "\n"
|
||||
|
||||
yaml_locale_and_settings_fields = yaml_locale_part + split_yaml_string[1]
|
||||
yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_and_settings_fields
|
||||
# Handle locale field commenting (similar to design)
|
||||
locale_and_settings = split_yaml_string[1]
|
||||
settings_part = "settings:\n"
|
||||
split_by_settings = locale_and_settings.split(settings_part)
|
||||
below_locale = split_by_settings[0]
|
||||
below_locale_commented = [
|
||||
f" {line.replace(' ', '# ', 1)}"
|
||||
for line in below_locale.splitlines(keepends=False)
|
||||
]
|
||||
yaml_locale_field = yaml_locale_part + "\n".join(below_locale_commented) + "\n"
|
||||
yaml_settings_field = settings_part + split_by_settings[1]
|
||||
|
||||
yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_field + yaml_settings_field
|
||||
|
||||
if file_path is not None:
|
||||
file_path.write_text(yaml_string, encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user