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

learn: Generate HTML with templates #379

Closed
wants to merge 8 commits into from
Closed

Conversation

juliaogris
Copy link
Member

Generate learn resource HTML with templates so that we can optionally use
embedded and linked CSS in preparation for deploying to learn.evy.dev.

In a follow up commit we should be ready to deploy to learn.evy.dev.

Fix up CLI docs in learn/README.md as they have gotten out of sync with recent
refactorings. oops.
Upgrade go dependencies with

	cd learn
	go get -u ./...

and remove replace directive as rsc.io/markdown has been patched.
Add Name field to Course, Unit and Exercise, which is extracted from the first
heading of the Markdown document with styling stripped. This text will be
used in a follow-up commit for the catalog.
Add course catalog exporting as single JSON file. Catalog contains all
information to generate a question set for an exercise, quiz or unittest
identified by composite IDs. It also holds the maximumScore achievable for
each course and unit. An exercise has a predefined score of 10. This
will allow for progress tracking as percentage.
Fix `clear` command for SVG output if it is invoked without parameter. Ensure
that color is by default set to white.
Add Name() method to model to use in HTML title which is a preparatory step to
a more configurable and templated approach to the HTML output.
Refactor testdata, again - sorry about the churn. We are preparing for only having HTML fragment output from the model an
leaving full HTML doc export to export.go. For this we create a new top-level golden structure:

- question[-with-marekd]
- exercise[-with-marked]
Generate learn resource HTML with templates so that we can optionally use
embedded and linked CSS in preparation for deploying to learn.evy.dev.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant