We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finalize the themes after regen
import os from pprint import pprint from ezcv.themes import generate_theme_metadata import yaml # data_1 = generate_theme_metadata("dimension") # data_2 = get_theme_metadata(os.path.join(THEMES_FOLDER, 'dimension')) # pprint(data_1) # pprint(data_2) # # Non required field # print(data_2["sections"]["education"]["fields"]["month_ended"]) # print(type(data_2["sections"]["education"]["fields"]["month_ended"])) # # Required field # print(data_2["sections"]["education"]["fields"]["institution"]) # print(type(data_2["sections"]["education"]["fields"]["institution"])) print(f"Generating theme metadata for {[x for x in os.listdir('.')[2:] if os.path.isdir(x)]}") for folder in os.listdir("."): if os.path.isdir(folder): if os.path.exists(os.path.join(folder, "index.jinja")): data = generate_theme_metadata(folder) if os.path.exists(os.path.join(folder, "metadata.yml")): print(f"Removing existing metadata.yml for {folder}") os.remove(os.path.join(folder, "metadata.yml")) with open(os.path.join(folder, "metadata.yml"), "w+") as f: print(f"Writing metadata.yml for {folder}") yaml.dump(dict(data), f)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Finalize the themes after regen
Script to regen metadata for all files in folder
The text was updated successfully, but these errors were encountered: