mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 11:47:24 +01:00
Hide API docs by default
This commit is contained in:
parent
709dc0d0ed
commit
753beeed71
2 changed files with 29 additions and 12 deletions
18
R/ui.R
18
R/ui.R
|
|
@ -1,6 +1,6 @@
|
|||
#' Function for creating the main user interface.
|
||||
#' @noRd
|
||||
ui <- function(custom_dataset = NULL) {
|
||||
ui <- function(custom_dataset = NULL, show_api_docs = FALSE) {
|
||||
div(
|
||||
custom_css(),
|
||||
rclipboard::rclipboardSetup(),
|
||||
|
|
@ -305,13 +305,17 @@ ui <- function(custom_dataset = NULL) {
|
|||
includeMarkdown(system.file("content", "help.md", package = "ubigen"))
|
||||
)
|
||||
),
|
||||
tabPanel(
|
||||
title = "API access",
|
||||
div(
|
||||
class = "container",
|
||||
includeMarkdown(system.file("content", "api.md", package = "ubigen"))
|
||||
if (show_api_docs) {
|
||||
tabPanel(
|
||||
title = "API access",
|
||||
div(
|
||||
class = "container",
|
||||
includeMarkdown(
|
||||
system.file("content", "api.md", package = "ubigen")
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue