Skip to content

Commit 89663f4

Browse files
committed
add pkgdwn and update citation
1 parent 9f6fdc8 commit 89663f4

File tree

6 files changed

+55
-11
lines changed

6 files changed

+55
-11
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
^man\figures\.gitkeep$
55
^studies$
66
^CITATION\.cff$
7+
^_pkgdown\.yml$
8+
^docs$
9+
^pkgdown$

.github/workflows/check-standard.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ jobs:
2929
R_KEEP_PKG_SOURCE: yes
3030

3131
steps:
32-
- name: Install stable toolchain
33-
if: ${{startsWith(matrix.config.os, 'windows')}}
34-
uses: actions-rs/toolchain@v1
35-
with:
36-
toolchain: stable
37-
target: x86_64-pc-windows-msvc
38-
profile: minimal
39-
default: true
40-
4132
- uses: actions/checkout@v3
4233

4334
- uses: r-lib/actions/setup-pandoc@v2

.github/workflows/pkgdown.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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
13+
14+
jobs:
15+
pkgdown:
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 }}
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: r-lib/actions/setup-pandoc@v2
28+
29+
- uses: r-lib/actions/setup-r@v2
30+
with:
31+
use-public-rspm: true
32+
33+
- uses: r-lib/actions/setup-r-dependencies@v2
34+
with:
35+
extra-packages: any::pkgdown, local::.
36+
needs: website
37+
38+
- name: Build site
39+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
40+
shell: Rscript {0}
41+
42+
- name: Deploy to GitHub pages 🚀
43+
if: github.event_name != 'pull_request'
44+
uses: JamesIves/github-pages-deploy-action@v4.4.1
45+
with:
46+
clean: false
47+
branch: gh-pages
48+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ rsconnect/
5050

5151
# Mac Specific Files
5252
.DS_Store
53+
docs

CITATION.cff

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ preferred-citation:
5050
doi: 10.1093/nar/gkad871
5151
journal: "Nucleic Acids Research"
5252
month: 1
53-
start: 1 # First page number
54-
end: 9 # Last page number
5553
title: "ClinicalOmicsDB: exploring molecular associations of oncology drug responses in clinical trials"
5654
issue: D1
5755
volume: 52

_pkgdown.yml

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

0 commit comments

Comments
 (0)