From 925750017aa29c3b73e4c7109eeee3e2014038f8 Mon Sep 17 00:00:00 2001 From: stevencarlislewalker Date: Sat, 14 Sep 2024 15:23:24 -0400 Subject: [PATCH] try adding iidda pkgdown site --- .github/workflows/pkgdown.yaml | 19 +++++++++++++++++++ R/iidda/_pkgdown.yml | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 R/iidda/_pkgdown.yml diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index a794cf54..2ab6ef63 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -45,3 +45,22 @@ jobs: branch: gh-pages folder: R/iidda.api/docs target-folder: iidda.api + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::pkgdown, local::. + needs: website + working-directory: ./R/iidda + + - name: Build site + run: pkgdown::build_site_github_pages(pkg = "R/iidda", new_process = FALSE, install = FALSE, dest_dir = "docs") + shell: Rscript {0} + + - name: Deploy to GitHub pages 🚀 + if: github.event_name != 'pull_request' + uses: JamesIves/github-pages-deploy-action@v4.4.1 + with: + clean: false + branch: gh-pages + folder: R/iidda/docs + target-folder: iidda diff --git a/R/iidda/_pkgdown.yml b/R/iidda/_pkgdown.yml new file mode 100644 index 00000000..39acabe3 --- /dev/null +++ b/R/iidda/_pkgdown.yml @@ -0,0 +1,3 @@ +url: https://canmod.github.io/iidda-tools/iidda +template: + bootstrap: 5