Here's another pitch that I would like to promote for development.
With the file resource a teacher may upload a zip file containing a self contained site (e.g. created from a static site generator) that contains the course material for the students.
At the moment this is possible in manual steps:
- Create a File activity
- Upload the zip archive
- Extract the ZIP file in the activity
- Set the main file to index.html (or whatever the entry point is)
When the material needs to be updated (e.g. fixing a typo, exchanging or adding an image), the steps 2. and 3. from above need to be repreated after the site generator has created the whole site again.
My proposal is to have a plugin that offers a webservice that can handle the steps from above. In this way the upload process to Moodle can be included as a post step in the sitegenerator in the same way as if you would update the github[pages].
The webservice needs:
- the course id
- the activity id/name (if it does not exist, it could be created automatically)
- a token (that identifies the user)
- define the enty point (one filename inside the zip archive) -> see step 4 above