Skip to content

Commit

Permalink
CI/CD for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior committed Dec 18, 2024
1 parent 4f22685 commit 82a56f6
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 13 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@ on:
tags:
- "*"
workflow_dispatch:

env:
POETRY_VERSION: 1.8.4
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.12
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}
- run: poetry install
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
run: mkdocs gh-deploy --remote-branch gh-pages -f mkdocs.yml --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: biodatageeks.org
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
REQUIREMENTS: docs/requirements.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ venv
.idea
sandbox/
.DS_Store
site/
2 changes: 1 addition & 1 deletion Cargo.lock

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

Binary file added docs/assets/logo-large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Genomic ranges operations

| Features | Bioframe | polars-bio | PyRanges | Pybedtools | PyGenomics | GenomicRanges |
|--------------|--------------------|---------------------|--------------------|--------------------|--------------------|--------------------|
| overlap | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| nearest | :white_check_mark: | :white_check_mark: | :white_check_mark: | | | |
| cluster | :white_check_mark: | | | | | |
| merge | :white_check_mark: | | | | | |
| complement | :white_check_mark: | | | | | |
| select/slice | :white_check_mark: | | | | | |
| | | | | | | |
| coverage | :white_check_mark: | | | | | |
| expand | :white_check_mark: | | | | | |
| sort | :white_check_mark: | | | | | |


## Input/Output
| I/O | Bioframe | polars-bio | PyRanges | Pybedtools | PyGenomics | GenomicRanges |
|------------------|--------------------|------------------------|--------------------|------------|------------|---------------|
| Pandas DataFrame | :white_check_mark: | :white_check_mark: | :white_check_mark: | | | |
| Polars DataFrame | | :white_check_mark: | | | | |
| Polars LazyFrame | | :white_check_mark: | | | | |
| Native readers | | :white_check_mark: | | | | |
6 changes: 5 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Welcome to polars-bio's documentation!
# Next-gen Python DataFrame operations for genomics!

![logo-large.png](assets/logo-large.png)

polars-bio is a :rocket:blazing fast Python DataFrame library for genomics🧬 built on top of [Apache DataFusion](https://datafusion.apache.org/), [Apache Arrow](https://arrow.apache.org/)
and [polars](https://pola.rs/).
9 changes: 9 additions & 0 deletions docs/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"version": "0.2.10",
"title": "0.2.10",
"aliases": [
"latest"
]
}
]
19 changes: 17 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
site_name: polars-bio
site_url: https://biodatageeks.org/polars-bio/
repo_url: https://github.com/biodatageeks/polars-bio
repo_name: biodatageeks/polars-bio
nav:
- Home: index.md
- Quickstart: quickstart.md
- Home:
- polars-bio: index.md
- 🏃🏼‍♂️ Quick start: quickstart.md
- 🔨Features: features.md
- 📚 Tutorial: notebooks/tutorial.ipynb
- ⚙️ API reference: api.md
- Quick start: quickstart.md
- Features: features.md
- Tutorial: notebooks/tutorial.ipynb
- API reference: api.md

Expand All @@ -18,6 +27,8 @@ plugins:
docstring_style: google
theme:
name: material
logo: assets/logo.png
favicon: assets/logo.png
features:
- content.code.copy
- content.code.select
Expand All @@ -33,9 +44,13 @@ theme:
- navigation.tracking
- navigation.instant
- content.footnote.tooltips
icon:
repo: fontawesome/brands/github
extra:
version:
provider: mike
default:
- latest

markdown_extensions:
- admonition
Expand Down

0 comments on commit 82a56f6

Please sign in to comment.