Skip to content

Commit

Permalink
* pkgdown theming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewallenbruce committed Dec 13, 2024
1 parent 93cb447 commit 53f1bc0
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 30 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ importFrom(collapse,"%==%")
importFrom(collapse,.c)
importFrom(collapse,fmutate)
importFrom(collapse,fselect)
importFrom(collapse,get_elem)
importFrom(data.table,as.data.table)
importFrom(httr2,req_perform)
importFrom(httr2,req_perform_parallel)
Expand Down
4 changes: 2 additions & 2 deletions R/format_api_params.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' CMS API Dataset Names Lookup
#'
#' @param fn_name `<chr>` function name, can be a regex pattern
#' @param fn_name `<chr>` function name, can be a regex pattern; default is `"all"`
#'
#' @returns `<chr>` API dataset name
#'
Expand All @@ -18,7 +18,7 @@
#' @keywords internal
#'
#' @export
api_names <- \(fn_name) {
api_names <- \(fn_name = "all") {

apinms <- c(
main = c(
Expand Down
2 changes: 1 addition & 1 deletion R/provider-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @import rlang
#' @importFrom purrr map
#' @importFrom data.table as.data.table
#' @importFrom collapse %==% get_elem .c %=% fselect fmutate
#' @importFrom collapse %==% .c %=% fselect fmutate
#' @importFrom httr2 request req_perform resp_body_json resp_date resp_headers resp_header req_perform_parallel
#' @importFrom stats setNames
## usethis namespace: end
Expand Down
4 changes: 2 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ distros_dac <- \() {
on_error = "continue") |>
setNames(names(ids))

af <- resp_body_json(get_elem(resp, "affiliations"), simplifyVector = TRUE)
af <- resp_body_json(getelem(resp, "affiliations"), simplifyVector = TRUE)

cl <- resp_body_json(get_elem(resp, "clinicians"), simplifyVector = TRUE)
cl <- resp_body_json(getelem(resp, "clinicians"), simplifyVector = TRUE)


affiliations <- list(
Expand Down
4 changes: 2 additions & 2 deletions man/api_names.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 38 additions & 22 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ url: https://andrewallenbruce.github.io/provider/

template:
bootstrap: 5
theme: tango
light-switch: true
bslib:
primary: "#202C56"
Expand All @@ -24,7 +25,7 @@ template:
home:
title: provider • Access Healthcare Provider Data
description: >
Functions for accessing and retrieving healthcare provider data.
Tools for accessing and retrieving healthcare provider data.
sidebar:
structure: [links, license, community, citation, authors, dev]

Expand All @@ -35,17 +36,27 @@ navbar:
- reference
- articles
right:
- home
- search
- news
- github
- twitter
- linkedin
- links
- lightswitch
components:
home:
icon: fas fa-home fa-lg
href: index.html
aria-label: Home
text: ""
search:
search: []
lightswitch:
icon: fa-sun
aria-label: Light switch
id: lightswitch
menu:
- text: Light
theme: light
icon: fa-sun
- text: Dark
theme: dark
icon: fa-moon
- text: Auto
theme: auto
icon: fa-adjust
intro:
icon: ~
href: articles/provider.html
Expand Down Expand Up @@ -75,18 +86,23 @@ navbar:
aria-label: News
title: "Changelog"
text: ""
github:
icon: fab fa-github fa-lg
href: https://github.com/andrewallenbruce/provider
aria-label: GitHub
linkedin:
icon: fas fa-linkedin fa-lg
href: https://www.linkedin.com/in/andrewallenbruce
aria-label: LinkedIn
twitter:
icon: fab fa-twitter fa-lg
href: http://twitter.com/andrewallbruce
aria-label: X
links:
icon: fas fa-at
aria-label: Links
id: links
menu:
- text: GitHub
icon: fab fa-github fa-lg
href: https://github.com/andrewallenbruce/provider
- text: X
icon: fab fa-x-twitter fa-lg
href: http://twitter.com/andrewallbruce
- text: Bluesky
icon: fab fa-bluesky fa-lg
href: http://twitter.com/andrewallbruce
- text: LinkedIn
icon: fas fa-linkedin fa-lg
href: https://www.linkedin.com/in/andrewallenbruce
opengraph:
image:
src: man/figures/card.png
Expand Down

0 comments on commit 53f1bc0

Please sign in to comment.