Skip to content

Commit

Permalink
Backport changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed May 21, 2024
1 parent a0f20ee commit dff5420
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 11 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

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 }}
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: 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/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rhistory
.RData
revdep
docs
25 changes: 14 additions & 11 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Package: evaluate
Type: Package
Title: Parsing and Evaluation Tools that Provide More Details than the Default
Version: 0.23
Package: evaluate
Title: Parsing and Evaluation Tools that Provide More Details than the
Default
Version: 0.23.0
Authors@R: c(
person("Hadley", "Wickham", role = "aut"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre")),
person("Yihui", "Xie", role = "aut",
comment = c(ORCID = "0000-0003-0645-5666")),
person("Michael", "Lawrence", role = "ctb"),
person("Thomas", "Kluyver", role = "ctb"),
person("Jeroen", "Ooms", role = "ctb"),
Expand All @@ -13,10 +15,10 @@ Authors@R: c(
person("Hiroaki", "Yutani", role = "ctb"),
person("Michel", "Lang", role = "ctb"),
person("Karolis", "Koncevičius", role = "ctb"),
person(given = "Posit Software, PBC", role = c("cph", "fnd"))
)
Description: Parsing and evaluation tools that make it easy to recreate the
command line behaviour of R.
person("Posit Software, PBC", role = c("cph", "fnd"))
)
Description: Parsing and evaluation tools that make it easy to recreate
the command line behaviour of R.
License: MIT + file LICENSE
URL: https://github.com/r-lib/evaluate
BugReports: https://github.com/r-lib/evaluate/issues
Expand All @@ -31,7 +33,8 @@ Suggests:
rlang,
testthat (>= 3.0.0),
withr
RoxygenNote: 7.2.3
Config/Needs/website: tidyverse/tidytemplate
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Config/testthat/edition: 3
RoxygenNote: 7.2.3
12 changes: 12 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
url: evaluate.r-lib.org

template:
package: tidytemplate
bootstrap: 5

includes:
in_header: |
<script defer data-domain="evaluate.r-lib.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
development:
mode: auto

0 comments on commit dff5420

Please sign in to comment.