Skip to content

Commit

Permalink
Update and enhance nbtutorial builder (#205)
Browse files Browse the repository at this point in the history
- Update `nbtutorial` builder to use the `nbformat` library to write notebooks. 
- Preparations in order to support tutorial solutions
- Fix the `clean-notebook` commit hook's handling of checking many notebooks
  • Loading branch information
alcarney authored Mar 23, 2020
1 parent e5f9fcf commit e3e5fc2
Show file tree
Hide file tree
Showing 44 changed files with 714 additions and 290 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python --version
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install -e .[doc]
python -m pip install -r docs/requirements.txt
- name: Build Docs
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"editor.rulers": [
79
]
}
},
"restructuredtext.linter.disabled": true
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
"cwd": "${workspaceRoot}"
}
},
{
"label": "Build Tutorial",
"type": "shell",
"command": "source ${workspaceRoot}/.dev/bin/activate && sphinx-build -M nbtutorial docs/ docs/_build/ -E -a",
"problemMatcher": [],
"group": "build",
"options": {
"cwd": "${workspaceRoot}"
}
},
{
"label": "Edit Gallery",
"type": "shell",
Expand Down Expand Up @@ -104,6 +114,16 @@
"cwd": "${workspaceRoot}/.scratch"
}
},
{
"label": "Open Tutorial",
"type": "shell",
"command": "source ${workspaceRoot}/.dev/bin/activate && jupyter-lab",
"problemMatcher": [],
"group": "build",
"options": {
"cwd": "${workspaceRoot}/docs/_build/nbtutorial/users"
}
},
{
"label": "Test File",
"type": "shell",
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ v0.0.4 - 2020-02-15

Added
^^^^^

- The concept of a :code:`Definition`.

+ This incorporates the existing concept of a :code:`Shape` and expands on it
to cover input parameters and more
+ Definitions can be derived from other definitions by passing in existing
Expand Down
Loading

0 comments on commit e3e5fc2

Please sign in to comment.