Inginious-problems-blockly’s documentation¶
About INGInious-problems-blockly¶
Origin¶
This pluggin is inspired by this google repository
- The
blockly
folder is a sub module from the google repository. - The
docs
folder contains all the docs you read. - The
inginious-problems-blockly
folder is more complicated. We will use a tabular to describe the origin of all files. A ‘x’ if it’s hand made.
inginious-problems-blockly | from repo | |
---|---|---|
templates/ | x | |
static/blockly except blockly.js | google/blockly | |
static/blocklyfactory | fthuin/workspacefactory_bootstrap | |
static/JS-interpreter/ acorn_interpreter.js | google/blockly/demos/ interpreter/acorn_interpreter.js | |
static/css | x |
Installation and upgrade¶
Installing¶
pip3 install git+https://github.com/UCL-INGI/INGInious-problems-blockly
Activating¶
In your configuration.yaml
file, add the following plugin entry:
- plugins:
- - plugin_module: “inginious-problems-blockly”
Updating¶
Some files can be automaticlly update via the google submodule.
You just have to run the bootstrap_blockly.py
script.
Running the script update all the file in static/blockly
except blockly.js
Be carefull about dependecies! Update the changelog with modification to do.
NB: static/blocklyfactory can’t be tracked because it’s custom (from this repo)
ChangeLog¶
2018 Apr 14¶
commit ec06d866b7571728cce9ced10752f54583a8d73a
Use of audio completely different.
- old: Blockly.getMainWorkspace().loadAudio_(…)
- -> Blockly.getMainWorkspace().getAudioManager().load(…)
- old: Blockly.getMainWorkspace().playAudio(…)
- -> Blockly.getMainWorkspace().getAudioManager().play(….)