Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Post: workshop with xaringan slides and a hugo page #100

Open
gadenbuie opened this issue Jan 19, 2022 · 0 comments
Open

Post: workshop with xaringan slides and a hugo page #100

gadenbuie opened this issue Jan 19, 2022 · 0 comments

Comments

@gadenbuie
Copy link
Owner

For Presentable at useR!2021 I...

  • Stored the slides in static/slides
    • Slides are all stored in the same base directory, which makes life a little easier when editing
    • If you have slides in subfolders
      • I prefer to store them like slides/01-intro/index.Rmd
      • That way you can go to <url>/slides/01-intro/ without having to write <url>/slides/01-intro/01-intro.html
      • You can still use infinite moon reader, but you need to call it manually: xaringan::inf_mr("slides/01-intro/index.Rmd", cast_from = "slides")
  • Created a slides/ index page with a content/slides.Rmarkdown
  • I used a make script in static/slides/make.R that honestly is overly complicated but is also called as part of the hugo build process from R/build.R

For JavaScript for Shiny Users I put slides in a separate repo and then hosted the slides at https://slides.js4shiny.com and just linked out from the main page. Again, added an index page so that you can click through to individual slides. This is also the origin of the make.R script mentioned above.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant