File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# Default target.
2- all : commands
2+ all : commands
33
44# # commands : show all commands.
5- commands :
5+ commands :
66 @grep -h -E ' ^##' ${MAKEFILE_LIST} | sed -e ' s/## //g' | column -t -s ' :'
77
88# # install: install minimal required packages into current environment.
Original file line number Diff line number Diff line change @@ -72,7 +72,13 @@ def get_course_metadata(course_dir: Path) -> Dict[str, Any]:
7272 if readme_path .exists ():
7373 with open (readme_path , "r" , encoding = "utf-8" ) as f :
7474 content = f .read ()
75-
75+
76+ # Strip YAML front matter if present
77+ if content .startswith ("---" ):
78+ end = content .find ("\n ---" , 3 )
79+ if end != - 1 :
80+ content = content [end + 4 :].lstrip ("\n " )
81+
7682 # Try to extract title from first heading
7783 title_match = content .split ("\n " )[0 ]
7884 if title_match .startswith ("# " ):
You can’t perform that action at this time.
0 commit comments