Skip to content

Commit

Permalink
ran with pckgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
philouail committed Sep 24, 2024
1 parent 1ad702f commit 8a8839a
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
2 changes: 0 additions & 2 deletions .github/workflows/build_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:

- name: Deploy package
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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.yaml

permissions: read-all

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@v4

- 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 @@ -6,3 +6,4 @@ hidden_file_ext = c(
".gitattributes", ".gitmodules", ".hgtags", ".project", ".seed",
".settings", ".tm_properties"
)
docs
18 changes: 8 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
Package: metabonaut
Title: Exploring and Analyzing LC-MS data
Version: 0.0.1
Authors@R: c(
person(given = "Philippine", family = "Louail",
Authors@R:
c(person(given = "Philippine", family = "Louail",
email = "[email protected]",
role = c("aut", "cre"),
comment = c(ORCID = "0009-0007-5429-6846")),

person(given = "Johannes", family = "Rainer",
person(given = "Johannes", family = "Rainer",
email = "[email protected]",
role = c("aut", "cre"),
role = c("aut"),
comment = c(ORCID = "0000-0002-6977-7147")))
Description: This resource hosts tutorials and end-to-end workflows
describing how to analyse LC-MS/MS data from raw files to annotation
using biocoductor softwares.
describing how to analyse LC-MS/MS data from raw files to
annotation using biocoductor softwares.
License: Artistic-2.0
Encoding: UTF-8
LazyData: false
Expand Down Expand Up @@ -43,9 +42,8 @@ Suggests:
RColorBrewer,
SummarizedExperiment,
pheatmap
URL: https://github.com/rformassspectrometry/metabonaut/
URL: https://github.com/rformassspectrometry/metabonaut/, https://rformassspectrometry.github.io/metabonaut/
BugReports: https://github.com/rformassspectrometry/metabonaut/issues/new
VignetteBuilder: knitr
BiocType: Workflow
biocViews: ?
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Generated by roxygen2: do not edit by hand

8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ and analyzing LC-MS data with Spectra and xcms. Zenodo, May

## Installation

```r
install.packages("BiocManager")
BiocManager::install("RforMassSpectrometry/metabonaut",
dependencies = TRUE, ask = FALSE, update = TRUE)
```




## Contribution

Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: https://rformassspectrometry.github.io/metabonaut/
template:
bootstrap: 5

0 comments on commit 8a8839a

Please sign in to comment.