Skip to content

docs: use dbitemplate #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main, master]
tags: ['*']
pull_request:
branches: [main, master]

name: pkgdown

Expand All @@ -12,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
isExtPR: ${{ github.event.pull_request.head.repo.fork == true }}
steps:
- uses: actions/checkout@v4

Expand All @@ -26,8 +29,14 @@ jobs:
extra-packages: pkgdown
needs: website

- name: Deploy package
- name: Deploy pkgdown website
if: contains(env.isExtPR, 'false')
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'

- name: Build pkgdown website
if: contains(env.isExtPR, 'true')
run: |
Rscript -e 'pkgdown::build_site(new_process = FALSE)'
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Suggests:
knitr,
rmarkdown
VignetteBuilder: knitr
Config/Needs/website:r-dbi/dbitemplate
4 changes: 3 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
url: https://r-dbi.github.io/dbi3

template:
package: dbitemplate
bootstrap: 5