-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from openjusticeok/andrew-overhaul
Da Big ojoThemes PR
- Loading branch information
Showing
77 changed files
with
4,745 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
^renv$ | ||
^renv\.lock$ | ||
^ojothemes\.Rproj$ | ||
^\.Rproj\.user$ | ||
^LICENSE\.md$ | ||
^README\.Rmd$ | ||
^cran-comments\.md$ | ||
^\.github$ | ||
^_pkgdown\.yml$ | ||
^docs$ | ||
^pkgdown$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
source("renv/activate.R") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
name: pkgdown.yaml | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-latest | ||
# Only restrict concurrency for non-PR jobs | ||
concurrency: | ||
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
# Configuring ojodb access for github actions | ||
OJO_HOST: ${{ secrets.OJO_HOST }} | ||
OJO_PORT: ${{ secrets.OJO_PORT }} | ||
OJO_DEFAULT_USER: ${{ secrets.OJO_DEFAULT_USER }} | ||
OJO_DEFAULT_PASS: ${{ secrets.OJO_DEFAULT_PASS }} | ||
OJO_SSL_MODE: ${{ secrets.OJO_SSL_MODE }} | ||
# Encoded secrets | ||
OJO_SSL_CERT_BASE64: ${{ secrets.OJO_SSL_CERT_BASE64 }} | ||
OJO_SSL_ROOT_CERT_BASE64: ${{ secrets.OJO_SSL_ROOT_CERT_BASE64 }} | ||
OJO_SSL_KEY_BASE64: ${{ secrets.OJO_SSL_KEY_BASE64 }} | ||
# | ||
OJO_SSL_CERT: ${{ github.workspace }}/certs/client-cert.pem | ||
OJO_SSL_ROOT_CERT: ${{ github.workspace }}/certs/server-ca.pem | ||
OJO_SSL_KEY: ${{ github.workspace }}/certs/client-key.pk8 | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::pkgdown, local::. | ||
needs: website | ||
|
||
- name: Decode secrets | ||
shell: bash | ||
run: | | ||
mkdir certs | ||
echo "$OJO_SSL_CERT_BASE64" | base64 --decode > certs/client-cert.pem | ||
echo "$OJO_SSL_ROOT_CERT_BASE64" | base64 --decode > certs/server-ca.pem | ||
echo "$OJO_SSL_KEY_BASE64" | base64 --decode > certs/client-key.pk8 | ||
chmod 0600 certs/client-key.pk8 | ||
- name: Build site | ||
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | ||
shell: Rscript {0} | ||
|
||
- name: Deploy to GitHub pages 🚀 | ||
if: github.event_name != 'pull_request' | ||
uses: JamesIves/[email protected] | ||
with: | ||
clean: false | ||
branch: gh-pages | ||
folder: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,5 @@ vignettes/*.pdf | |
.Renviron | ||
======= | ||
.Rproj.user | ||
docs | ||
inst/doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,47 @@ | ||
Package: ojothemes | ||
Title: What the Package Does (One Line, Title Case) | ||
Title: OJO, OKPI, and TOK themes for {ggplot2} and {gt} | ||
Version: 0.0.0.9000 | ||
Authors@R: | ||
person(given = "First", | ||
family = "Last", | ||
role = c("aut", "cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "YOUR-ORCID-ID")) | ||
Description: What the package does (one paragraph). | ||
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a | ||
license | ||
c( | ||
person( | ||
given = "Andrew", | ||
family = "Bell", | ||
email = "[email protected]", | ||
role = c("cre", "aut") | ||
), | ||
person( | ||
given = "Anthony", | ||
family = "Flores", | ||
email = "[email protected]", | ||
role = "aut" | ||
)) | ||
Description: This package contains themes for {ggplot2} and {gt} that follow the styles of OJO / OKPI / TOK. | ||
License: GPL (>= 3) + file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.2 | ||
Depends: | ||
ggplot2 | ||
Imports: | ||
extrafont, | ||
ggrepel | ||
Suggests: | ||
testthat (>= 3.0.0) | ||
colorspace, | ||
dplyr, | ||
ggplot2 (>= 3.0.0), | ||
gt, | ||
rlang, | ||
showtext, | ||
stringr, | ||
sysfonts, | ||
tidyselect | ||
Suggests: | ||
ggrepel, | ||
knitr, | ||
lubridate, | ||
ojodb, | ||
rmarkdown, | ||
testthat (>= 3.0.0), | ||
tibble, | ||
vdiffr | ||
Remotes: | ||
openjusticeok/ojodb | ||
Config/testthat/edition: 3 | ||
URL: https://openjusticeok.github.io/ojothemes/ | ||
VignetteBuilder: knitr |
Oops, something went wrong.