Skip to content

WV-Habitat/OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarto presentation template

Deploy html

Build and deploy interactive slides with a single click.

Getting Started

  1. First click on the Use this template button to fork this repository, and check the option Include all branches.

  2. Once the fork is completed, git clone the repo to your local machine

  3. Install the R dependencies with the help of renv R package:

# install.packages('renv')

# check with repo dependencies
renv::restore()
  1. Edit your slides with Markdown flavor, with R, Python, and Julia integration. If you add new R packages in the slides, don't forget to run renv::snapshot() to update the dependencies list.

  2. Add, commit, and push your changes to the remote GitHub repo and let the GitHub Actions render and deploy the presentation for you

  3. Your presentation will be available on the https://habitat-nature.github.io/<repo_name>/ URL when the Action is completed.

  4. Enjoy 😎

Render the presentation locally

To avoid pushing and waiting for the GitHub Action to render and deploy your presentation, it is recommended to keep rendering frequently as you edit your slides. This will avoid surprises (🐛) in the compilation process. To render the presentation locally, you need the Quarto client installed.

Render the HTML presentation by running the following code on Terminal:

quarto render index.qmd

Open the output index.html file.

Getting involved

The layout of the presentation and color theme are still open for improvement. I tried my best to use some Habitat color palettes, but they are not easy to compose with. Any suggestion as an issue is welcome!

GitHub Actions uses Quarto to render the HTML output and send it to the gh-pages branch. We use GitHub Pages to host the files available on the gh-pages branch to the web. Because of our GitHub plan, we cannot host private websites for free, meaning that the presentation will be available to anyone with the URL link. An alternative is to use Azure Static WebApp.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published