Build and deploy interactive slides with a single click.
-
First click on the Use this template button to fork this repository, and check the option
Include all branches
. -
Once the fork is completed, git clone the repo to your local machine
-
Install the R dependencies with the help of
renv
R package:
# install.packages('renv')
# check with repo dependencies
renv::restore()
-
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. -
Add, commit, and push your changes to the remote GitHub repo and let the GitHub Actions render and deploy the presentation for you
-
Your presentation will be available on the
https://habitat-nature.github.io/<repo_name>/
URL when the Action is completed. -
Enjoy 😎
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.
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.