Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Indicating context change #91

Closed
kallewesterling opened this issue Jul 6, 2020 · 1 comment · Fixed by #116
Closed

Indicating context change #91

kallewesterling opened this issue Jul 6, 2020 · 1 comment · Fixed by #116
Assignees
Labels
Milestone

Comments

@kallewesterling
Copy link
Member

As @gofilipa's issue (DHRI-Curriculum/python#26) indicates, we need a way to signal context change in the lessons. Perhaps using a HTML comment:

<!-- context: terminal -->

<!-- context: text-editor -->

<!-- context: github -->
@kallewesterling
Copy link
Member Author

This is now done in LESSON_TRANSPOSITIONS inside of the dhri.settings file.

An example:

LESSON_TRANSPOSITIONS = {
    '<!-- context: terminal -->': '<img src="terminal.png" />'
    '<!-- context: text-editor -->': '<img src="text-editor.png" />'
    '<!-- context: github -->': '<img src="github.png" />'
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant