Skip to content

Commit b339be4

Browse files
authored
Merge pull request #1 from psobolewskiPhD/setup_jupyter_book
Setup jupyter book
2 parents 928ad5d + 499d8b1 commit b339be4

File tree

4 files changed

+130
-1
lines changed

4 files changed

+130
-1
lines changed

.github/workflows/build_pages.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: deploy-book
2+
3+
# Run this when the master or main branch changes
4+
on:
5+
push:
6+
branches:
7+
- main
8+
# If your git repository has the Jupyter Book within some-subfolder next to
9+
# unrelated files, you can make this run only if a file within that specific
10+
# folder has been modified.
11+
#
12+
# paths:
13+
# - some-subfolder/**
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
19+
permissions:
20+
contents: read
21+
pages: write
22+
id-token: write
23+
24+
# Allow one concurrent deployment, cancelling any in-progress deployments
25+
# This is useful if you are making a lot of changes to the book
26+
# and don't want to wait for the previous deployment to finish
27+
concurrency:
28+
group: "pages"
29+
cancel-in-progress: true
30+
31+
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
32+
jobs:
33+
deploy-book:
34+
runs-on: ubuntu-latest
35+
permissions:
36+
pages: write
37+
id-token: write
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
# Install dependencies
42+
- name: Set up Python 3.11
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: 3.11
46+
47+
- name: Install dependencies
48+
run: |
49+
pip install -r jupyter-book
50+
51+
# (optional) Cache your executed notebooks between runs
52+
# if you have config:
53+
# execute:
54+
# execute_notebooks: cache
55+
# - name: cache executed notebooks
56+
# uses: actions/cache@v3
57+
# with:
58+
# path: _build/.jupyter_cache
59+
# key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
60+
61+
# Build the book
62+
- name: Build the book
63+
run: |
64+
jupyter-book build .
65+
66+
# Upload the book's HTML as an artifact
67+
- name: Upload artifact
68+
uses: actions/upload-pages-artifact@v3
69+
with:
70+
path: "_build/html"
71+
72+
# Deploy the book's HTML to GitHub Pages
73+
- name: Deploy to GitHub Pages
74+
id: deployment
75+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,10 @@ cython_debug/
163163
# Image files
164164
*.svs
165165
*.zarr
166-
*.bfmemo
166+
*.bfmemo
167+
168+
# jupyter-book build output
169+
_build/
170+
171+
# macOS file
172+
.DS_Store

_config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Book settings
2+
# Learn more at https://jupyterbook.org/customize/config.html
3+
4+
title: Scaling-up deep learning inference to large-scale bioimage data
5+
author: Fernando Cervantes
6+
copyright: 2025
7+
# logo: logo.png
8+
9+
# Only build files in the table of contents.
10+
only_build_toc_files: true
11+
12+
13+
# Don't execute the code cells in the book when building it
14+
# See https://jupyterbook.org/content/execute.html
15+
execute:
16+
execute_notebooks: off
17+
18+
# Define the name of the latex output file for PDF builds
19+
latex:
20+
latex_documents:
21+
targetname: book.tex
22+
23+
# Add a bibtex file so that we can create citations
24+
# bibtex_bibfiles:
25+
# - references.bib
26+
27+
# Information about where the book exists on the web
28+
repository:
29+
url: https://github.com/fercer/scaling-up-with-dask-tutorial/tree/main # Online location of your book
30+
branch: main # Which branch of the repository should be used when creating links (optional)
31+
32+
# Add GitHub buttons to your book
33+
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
34+
html:
35+
use_issues_button: false
36+
use_repository_button: true
37+
38+
parse:
39+
myst_enable_extensions:
40+
- html_image

_toc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Table of contents
2+
# Learn more at https://jupyterbook.org/customize/toc.html
3+
4+
format: jb-book
5+
root: README
6+
chapters:
7+
- file: notebooks/Zarr_and_Dask_for_large-scale_imaging-Part-1.ipynb
8+
- file: notebooks/Zarr_and_Dask_for_large-scale_imaging-Part-2.ipynb

0 commit comments

Comments
 (0)