Skip to content

Commit

Permalink
Rework documentation
Browse files Browse the repository at this point in the history
Documentation HTML is no longer checked in but created as a Github
artifact.
  • Loading branch information
funkey committed Aug 30, 2023
1 parent e8237a8 commit 764f45b
Show file tree
Hide file tree
Showing 198 changed files with 295 additions and 86,769 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy Docs to GitHub Pages

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

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.11"
mamba-version: "*"
channels: conda-forge
channel-priority: true

- name: Install package and dependencies
run: |
pip install git+https://github.com/funkelab/funlib.learn.torch
python -m pip install -e .[docs]
- name: Build documentation
run: sphinx-build docs/source docs/build/html -W -b html

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/build/html
retention-days: 90

deploy:
if: github.ref == 'refs/heads/main'
needs: build
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ net_iter*
.idea
*.hdf
*.h5
docs/_build/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sample_data.zarr
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file removed docs/_images/tutorial_batch_provider_10_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_11_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_1_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_2_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_4_1.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_5_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_6_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_7_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_batch_provider_8_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_10_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_11_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_12_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_13_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_14_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_15_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_16_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_17_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_18_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_1_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_20_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_21_0.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_22_8.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_22_9.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_23_14.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_5_1.png
Binary file not shown.
Binary file removed docs/_images/tutorial_simple_pipeline_7_1.png
Diff not rendered.
Binary file removed docs/_images/tutorial_simple_pipeline_9_0.png
Diff not rendered.
555 changes: 0 additions & 555 deletions docs/_modules/gunpowder/array.html

This file was deleted.

441 changes: 0 additions & 441 deletions docs/_modules/gunpowder/array_spec.html

This file was deleted.

572 changes: 0 additions & 572 deletions docs/_modules/gunpowder/batch.html

This file was deleted.

486 changes: 0 additions & 486 deletions docs/_modules/gunpowder/batch_request.html

This file was deleted.

Loading

0 comments on commit 764f45b

Please sign in to comment.