Skip to content

Commit

Permalink
Added a nojekyll file to display documentation on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
fercer committed Sep 29, 2023
1 parent 7cfb03c commit 8112abf
Show file tree
Hide file tree
Showing 11 changed files with 198 additions and 177 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: documentation

on:
push:

jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Empty file added docs/.nojekyll
Empty file.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"myst_nb",
"autoapi.extension",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode"
"sphinx.ext.viewcode",
"sphinx.ext.githubpages"
]

autoapi_dirs = ["../../zarrdataset"]
Expand Down
40 changes: 20 additions & 20 deletions jupyter_execute/examples/advanced_example_pytorch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "9c447ef0",
"id": "f3a9f6b1",
"metadata": {},
"source": [
"# Integration of ZarrDataset with PyTorch's DataLoader (Advanced)"
Expand All @@ -11,7 +11,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3819451a",
"id": "3f7e048c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -24,7 +24,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5f56235d",
"id": "6086aa43",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -45,7 +45,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ee28ea66",
"id": "df5fa55c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,15 +60,15 @@
},
{
"cell_type": "markdown",
"id": "0c9ef47a",
"id": "904ba888",
"metadata": {},
"source": [
"### Extracting patches of size 128x128x32 voxels from a three-dimensional image"
]
},
{
"cell_type": "markdown",
"id": "590e9773",
"id": "422d652a",
"metadata": {},
"source": [
"Sample the image randomly"
Expand All @@ -77,7 +77,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5c7b24b3",
"id": "e02745e0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -87,7 +87,7 @@
},
{
"cell_type": "markdown",
"id": "ebcad6e2",
"id": "bb6e137d",
"metadata": {},
"source": [
"Transform the input data from uint16 to float16 with a torchvision pre-processing pipeline"
Expand All @@ -96,7 +96,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b743b256",
"id": "a3769ba3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -109,7 +109,7 @@
},
{
"cell_type": "markdown",
"id": "ed360d3c",
"id": "6d5081f2",
"metadata": {},
"source": [
"Pass the pre-processing function to ZarrDataset to be used when generating the samples.\n",
Expand All @@ -120,7 +120,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f41a29dd",
"id": "f916a7e7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -145,7 +145,7 @@
},
{
"cell_type": "markdown",
"id": "3b108376",
"id": "c085f4a6",
"metadata": {},
"source": [
"### Create a ChainDataset from a set of ZarrDatasets that can be put together a single large dataset"
Expand All @@ -154,7 +154,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d860fb62",
"id": "0ac8b9d9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -163,7 +163,7 @@
},
{
"cell_type": "markdown",
"id": "1163e1e3",
"id": "46886013",
"metadata": {},
"source": [
"Make sure the chained_zarrdataset_worker_init_fn function is passed to the DataLoader, so the workers can initialize the dataset correctly"
Expand All @@ -172,7 +172,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "290966fb",
"id": "3afa42ee",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -186,7 +186,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "45bf7f87",
"id": "29aee72f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -211,7 +211,7 @@
},
{
"cell_type": "markdown",
"id": "ae453ed7",
"id": "c4c774a8",
"metadata": {},
"source": [
"### Generate a grid with the sampled patches using `torchvision` utilities"
Expand All @@ -220,7 +220,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "73546b6b",
"id": "e8b997be",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -230,7 +230,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "caa41605",
"id": "5de13983",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -243,7 +243,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f499043b",
"id": "4915d39d",
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading

0 comments on commit 8112abf

Please sign in to comment.