Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md2html exercise generator #97

Open
19 of 30 tasks
juliaogris opened this issue Apr 9, 2024 · 1 comment
Open
19 of 30 tasks

md2html exercise generator #97

juliaogris opened this issue Apr 9, 2024 · 1 comment

Comments

@juliaogris
Copy link
Member

juliaogris commented Apr 9, 2024

Next-up

  • Fake backend with temporary Frontend question selection according to composition.
  • Add group field to questions - only one question from group can be picked, txtars are auto-grouped.
  • Update composition: one per group; Quiz, unittest question selection update: Round-robin from the different exercises to ensure all exercises are covered.

Clean-up

  • Remove xmlns="http://www.w3.org/2000/svg" from inline svg
  • Add width="200px" height="200px" to renderer.go for svg file output, remove for inline.
  • Use ANSWER as part of question path, e.g. dot/{ANSWER}.evy
  • Format all evy files, including inside txtar files
  • Workout unittests and quizzes (question href/image rewriting)
  • Don't validate question composition if there are sealed / ignoreSelaed questions.
  • Build a server component for single-user
  • Add JS for question selection and randomization

Done-up

  • Add txtar file format
  • Initial Fundamentals course content
  • Deploy to learn.evy.dev static content only
  • Prettier output from learn/content -> frontend/learn
  • <title>evy · Question</title> => model.Name
  • Remove <hr>
  • Add table for composition to Exercise.
  • Create unit Model; output model with unit badge box
  • Create quiz Model
  • Create unittest Model
  • Create course Model; output model with unit badge boxes
  • Track exercise and unit names (derive from h1 or add as frontmatter field)
  • Finish catalog.json
  • Re-arrange validateModelPaths to come after newModels
  • Update validateModelPaths for: 1 course, 1 unit, 1 unittest, 1 exercise per dir.
  • Fix cls command for buffer output
  • Export (course) catalog
  • Check learn/README.md
  • Fix rsc.io/markdown replace

PRs:

@juliaogris juliaogris added this to the 🚸 Learn v0.2.0 milestone Apr 9, 2024
@juliaogris
Copy link
Member Author

Suggested question format using txtar package:

---
type: question
difficulty: medium
answer-type: single-choice
generate-questions: a,b,c,d # ensure more than one
generate-questions: all
---

## Understanding sequence: `move`, `color`, `circle` commands

Which program generates the following output?

[question](dot/dot.textar "evy:svg")

Choose one correct answer:

- [answers](dot/dot.textar "evy:source")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant