Skip to content

Create separate instructor/student views #18

Closed

Description

@NeuroShepherd

have for our tutorials (and therefore maybe for the template tutorial itself) a learners view and an instructors view - see e.g. https://carpentries.github.io/instructor-training/instructor/index.html check out the eye button on the top right

  • Malika in chat

Activity

  1. MalikaIhle commented on Feb 27, 2025

    @MalikaIhle
    Member

    pinging @SvonGrebmer with Pat's response in chat: this is technically possible, but i'm simply going to say no to this idea for now. i like it in principle, but the technical implementation would take me too long. unless someone online already has a solution available.

  2. fkohrt commented on Mar 3, 2025

    @fkohrt
    Member

    I think the proper technical solution would be to add content specific to an instructor profile, then create another (mirror) repository which renders with that profile activated.

    I feel like creating the content for instructors is more effort than the technical part. But still, maybe it makes sense to first gather the content for instructors, and only if there's enough, create the separate repository?

    In other words, content for instructors could be added like this:

    ::: {.content-visible when-profile="instructor"}
    This content will only appear in the instructor version.
    :::

    And if it turns out that there's not a lot of instructor content, it can just be turned into a collapsed callout.

  3. MalikaIhle commented on Mar 3, 2025

    @MalikaIhle
    Member

    I think that is very sensible @fkohrt - pinging @SvonGrebmer

  4. NeuroShepherd commented on Mar 3, 2025

    @NeuroShepherd
    MemberAuthor

    I'm opposed to creating what are essentially duplicate repositories of our content as that then becomes an additional technical hurdle and maintenance.

    I liked the example website that Malika had sent me (forgot what the link is) that allowed someone to toggle back and forth between the views.

    A related request to this is that Reema suggested we implement branch-specific deployments of our websites (so that developers can see their changes live, but not published at our main website link). The solution I have in mind to address this idea can be extended to creating these split instructor/student views.

  5. MalikaIhle commented on Mar 3, 2025

    @MalikaIhle
    Member

    @nicebread also mentioned to me that possibly the quarto solution for multi-language websites could potentially be adapted for that toggle view.

  6. MalikaIhle commented on Mar 3, 2025

    @MalikaIhle
    Member

    For the branch-specific deployment, couldn't the authors render locally instead? it seems to me like a non-necessary tech thing? I recall @ree-gupta mentioning that in the context of the FAIR data tutorial co-authored by MPDL people, but clearly this is above their (and mine) knowledge...

  7. NeuroShepherd commented on Mar 4, 2025

    @NeuroShepherd
    MemberAuthor

    True, we could have authors just render locally. But we could also accomplish 3 tasks at once (instructor/student views, different languages, and multi-branch deployments) with very similar code. If nothing else, developing a solution for 1 of these problems creates a pathway for the others.

  8. fkohrt commented on Mar 26, 2025

    @fkohrt
    Member

    I'm opposed to creating what are essentially duplicate repositories of our content as that then becomes an additional technical hurdle and maintenance.

    Somehow I thought GitHub would support automatic mirrors out of the box. But one can render the project twice in a GitHub action call – once for the students and once for the instructors. Then the version for instructors (or both versions) can live in a subfolder.

  9. locked and limited conversation to collaborators on Apr 2, 2026
  10. converted this issue into a discussion #39 on Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions