WIP: scaffolding for adding Wax to existing Jekyll site #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work in progress! Needs clean up.
This is a pair of new rake tasks and a payload of files, used to provide scaffolding for Wax in a Jekyll site. The intention is to make it easier to get Wax working with a user's own content than is the case with the default Wax installation, especially for users who already have a Jekyll theme they want to keep. It should also be useful in teaching, where the class starts with basic Jekyll instruction and then moves on to Wax.
Instructions: this shell script will deploy into a fresh Jekyll site, from a local clone of this branch. The script assumes you have downloaded the sample image into your Downloads folder, and you need to set the path to your clone in
$TASKS.Note the two new tasks:
_config.ymlwith the CORS stanza.collectionsin_config.ymland the appropriate directories in_data, and creates a stub metadata csv. For simplicity it assumes each image will have only one field:label; the layouts and includes in theresourcespayload make the same assumption.Notes:
resourcestask into its own gem and rewrite it as a Jekyll plugin rather than a Rake task, so that it can install the Rakefile needed for all the other Wax tasks. It includes about 2mb of payload (cribbed from the default Wax site), so it would be nice to be able delete it once you've run it once in a projectcollectiontask would be handy to have around, so I think it would be worth adding towax_taskscollectionswill still cause any comments in that section to be lost. This needs more testing._includes/head.html. The best approach in those cases would be to add the scaffolding in a branch and run diffs to see what it changed. It needs more testing to see whether this is more trouble than it's worth for complex sites, or whether the deployment could be refined to change existing files with only what Wax needs.collectiontask could take an argument containing a directory path where it can get images to include in the collection; it could then add the appropriate rows to the csv stub