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
10 changes: 10 additions & 0 deletions .github/actions/execute_notebooks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
runs:
using: "Composite"
steps:
- name: Install Python Modules
uses: ./.github/actions/install_python_mudules

- name: Execute Notebooks
run: npm run execute_notebooks
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Execute notebooks
uses: ./.github/actions/execute_notebooks

- name: Build
uses: ./.github/actions/build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Execute Notebooks
uses: ./.github/actions/execute_notebooks

- name: Build
uses: ./.github/actions/build

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
"typecheck": "tsc",
"execute_notebooks": "jupyter nbconvert --inplace --to notebook --execute --allow-errors static/**/*"
},
"dependencies": {
"@docusaurus/core": "^2.3.0",
Expand Down
36 changes: 14 additions & 22 deletions static/hello-world/hello-world.ipynb
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
"nbformat": 4,
"nbformat_minor": 2,
"metadata": {},
"cells": [
{
"metadata": {},
"source": [
"print(\"Hello World!\")"
],
"cell_type": "code",
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Hello World!\n"
]
}
],
"execution_count": null
}
]
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(\"Hello World!\")"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}