Building a custom Course#
This workflow details the steps needed to make your own custom course.
These instructions focus on assembling a group of lectures and building them locally as a first step.
Once the local version is up and running the next step is to add the files
to a repository and setup hosting of the html files using gh-pages.
Warning
This workflow may change significantly in the future to make these steps easier. Currently this is geared towards manually preparing a repository for use with jupyter-book
Steps to assemble a Jupyter Book#
Set up the standard Jupyter Book project layout — a
lecturesfolder containing_config.yml,_toc.yml, andintro.md. Use an existing QuantEcon lecture repository (for example lecture-dp) as a reference for these configuration files, and the shared quantecon environment for the build dependencies.Add
myst markdownfiles ornotebooksto thelecturesfolderUpdate
lectures/_toc.ymlwith the required information including titles for Parts andfilenamesto include the lectures in thejupyter-book.Enable the quantecon environment using
conda activate quanteconBuild using
jb build lecturesat the root level of the folder
Tip
You will also want to update:
intro.mdwith update information for the front landing page
Steps to migrate to GitHub and Hosting on GH-PAGES#
Once your course builds locally you can move it to a GitHub repository and host the html on GitHub Pages:
Create a new GitHub repository and copy the workflow templates (
ci.yml,cache.yml,publish.yml) from quantecon/actions/templates into.github/workflows/, following that directory’s README to configure them.Apply the standard lecture repository configuration.
Push your lecture files, then build and publish following Publishing Lectures.