Skip to content

Commit

Permalink
update docs and change doc site deploy way
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Dec 12, 2023
1 parent 2be7a47 commit f454aa6
Show file tree
Hide file tree
Showing 160 changed files with 164 additions and 20,835 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ inst/extdata/COSMIC_v3.4_SBS_GRCh37.rds
inst/extdata/COSMIC_v3.4_SV_GRCh38.rds
inst/extdata/human_T2T_gene_info.rds
inst/extdata/ce11_gene_info.rds
docs
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: sigminer
Title: Extract, Analyze and Visualize Mutational Signatures for Genomic
Variations
Version: 2.2.2
Version: 2.3.0
Authors@R: c(
person("Shixiang", "Wang", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9855-7357")),
Expand All @@ -26,7 +26,7 @@ Description: Genomic alterations including single nucleotide substitution,
extract, analyze and visualize signatures from genomic alteration
records, thus providing new insight into cancer study.
License: MIT + file LICENSE
URL: https://github.com/ShixiangWang/sigminer
URL: https://github.com/ShixiangWang/sigminer, https://shixiangwang.github.io/sigminer/, https://shixiangwang.github.io/sigminer-book/
BugReports: https://github.com/ShixiangWang/sigminer/issues
Depends:
R (>= 3.5)
Expand Down
36 changes: 36 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ NULL
#' data(centromeres.hg38)
NULL

#' Location of Centromeres at Genome Build T2T
#' @docType data
#' @name centromeres.T2T
#' @format A data.frame
#' @source from T2T study
#' @examples
#' data(centromeres.T2T)
NULL

#' Location of Centromeres at Genome Build mm10
#' @docType data
#' @name centromeres.mm10
Expand Down Expand Up @@ -62,6 +71,15 @@ NULL
#' data(chromsize.hg38)
NULL

#' Chromosome Size of Genome Build T2T
#' @docType data
#' @name chromsize.T2T
#' @format A data.frame
#' @source from T2T study
#' @examples
#' data(chromsize.T2T)
NULL

#' Chromosome Size of Genome Build mm10
#' @docType data
#' @name chromsize.mm10
Expand Down Expand Up @@ -96,6 +114,15 @@ NULL
#' data(cytobands.hg38)
NULL

#' Location of Chromosome Cytobands at Genome Build T2T
#' @docType data
#' @name cytobands.T2T
#' @format A data.frame
#' @source from T2T study
#' @examples
#' data(cytobands.T2T)
NULL

#' Location of Chromosome Cytobands at Genome Build mm10
#' @docType data
#' @name cytobands.mm10
Expand Down Expand Up @@ -130,6 +157,15 @@ NULL
#' data(transcript.hg38)
NULL

#' Merged Transcript Location at Genome Build T2T
#' @docType data
#' @name transcript.T2T
#' @format A `data.table`
#' @source from T2T study.
#' @examples
#' data(transcript.T2T)
NULL

#' Merged Transcript Location at Genome Build mm10
#' @docType data
#' @name transcript.mm10
Expand Down
9 changes: 5 additions & 4 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ template:
primary: "#0054AD"
border-radius: 0.5rem
btn-border-radius: 0.25rem
# params:
# bootswatch: united
destination: docs

authors:
Shixiang Wang:
Expand Down Expand Up @@ -126,18 +123,22 @@ reference:
- CN.features
- centromeres.hg19
- centromeres.hg38
- centromeres.T2T
- centromeres.mm10
- centromeres.mm9
- chromsize.hg19
- chromsize.hg38
- chromsize.T2T
- chromsize.mm10
- - chromsize.mm9
- chromsize.mm9
- cytobands.hg19
- cytobands.hg38
- cytobands.T2T
- cytobands.mm10
- cytobands.mm9
- transcript.hg19
- transcript.hg38
- transcript.T2T
- transcript.mm10
- transcript.mm9
- title: Helpers
Expand Down
125 changes: 0 additions & 125 deletions docs/404.html

This file was deleted.

92 changes: 0 additions & 92 deletions docs/LICENSE-text.html

This file was deleted.

Loading

0 comments on commit f454aa6

Please sign in to comment.