Skip to content

Commit 0d64f07

Browse files
author
Carly Lovas
committed
static html
1 parent 1f62a87 commit 0d64f07

4 files changed

Lines changed: 667 additions & 189 deletions

File tree

.github/workflows/pkgdown.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ on:
77
release:
88
types: [published]
99
workflow_dispatch:
10-
1110
name: pkgdown.yaml
12-
1311
permissions: read-all
14-
1512
jobs:
1613
pkgdown:
1714
runs-on: ubuntu-latest
@@ -24,20 +21,19 @@ jobs:
2421
contents: write
2522
steps:
2623
- uses: actions/checkout@v6
27-
2824
- uses: r-lib/actions/setup-pandoc@v2
29-
3025
- uses: r-lib/actions/setup-r@v2
31-
3226
- uses: r-lib/actions/setup-r-dependencies@v2
3327
with:
3428
extra-packages: any::pkgdown, local::.
3529
needs: website
36-
3730
- name: Build site
3831
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
3932
shell: Rscript {0}
40-
33+
- name: Restore pre-built article # ← AFTER build, inside steps
34+
run: |
35+
mkdir -p docs/articles
36+
cp inst/static-articles/data_cleaning_functions.html docs/articles/data_cleaning_functions.html
4137
- name: Deploy to GitHub pages 🚀
4238
if: github.event_name != 'pull_request'
4339
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0

_pkgdown.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
url: https://carlylovas.github.io/species.shifts/
22
template:
33
bootstrap: 5
4+
articles:
5+
- title: "Articles"
6+
contents:
7+
- data_cleaning_functions # listed for nav, but excluded from build below
8+
- plotting_functions
49

10+
vignettes:
11+
exclude:
12+
- data_cleaning_functions.Rmd

0 commit comments

Comments
 (0)