Skip to content

Commit 46bd276

Browse files
authored
Merge pull request #145 from kabilar/notebooks
Display Jupyter Notebooks
2 parents 4c70730 + ff4e517 commit 46bd276

File tree

7 files changed

+26
-5
lines changed

7 files changed

+26
-5
lines changed

.github/workflows/build-docs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ name: Build MkDocs
22
on:
33
push:
44
pull_request:
5+
workflow_dispatch:
56

67
jobs:
78
build:
89
runs-on: ubuntu-latest
910
steps:
1011
- name: Checkout repository
11-
uses: actions/checkout@v1
12+
uses: actions/checkout@v4
13+
with:
14+
submodules: true
1215

1316
- name: Install version of Python
1417
uses: actions/setup-python@v5

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
- name: Codespell
2222
uses: codespell-project/actions-codespell@v2

.github/workflows/publishdocs.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ on:
33
push:
44
branches:
55
- master
6+
workflow_dispatch:
67

78
jobs:
89
build:
910
name: Deploy docs
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Checkout master
13-
uses: actions/checkout@v1
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: true
1417

1518
- name: Deploy docs
1619
uses: mhausenblas/mkdocs-deploy-gh-pages@master
1720
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "doc/example-notebooks"]
2+
path = docs/example-notebooks
3+
url = https://github.com/dandi/example-notebooks
4+
datalad-url = https://github.com/dandi/example-notebooks

docs/example-notebooks

Submodule example-notebooks added at cc812c2

mkdocs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ nav:
6363
- DANDI Hub: "50_hub.md"
6464
- Tutorials:
6565
- Dandiset Examples: https://dandi.github.io/example-notebooks
66+
- DANDI User Guide, Part I: "example-notebooks/dandi/DANDI User Guide, Part I.ipynb"
67+
- DANDI User Guide, Part II: "example-notebooks/dandi/DANDI User Guide, Part II.ipynb"
68+
- Simple Dandiset Search: "example-notebooks/tutorials/neurodatarehack_2024/simple_dandiset_search.ipynb"
69+
- Advanced Asset Search: "example-notebooks/tutorials/cosyne_2023/advanced_asset_search.ipynb"
70+
- Streaming and interacting with NWB data: "example-notebooks/tutorials/bcm_2024/analysis-demo.ipynb"
71+
- NWB Widget Demo: "example-notebooks/demos/NWBWidget-demo.ipynb"
6672
- Health Status:
6773
- Dandisets: https://github.com/dandi/dandisets-healthstatus
6874
- Services: https://status.dandiarchive.org
@@ -88,6 +94,9 @@ markdown_extensions:
8894
plugins:
8995
- search
9096
- open-in-new-tab
97+
- mkdocs-jupyter:
98+
ignore_h1_titles: True
99+
include: ["*.ipynb"]
91100

92101
# Customize theme
93102
extra:

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
mkdocs-material>=9.6.3
22
pymdown-extensions
3-
mkdocs-open-in-new-tab
3+
mkdocs-open-in-new-tab
4+
mkdocs-jupyter

0 commit comments

Comments
 (0)