This plugin for Jekyll will automatically push the following content from Jekyll into the Canvas LMS:
- Home page content (content in
index.md
). - Assignments (pages with the layout
assignment
that have adue_date
front matter property) - Modules (pages with the layout
module
that havelessons
front matter)
This plugin requires the following three environmental variables to be defined. We store these settings in environmnetal variables to make it easy to store them as secrets in your CI environment. You should not put them in a config file in your website repository.
CANVAS_COURSE_ID
- The ID of your course on Canvas. Extract this from the URL for your course on Canvas. In the example of the URLhttps://northeastern.instructure.com/courses/136828
, the course ID is136828
.CANVAS_BASE_URL
- The base URL that you use to access Canvas. Extract this from the URL for your course on Canvas. In the example of the URLhttps://northeastern.instructure.com/courses/136828
, the base URL ishttps://northeastern.instructure.com/
.CANVAS_TOKEN
- An access token for your canvas installation. Obtain one by logging into Canvas, going to the user profile settings page, and clicking "New Access Token" (detailed instructions)
The plugin will update the "home page" in Canvas to match the content in your Jekyll site's index.md, assuming that there is a page set as the home page in Canvas. To create an empty home page in Canvas, visit the "Pages" module, and create and publish a new page called "Home". Then, from the "..." settings of that page, select "Use as Front Page." Then, from the "Home" section of Canvas, select "Choose Home Page" and select "Pages Front Page."
Documentation TODO
Documentation TODO