make lesson suitable for teaching with locally-built (serverless) pages #159
following this https://creativecommons.org/licenses/by/4.0/deed.es insead of usted tu
Git for Windows doesn't provide fgrep, which is a shortcut to call `grep -F` on Mac and Linux. Instead, we have to use full arguments.
To avoid problems with various symbols, we have to specify the encoding when we read files. The actual codec name is `utf_8` but aliases like `utf8`, `utf-8`, etc are accepted. Here, I'm using `utf-8` alias. https://docs.python.org/3.8/library/codecs.html#standard-encodings This fixes `make lesson-check` when running under 'Git for Windows' for lessons that have non-cp1252 characters.
When 'Website' action tests a lesson, it checks out repositories into the current working directory: 'lesson' directory doesn't exist. As a result, steps that use "lesson" as the working directory fail.
This lesson currently builds on my system, as does the shell lesson. The MATLAB lesson doesn't following a PR that looks a lot like this one. I anticipate this PR being similar, given it also has a bazillion commits rather than the two commits on the shell lesson PR.
I'm happy to look at this if someone will help with the Ruby/Jekyll side, but really there should be a separate PR for lesson template stuff, and for building locally.