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 #380

Merged
merged 4 commits into from
Jun 22, 2024
Merged

learn: Generate HTML with templates #380

merged 4 commits into from
Jun 22, 2024

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.

As usual start with a couple smaller preparatory, fix-up and refactor
commits.

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-marked]
- 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.
Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📗 LGTM

@juliaogris juliaogris merged commit 60ed13b into main Jun 22, 2024
3 checks passed
@juliaogris juliaogris deleted the learn-deploy branch June 22, 2024 12:24
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.

2 participants