Skip to content

YAML options to customize included directories #808

@lhami

Description

@lhami

I 100% understand why you wouldn't want to expose the entire working directory to the shiny app that learnr builds, but I wish it were possible to have a bit more flexibility in specifying which directories, precisely, should be included. It would be nice to be able to specify something like, say, img/ as the images folder for consistency with the rest of the codebase I'm working on and the sake of not having to duplicate files & images.

To me, it seems like there could be an option in the YAML header to provide a list of folders that should be accessible to/included in the output, and this would also allow somebody to stop files from being exposed from any unfortunately-named existing directories if they needed to. Are the 4 specific directory names a learnr constraint or a shiny constraint?

(Sorry if you first saw this as a comment on a closed issue--I'm new to learnr but, poking around, it seems like there are several other people putting learnr tutorials inside of existing codebases that are asking questions like this, so I figured I should open an issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions