In this commit I used the include tag that is built-in to Jekyll that allows you to import files as text into your Jekyll website. Ideally we want to be able to replace everything between # BEGIN SOLUTION and # END SOLUTION with "YOUR CODE HERE" or some other placeholder, like in the cs88 repo.
Originally I was planning to use a custom Jekyll plugin to accomplish this behavior, but since just-the-docs uses the github-pages gem, you can't use plugins that aren't whitelisted by github (including your own custom plugins).
So either we don't use the github-pages gem (you can still deploy your site with github pages but you have to have a repo with just the files contained in your _site directory) or figure out a way to do this kind of hackily... or figure out a different way to store python questions and solutions.
A WIP solution using liquid tags that I tried doing but isn't really working (spacing and indentation is wrong, and this is not a great long-term solution):
In this commit I used the
include
tag that is built-in to Jekyll that allows you to import files as text into your Jekyll website. Ideally we want to be able to replace everything between# BEGIN SOLUTION
and# END SOLUTION
with"YOUR CODE HERE"
or some other placeholder, like in the cs88 repo.Originally I was planning to use a custom Jekyll plugin to accomplish this behavior, but since just-the-docs uses the github-pages gem, you can't use plugins that aren't whitelisted by github (including your own custom plugins).
So either we don't use the github-pages gem (you can still deploy your site with github pages but you have to have a repo with just the files contained in your
_site
directory) or figure out a way to do this kind of hackily... or figure out a different way to store python questions and solutions.A WIP solution using liquid tags that I tried doing but isn't really working (spacing and indentation is wrong, and this is not a great long-term solution):