Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Build and deploy website"

on:
workflow_dispatch:
pull_request:
push:
branches: ["main"]

permissions:
pages: "write"
id-token: "write"

jobs:
build-site:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"

- name: "Install uv"
uses: "astral-sh/setup-uv@v6"
with:
enable-cache: true

- name: "Set up Python"
uses: "actions/setup-python@v5"

- name: "Install the project via uv"
run: "uv sync --locked --group docs"

- name: "Build site"
run: "uv run zensical build"

- name: "Upload site artifact"
uses: actions/upload-pages-artifact@v3
with:
name: "github-pages"
path: "site"
retention-days: "3"

deploy-site:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }} # test

runs-on: "ubuntu-latest"
needs: "build-site"

environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"

steps:
- name: "Deploy site to GitHub Pages"
uses: actions/deploy-pages@v4
with:
artifact_name: "github-pages"
preview: false
token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ docs/source/generated
demo/*
demo/demo-data.tsv

site/**

# poetry lockfile
poetry.lock
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

17 changes: 17 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# API reference


## Models
::: pyter.models

## Data
::: pyter.data

## Distributions
::: pyter.distributions

## Inference
::: pyter.infer

## Constraints
::: pyter.constraints
4 changes: 2 additions & 2 deletions docs/source/index.md → docs/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# About Pyter
# Pyter

Pyter is an open-source [Python](https://www.python.org/) package for analyzing virological data. It allows for flexible [Bayesian inference](https://xcelab.net/rm/statistical-rethinking/) of virus titers and virus environmental halflives from raw data on cell infection. Both endpoint titration and plaque assays are supported.


Pyter is designed to be fairly plug-and-play for the scientist who has a relatively standard problem but is a novice coder, but the API also permits a more experienced user to build their own custom models without reinventing the wheel.

PyTer uses [Numpyro](https://pyro.ai/numpyro/) to specify models and perform inference from them.
Pyter uses [NumPyro](https://pyro.ai/numpyro/) to specify models and perform inference from them.
File renamed without changes.
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

76 changes: 0 additions & 76 deletions docs/source/conf.py

This file was deleted.

10 changes: 0 additions & 10 deletions docs/source/contents.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs/source/modules.md

This file was deleted.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
docs = [
"mkdocstrings>=1.0.4",
"mkdocstrings-python>=2.0.3",
"zensical>=0.0.43",
]
test = [
"pytest>=8.4.1",
]
Loading
Loading