inst/app/components/help.R

## Show remove_git modal when button is clicked.
observeEvent(input$help, {
  ## See https://shiny.rstudio.com/reference/shiny/latest/modalDialog.html
  showModal(
    modalDialog(title = "GitGadget Help",
      markdown::markdownToHTML(
        file.path(system.file(package = "gitgadget"), "app/help/help.md"),
        fragment.only = TRUE,
        options = "",
        stylesheet = ""
      ) %>%
        gsub("<table>", "<table class='table table-condensed table-hover'>", .) %>%
        HTML,
      footer = tagList(modalButton("OK")),
      easyClose = TRUE
    )
  )
})

Try the gitgadget package in your browser

Any scripts or data that you put into this service are public.

gitgadget documentation built on Aug. 24, 2023, 9:08 a.m.