Skip to content

Commit

Permalink
Merge pull request #2 from openjusticeok/andrew-overhaul
Browse files Browse the repository at this point in the history
Da Big ojoThemes PR
  • Loading branch information
andrewjbe authored Dec 5, 2024
2 parents 0bddc56 + 7f3431f commit 2e5edf2
Show file tree
Hide file tree
Showing 77 changed files with 4,745 additions and 512 deletions.
5 changes: 5 additions & 0 deletions .Rbuildignore
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$
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
73 changes: 73 additions & 0 deletions .github/workflows/pkgdown.yaml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ vignettes/*.pdf
.Renviron
=======
.Rproj.user
docs
inst/doc
53 changes: 38 additions & 15 deletions DESCRIPTION
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
Loading

0 comments on commit 2e5edf2

Please sign in to comment.