Skip to content

Commit 7a9b7ef

Browse files
committed
Documentation site for devel version
1 parent 3613a86 commit 7a9b7ef

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/.gitignore

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

.github/workflows/pkgdown.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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: [devel]
6+
release:
7+
types: [published]
8+
workflow_dispatch:
9+
10+
name: pkgdown
11+
12+
jobs:
13+
pkgdown:
14+
runs-on: ubuntu-latest
15+
# Only restrict concurrency for non-PR jobs
16+
concurrency:
17+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
18+
env:
19+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- uses: r-lib/actions/setup-pandoc@v2
24+
25+
- uses: r-lib/actions/setup-r@v2
26+
with:
27+
use-public-rspm: true
28+
29+
- uses: r-lib/actions/setup-r-dependencies@v2
30+
with:
31+
extra-packages: any::pkgdown, local::.
32+
needs: website
33+
34+
- name: Build site
35+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
36+
shell: Rscript {0}
37+
38+
- name: Deploy to GitHub pages 🚀
39+
if: github.event_name != 'pull_request'
40+
uses: JamesIves/[email protected]
41+
with:
42+
clean: false
43+
branch: gh-pages
44+
folder: docs

_pkgdown.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
url: https://pachterlab.github.io/Voyager/
2+
template:
3+
bootstrap: 5
4+

0 commit comments

Comments
 (0)