distilltools is collection of tools to support the creation and styling of content on websites created using the distill package in R.

It is in the very early stages of development. I am actively seeking contributions - both ideas and code - to help build the package to be broadly useful to a wide variety of distill users. The idea is for the package to become a curated, collaborative, community-driven project. In terms of relationship between packages, I hope in time that distilltools can be for distill something like what xaringanExtra and xaringanthemer are for xaringan. Some of what I have in mind may sit better within the distill package itself, and I will be reaching out to the distill team about that.

Installation

# install.packages("remotes")
# requires remotes >= 2.2
remotes::install_github("EllaKaye/distilltools")

# for remotes < 2.2
remotes::install_github("EllaKaye/distilltools", ref = "main")

Functionality

There are currently five exported functions in distilltools.

Blogging functions

Styling functions

  • icon_link(): creates the html for a link button with icon and text. Output of icon_link will need styling via the icon-link class to make it look like a button. For more details on this function, see this blog post from John Paul Helveston. For examples of styling the icon-link class, see John Paul Helveston’s css and Ella Kaye’s css.
  • modify_default_highlighting(): allows the user to swap the five colours used in {distill}’s default syntax highlighting scheme with five colours of their choice, and saves the resulting .theme file into the working directory.

Future functionality

Plans for future functionality include:

Contributing to distilltools

We’re actively seeking contributions!

  • Do you have a distill website? If so, what tools would you help you in the creation, upkeep and styling of your site? Let us know by with an issue.
  • Do you have functions that you’ve written for your distill workflow? If they help you, they’ll almost certainly be helpful to others to. Consider submitting (generalized) versions of them for inclusion in distilltools!

There are lots of other ways to support and contribute to distilltools. Please see the contributing guide for more details.

Code of Conduct

Please note that the distilltools project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.