Skip to content

Commit 1739c71

Browse files
committed
update via pkgdown::build_site_github_pages
1 parent 757c2ec commit 1739c71

40 files changed

+172
-118
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
^_pkgdown\.yml$
55
^docs$
66
^pkgdown$
7+
^\.github$

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/pkgdown.yaml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown.yaml
13+
14+
permissions: read-all
15+
16+
jobs:
17+
pkgdown:
18+
runs-on: ubuntu-latest
19+
# Only restrict concurrency for non-PR jobs
20+
concurrency:
21+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
22+
env:
23+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: r-lib/actions/setup-pandoc@v2
30+
31+
- uses: r-lib/actions/setup-r@v2
32+
with:
33+
use-public-rspm: true
34+
35+
- uses: r-lib/actions/setup-r-dependencies@v2
36+
with:
37+
extra-packages: any::pkgdown, local::.
38+
needs: website
39+
40+
- name: Build site
41+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
42+
shell: Rscript {0}
43+
44+
- name: Deploy to GitHub pages 🚀
45+
if: github.event_name != 'pull_request'
46+
uses: JamesIves/github-pages-deploy-action@v4.5.0
47+
with:
48+
clean: false
49+
branch: gh-pages
50+
folder: docs

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Suggests:
4242
rmarkdown,
4343
testthat (>= 3.0.0)
4444
VignetteBuilder: knitr
45-
URL: https://github.com/nationalparkservice/NPSutils
45+
URL: https://github.com/nationalparkservice/NPSutils, https://nationalparkservice.github.io/NPSutils/
4646
BugReports: https://github.com/nationalparkservice/NPSutils/issues
4747
Roxygen: list(markdown = TRUE)
4848
Config/testthat/edition: 3

docs/404.html

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/NPSutils.html

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/news/index.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pkgdown: 2.1.0
33
pkgdown_sha: ~
44
articles:
55
NPSutils: NPSutils.html
6-
last_built: 2024-08-26T20:13Z
6+
last_built: 2024-08-26T20:19Z
77
urls:
8-
reference: https://github.com/nationalparkservice/NPSutils/reference
9-
article: https://github.com/nationalparkservice/NPSutils/articles
8+
reference: https://nationalparkservice.github.io/NPSutils/reference
9+
article: https://nationalparkservice.github.io/NPSutils/articles

0 commit comments

Comments
 (0)