Skip to content

Commit

Permalink
docs: create website from meta.yml files
Browse files Browse the repository at this point in the history
resolves #16
  • Loading branch information
kelly-sovacool committed Oct 25, 2023
1 parent 85f93ac commit 9f2881f
Show file tree
Hide file tree
Showing 31 changed files with 8,385 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ modules/nf-core/** linguist-generated
subworkflows/nf-core/** linguist-generated
*.config linguist-language=nextflow
assets/** linguist-generated
_extensions/** linguist-generated
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Pre-commit will run the hooks every time you commit.

Keep the changelog up to date with all notable changes in `CHANGELOG.md`[^2].

[^2]: changelog guidelines: https://keepachangelog.com/en/1.1.0/
[^2]: changelog guidelines: <https://keepachangelog.com/en/1.1.0/>

## VS code extensions

Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
branches: main

name: Render and Publish

permissions:
contents: write
pages: write

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Setup Python
uses: actions/setup-python@v3

- name: Setup R
uses: r-lib/actions/setup-r@v2

- name: Install Python packages
run: |
pip install --upgrade pip -r docs/requirements.txt
- name: Install R packages
shell: Rscript {0}
run: |
install.packages(c('dplyr', 'glue', 'here', 'knitr', 'tidyr'. 'yaml'))
- name: prerender
run: |
python docs/create-listings.py
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ test.tap
test_output/
tests/data/
work/

/docs/modules/
/docs/subworkflows/
/_site/
/.quarto/
.Rproj.user
*.Rproj
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
exclude: ^assets/
exclude: |
(?x)(
^assets/|
^docs/.*.html|
^_extensions/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Reusable modules and subworkflows for Nextflow pipelines

[![test](https://github.com/CCBR/nf-modules/actions/workflows/test.yml/badge.svg)](https://github.com/CCBR/nf-modules/actions/workflows/test.yml)
[![docs](https://img.shields.io/badge/docs-📖-blue)](https://ccbr.github.io/nf-modules/)

## Usage

Expand Down Expand Up @@ -38,7 +39,7 @@ Come across a **bug**? Open an [issue](https://github.com/CCBR/nf-modules/issues

Have a **question**? Ask it in [discussions](https://github.com/CCBR/nf-modules/discussions).

Want to **contribute** to this project? Check out the [contributing guidelines](.github/CONTRIBUTING.md).
Want to **contribute** to this project? Check out the [contributing guidelines](/.github/CONTRIBUTING.md).

## References

Expand Down
7 changes: 7 additions & 0 deletions _extensions/quarto-ext/fontawesome/_extension.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9f2881f

Please sign in to comment.