Builds a list of courses from the source folder - output is a courses.yml
file
Builds individual courses.
Takes an input of: course.yml
which contains a list of sections with a name and content. Content contains a list of markdown files
This class models an individual course, used to read in the course.yml
and:
- build the course output in the output folder
- builds the additional front matter, including percentage complete (
number of lessons
/current lesson no
) - creates folders if they dont exist
- counts the number of lessons in each section to provide an accurate
no_of_lesson
property
builds all the courses from the source folder and:
- outputs the
courses.yml
into the/web/_data
folder - outputs the built course into the
/learn
folder
-
The data file output to the
_data
folder -
has the following attributes for each course:
-
yaml navigation structure
- name: <course_name>
link: <url link to course>
description: description of course
tags: any tags
cover: <url to cover image>
level: beginner, intermediate, advanced
navigation:
section:
name: Overview
content:
- introduction
- what you'll learn