#27/automate toolbox creation#78
Open
sansaid wants to merge 4 commits into
Open
Conversation
This would get added to the package.json scripts, which is intended to run when Netlify builds the files
Makes location less confusing, since public directory is supposed to store static assets that get served to the client
To test blocks with identifiable Blockly block IDs
Also adding to .gitignore
Collaborator
|
I'm not massively a fan of the tags, because I think the mds are already pretty consistently |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Created a
generate-exercises.jswhich creates thesrc/Exercisesfolder that currently exists. However, one difference to the old structure ofsrc/Exercisesis that it creates anindex.jsin the root ofsrc/Exerciseswhich is exported toApp.jsso we don't have to maintain a manual list any more.generate-exercises.jstakes the inputs in the./exercisesfolder, looks for references to block names enclosed in<!--block-->tags in the exercise .md and then locates a matching block name in theblocks-to-categories.jsonin order to generate the toolbox for that exercise.blocks-to-categories.jsonshould be maintained as a list of identifiable blocks ID'd by human readable names which teachers can use inside their exercise .md.The
package.jsonhas also been updated so that the exercises are automatically generated whenever anyone runsnpm run start/build/test.What's not included in this PR is a README of how to add exercises and how this process works. If approval is granted and we're happy with this approach, I'll add a commit to create a README with instructions.
View rendered client/exercises/01-stuff.md
View rendered client/exercises/02-more-stuff.md
View rendered client/exercises/03-test-content.md
View rendered client/src/Exercises/01-stuff/lesson.md
View rendered client/src/Exercises/02-more-stuff/lesson.md