Emacs plugin for moodle-destroyer-tools.
Converts a gradingfile.json into emacs org-mode and back to json.
{
"assignment_id": "1337", "grades": [
{"name": "Gruppe A", "id": 42, "grade": 100.0, "feedback": "Das war toll"},
{"name": "Gruppe B", "id": 21, "grade": 0.0, "feedback": ""}
]
}
# -*- mode: org; -*-
#+STARTUP: showeverything
# Local Variables:
# eval: (moodle-destroyer-mode)
# End:
#+ASSIGNMENT_ID: 1337
#+BEGIN_NOTE
This is a note for grading
#+END_NOTE
* Gruppe A
:PROPERTIES:
:name: Gruppe A
:id: 42
:grade: 100.0
:END:
#+BEGIN_FEEDBACK
Das war toll
#+END_FEEDBACK
* Gruppe B
:PROPERTIES:
:name: Gruppe B
:id: 21
:grade: 0.0
:END:
#+BEGIN_FEEDBACK
#+END_FEEDBACK
Clone the repository and add the following to your init.el
(use-package moodle-destroyer
:load-path "/Users/onze/Repos/moodle-destroyer.el/lisp"
:bind(:map
moodle-destroyer-mode-map
("C-c C-c" . moodle-destroyer-org-to-json))
:commands (moodle-destroyer-json-to-org
moodle-destroyer-org-to-json)
:config
;; set custom name for org-mode gradingfile
(setq moodle-destroyer-gradingfile-org-name "grading.org")
;; set custom name for exported json file
(setq moodle-destroyer-gradingfile-json-name "grading.ex.json"))
- moodle-destroyer-json-to-org
Interactive function to import a json-file.
- moodle-destroyer-org-to-json
Interactive function to export the org-mode file to a new json file
This project uses git-flow as branching-model. Please make sure to always work on feature branches.
We recommend git-flow AVH Edition
.
For detailed installation instructions have a look at https://github.com/petervanderdoes/gitflow/wiki.
To setup the project follow these steps:
-
Clone the repository.
-
cd
into the repository directory. -
Run
git-flow init
accepting all default values.
If you like to add a new feature:
-
Start a new feature with
git-flow feature start <feature-name>
. This will create a new feature branch. -
Hack your feature.
-
Finish your feature with
git-flow feature finish <feature-name>
. This will merge the branch into the develop branch.