Skip to content

Commit

Permalink
update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Dec 13, 2024
1 parent 2b29cbe commit e795911
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/deploy-cran-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ jobs:
# For publishing to pages environment
pages: write
id-token: write
with:
# The workflow from r-wasm should produce a CRAN-like repo structure
# Make sure it outputs to `docs/` or configure it accordingly.
output: docs
24 changes: 9 additions & 15 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,15 @@ jobs:
with:
extra-packages: any::pkgdown, local::.

- name: Build site
run: |
# Make sure to specify output directory for pkgdown
# Default build_site() puts site in `docs/`
# We want `docs/pkgdown`, so set the destination in `_pkgdown.yml` or move it after build.
# If pkgdown doesn't natively support subfolders, just build as normal and then move it:
pkgdown::build_site()
dir.create("docs/pkgdown", showWarnings = FALSE)
file.rename("docs/index.html", "docs/pkgdown/index.html")
# Move all built site files into docs/pkgdown
# This might require adjusting depending on your pkgdown structure:
# For example, if pkgdown by default places everything in docs:
system("cp -r docs/* docs/pkgdown/")
system("rm -rf docs/*")
# Now docs/pkgdown contains the pkgdown site
- name: Build site
run: |
pkgdown::build_site()
dir.create("docs/pkgdown", showWarnings = FALSE)
file.rename("docs/index.html", "docs/pkgdown/index.html")
system("cp -r docs/* docs/pkgdown/")
system("rm -rf docs/*")
shell: Rscript {0}


- name: Deploy pkgdown to GitHub Pages 🚀
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit e795911

Please sign in to comment.