From 847a62c62bb84450592e2a6b5be57ab94a6bf582 Mon Sep 17 00:00:00 2001 From: Mark Webster Date: Sun, 6 Oct 2024 20:09:17 +0100 Subject: [PATCH] Add package site --- .Rbuildignore | 4 ++++ .github/.gitignore | 1 + .github/workflows/pkgdown.yaml | 35 ++++++++++++++++++++++++++++++++++ .gitignore | 1 + DESCRIPTION | 1 + _pkgdown.yml | 4 ++++ 6 files changed, 46 insertions(+) create mode 100644 .github/.gitignore create mode 100644 .github/workflows/pkgdown.yaml create mode 100644 _pkgdown.yml diff --git a/.Rbuildignore b/.Rbuildignore index 6d1844b..8ab0cdd 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -5,3 +5,7 @@ ^Meta$ ^data-raw$ ^README\.Rmd$ +^_pkgdown\.yml$ +^docs$ +^pkgdown$ +^\.github$ diff --git a/.github/.gitignore b/.github/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.github/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml new file mode 100644 index 0000000..086d08c --- /dev/null +++ b/.github/workflows/pkgdown.yaml @@ -0,0 +1,35 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/master/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +on: + push: + branches: [main, master] + release: + types: [published] + workflow_dispatch: + +name: pkgdown + +jobs: + pkgdown: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v2 + + - 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: pkgdown + needs: website + + - name: Deploy package + 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)' diff --git a/.gitignore b/.gitignore index 7a7155e..0691ddd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ inst/doc /doc/ /Meta/ +docs diff --git a/DESCRIPTION b/DESCRIPTION index d84e0e0..aa91d11 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -36,3 +36,4 @@ Suggests: rmarkdown VignetteBuilder: knitr LazyData: true +URL: https://charnelmouse.github.io/autodb/ diff --git a/_pkgdown.yml b/_pkgdown.yml new file mode 100644 index 0000000..db7e647 --- /dev/null +++ b/_pkgdown.yml @@ -0,0 +1,4 @@ +url: https://charnelmouse.github.io/autodb/ +template: + bootstrap: 5 +