How to use this template:
-
Go to the Github Importer. In the top text box paste the url of this repo. In the bottom part choose either "ReproNim" (if that's an option) or your own user account and then enter the name of the lesson/repository that you wish to create.
-
Change the following variables in the
_config.ymlfile:titlereporootemail(you can leave Ariel's address here, if you want).start_time: this is the start time in minutes since midnight. For example, 9 AM is 540 (60 * 9).
-
Edit the content in the
_episodesfolder, adding images (intoassets/img), code (intocode), data (intodata) as needed. Pay particular attention to the following:
- Sections should be named
01-first-part.md,02-second-part.md, etc to be ordered in the schedule. - Edit the headers of each of your sections. Editing the duration of both
teachingandexercises - Add coffee breaks into the lesson. This keeps the timing of each section accurate.
Instead of installing ruby and jekyll, you can use docker to run a live version of your repo locally. As you make changes, it will recompile the changes and all you will need to do is refresh the browser.
The following command it assumes that you are inside your cloned github repo. Adapted from this blog:
docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" \
--env JEKYLL_ENV=development -p 4000:4000 jekyll/jekyll:4.0.1 \
jekyll serve --config _config.yml,_config_dev.yml
You should then be able to open the live page at http://localhost:4000/
What this command does is
--rmautomatically removes the container when it exits-itallows you to interrupt the running server to exit with Ctrl+C--volume="$PWD:/srv/jekyll"takes the current directory indicated by$PWDand map it to the directory at/srv/jekyllwithin the container so that it could build it--volume="$PWD/vendor/bundle:/usr/local/bundle"this option maps the contents of the current directory's/vendor/bundleand maps it to/usr/local/bundle. The reason for this option is so that gems could be cached and reused in future builds--env JEKYLL_ENV=developmentallows local development.jekyll/jekyll:4.0.1this tells it to use this specific tagged version of the Jekyll containerjekyll serve --config _config.yml,_config_dev.ymlserves the live compiled content
If you already have jekyll installed for other projects, you can run
jekyll serve --config _config.yml,_config_dev.yml inside your cloned github repo.
Please see LICENSE.md for copyright, license, and how to acknowledge information.