This directory contains build tools for Shiny.
For TypeScript / JavaScript build tool descriptions, see the ./srcts
folder.
bootstrap-datepicker
bootstrap-datepicker can be updated with the script updateBootstrapDatepicker.R
.
To create a new patch:
inst/www/shared/datepicker
git diff > tools/datepicker-patches/012-a-description.patch
. Patches are applied in alphabetic order (per list.files
), so you should name your patch based on the last one in tools/datepicker-patches
so that it's applied last.updateBootstrapDatepicker.R
to download the library and apply patches.git add
the new .patch
and any resulting changesion.rangeSlider can be updated with the script updateIonRangeSlider.R
. That script downloads a specific version of ion.rangeSlider and applies our patches in tools/ion.rangeSlider-patches.
To create a new patch:
inst/www/shared/ion.rangeSlider
git diff > tools/ion.rangeSlider-patches/0004-a-description.patch
. Patches are applied in alphabetic order (per list.files
), so you should name your patch based on the last one in tools/ion.rangeSlider-patches
so that it's applied last.updateIonRangeSlider.R
to download the library and apply patches.devtools::document()
.git add
the new .patch
and any resulting changesupdateFontAwesome.R
to use the new version, and then run it. This will download and copy the files to the relevant locations.R/bootstrap.R
to reflect the new version.icon()
function in R/bootstrap.R
to reflect the new version.devtools::document()
.updatejQuery.R
to use the new version, and then run it. This will download and copy the files to the relevant locations.R/shinyui.R
to reflect the new version.shiny.jquery.version
option in R/shiny-options.R
to reflect the new version.devtools::document()
.updateBootstrapAccessibilityPlugin.R
.updateBootstrapAccessibilityPlugin.R
to use the new version, and then run it. This will download and copy the files to the relevant locations.bootstrapLib()
function in R/bootstrap.R
to reflect the new version.devtools::document()
.selectize and its accessibility plugin can be updated with the script updateSelectize.R
. That script downloads a specific version of selectize and selectize-plugin-a11y, and applies our patches in tools/selectize-patches.
To create a new patch:
inst/www/shared/selectize
git diff > tools/selectize-patches/000-assign-unique-id-per-option.patch
. Patches are applied in alphabetic order (per list.files
), so you should name your patch based on the last one in tools/selectize-patches
so that it's applied last.updateSelectize.R
to download the library and apply patches.git add
the new .patch
and any resulting changesinst/www/shared/shiny_scss
yarn build
to generate a built shiny.min.css
fileAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.