Skip to content

Commit e7e4694

Browse files
committed
New packagedown page started
1 parent 4176d7b commit e7e4694

File tree

110 files changed

+13153
-20008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+13153
-20008
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,46 @@
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
13
on:
24
push:
3-
branches:
4-
- main
5-
- master
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
611

712
name: pkgdown
813

914
jobs:
1015
pkgdown:
11-
runs-on: macOS-latest
16+
runs-on: ubuntu-latest
17+
# Only restrict concurrency for non-PR jobs
18+
concurrency:
19+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1220
env:
1321
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1422
steps:
1523
- uses: actions/checkout@v2
1624

17-
- uses: r-lib/actions/setup-r@v1
25+
- uses: r-lib/actions/setup-pandoc@v2
1826

19-
- uses: r-lib/actions/setup-pandoc@v1
20-
21-
- name: Query dependencies
22-
run: |
23-
install.packages('remotes')
24-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
25-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
26-
shell: Rscript {0}
27+
- uses: r-lib/actions/setup-r@v2
28+
with:
29+
use-public-rspm: true
2730

28-
- name: Cache R packages
29-
uses: actions/cache@v2
31+
- uses: r-lib/actions/setup-r-dependencies@v2
3032
with:
31-
path: ${{ env.R_LIBS_USER }}
32-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
33-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
33+
extra-packages: any::pkgdown, local::.
34+
needs: website
3435

35-
- name: Install dependencies
36-
run: |
37-
remotes::install_deps(dependencies = TRUE)
38-
install.packages("pkgdown", type = "binary")
36+
- name: Build site
37+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
3938
shell: Rscript {0}
4039

41-
- name: Install package
42-
run: R CMD INSTALL .
43-
44-
- name: Deploy package
45-
run: |
46-
git config --local user.email "[email protected]"
47-
git config --local user.name "GitHub Actions"
48-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
40+
- name: Deploy to GitHub pages 🚀
41+
if: github.event_name != 'pull_request'
42+
uses: JamesIves/[email protected]
43+
with:
44+
clean: false
45+
branch: gh-pages
46+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Notes.txt
1111
Meta
1212
.Rproj.user
1313
alphasimr.Rproj
14+
docs

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Description: The successor to the 'AlphaSim' software for breeding program
2727
for fast simulation of biallelic sequences according to a population
2828
demographic history [Chen et al. (2009) <doi:10.1101/gr.083634.108>].
2929
License: MIT + file LICENSE
30-
URL: https://github.com/gaynorr/AlphaSimR
30+
URL: https://github.com/gaynorr/AlphaSimR,
31+
https://gaynorr.github.io/AlphaSimR/
3132
Encoding: UTF-8
3233
Depends: R (>= 4.0.0), methods, R6
3334
Imports: Rcpp (>= 0.12.7)

_pkgdown.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
url: https://gaynorr.github.io/AlphaSimR/
2+
template:
3+
bootstrap: 5
4+

docs/404.html

Lines changed: 62 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)