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
46 changes: 31 additions & 15 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,45 @@ on:
branches:
- main

# This job installs dependencies, build the book, and pushes it to `gh-pages`
env:
BASE_URL: /${{ github.event.repository.name }}

# Set GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# Do NOT cancel in-progress runs (allow these production deployments to complete).
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-book:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Install dependencies
- uses: actions/checkout@v6
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"

python-version: "3.14"
- name: Install dependencies
run: |
pip install jupyter-book

python -m pip install --upgrade pip
pip install jupyter-book
- name: Build the book
run: |
jupyter-book build notebooks

- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v4.0.0
cd notebooks
jupyter-book build --html
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: notebooks/_build/html
path: "notebooks/_build/html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,5 @@ jobs/
# pixi environments
.pixi/*
!.pixi/config.toml

notebooks/_build
9 changes: 0 additions & 9 deletions notebooks/_config.yml

This file was deleted.

9 changes: 9 additions & 0 deletions notebooks/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Hide "Made with MyST" branding in navbar */
.myst-home-link {
display: none !important;
}

/* Hide "Made with MyST" branding in sidebar (if present) */
.myst-made-with-myst {
display: none !important;
}
6 changes: 0 additions & 6 deletions notebooks/_toc.yml

This file was deleted.

23 changes: 23 additions & 0 deletions notebooks/myst.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 1
project:
title: Single-cell analysis repository
# To display author(s)
# authors:
# - name: Author One
# email: author1@email.com
# affiliation:
# - Institute A
# - name: Author Two
# email: author2@email.com
# To link to GitHub repo
# github: GitHubID/REPO_NAME
toc:
- file: index.md
- title: Template notebook
children:
- file: template.ipynb
site:
options:
folders: true
style: _static/custom.css
template: book-theme
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ test = [
"pytest",
"pytest-cov",
]
docs = [ "jupyter-book>=1" ]
agentic = [ "jcodemunch-mcp" ]
jupyter = [
"ipywidgets",
"jupyterlab",
Expand Down
Loading