mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
a60d9265e8
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.1 KiB
2.1 KiB
The level editor
A built-in tool to write a level without hand-writing YAML, and without a server.
Opening it
- Run
make dev(or open your instance). - Open the page
/author.html(the learners' application has no link to it).
!!! note "On a protected server"
If the instance has the Django backend, opening /author.html requires signing in (an account authorised by an
administrator in the Django administration, see Deployment). Once signed
in, the editor header shows your name and a Sign out button (the session lasts 8 hours). Locally (make dev) there
is no login and no button.
What it does
- Forms for the level information, steps (explanation or code exercise), tests, hints, solutions and the mission. Each text is entered in French and English, side by side.
- Live checks: schema conformity (targeted messages), missing translations,
requires, missing solutions, inconsistent tests, invalid regular expressions, a reminder to generate the narration. A button jumps to the field concerned. - Run the exercises: runs each solution with the browser's real Python, like
make test. The solution must pass its tests and the starter code must not. - Try it: plays the level as a learner, in the real interface (progress is never saved).
- Export: downloads
level.yamlin the project's style, shows the line to add to the manifest and the next steps. You can also import a file or load an existing level to edit it. - Your draft is saved in the browser.
After exporting
- Put
level.yamlinlevels/NN-slug/and add the manifest line. make validate-levelsandmake test.make voicefor narrated steps.- Open your merge request (contribution flow).
Limits
- Narration cannot be generated in the browser:
make voiceis needed (the editor reminds you). - Scripted inputs are entered one per line; an empty input in the middle is possible, not in last position.
- The editor helps but does not replace review: the
makecommands remain the reference.