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

YAML options to customize included directories #808

Open
lhami opened this issue Mar 20, 2024 · 0 comments
Open

YAML options to customize included directories #808

lhami opened this issue Mar 20, 2024 · 0 comments

Comments

@lhami
Copy link

lhami commented Mar 20, 2024

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.)

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

No branches or pull requests

1 participant