Skip to content

Commit

Permalink
A few prints for checking
Browse files Browse the repository at this point in the history
  • Loading branch information
tcouch committed Dec 14, 2023
1 parent cbee0bb commit 074a2d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _utils/jekyllify.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def generate_tabs_yaml(dir:Path) -> str:

def jekyllify(dir:Path)->None:
"""Given a project directory, generate yaml front matter and prepend to index.md"""
print(f"Adding front matter to {dir}")
front_matter = "---\n"
front_matter += "layout: project\n" # layout is always project
front_matter += generate_title_yaml(dir)
Expand All @@ -136,6 +137,7 @@ def jekyllify(dir:Path)->None:
f.write(front_matter + content)

if __name__=="__main__":
print("Jekyllify script running...")
args = argument_parser.parse_args()
if args.project:
dirs_to_jekyllify = [
Expand All @@ -146,5 +148,6 @@ def jekyllify(dir:Path)->None:
dirs_to_jekyllify = [dir for dir in get_project_dirs() if can_process_dir(dir)]
for dir in dirs_to_jekyllify:
jekyllify(dir)
print("Jekyllify script completed")


0 comments on commit 074a2d7

Please sign in to comment.