-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Jupyter Notebooks #145
Open
kabilar
wants to merge
30
commits into
dandi:master
Choose a base branch
from
kabilar:notebooks
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
537116a
Render jupyter notebooks on handbook
kabilar c9af0bb
Pin mkdocs-jupyter version to prior release
kabilar ad635d1
Pin psutil version
kabilar 5408d26
Fix syntax
kabilar 0070b38
Update publishdocs workflow
kabilar e754aa1
Update workflow
kabilar d8dc74d
[WIP] Update workflow
kabilar b1b3f61
Update workflow
kabilar 620d0bb
Update Actions fork
kabilar 24d71b4
Remove testing steps from workflow
kabilar 3f816ac
Update path
kabilar 7656f37
List contents of directory
kabilar 9aebe82
Update example-notebooks location
kabilar 2023693
Move example-notebooks directory
kabilar bebfd90
Add notebooks to navigation
kabilar a40f988
Remove test command
kabilar 6039a84
Update format
kabilar 2ddfc7d
Merge branch 'master' of https://github.com/dandi/handbook into noteb…
kabilar ef70744
Deployed 2ddfc7d with MkDocs version: 1.5.3
kabilar 2e6b4c5
Deployed 2ddfc7d with MkDocs version: 1.5.3
kabilar d98d2a5
Revert "Deployed 2ddfc7d with MkDocs version: 1.5.3"
kabilar 935322a
Revert "Deployed 2ddfc7d with MkDocs version: 1.5.3"
kabilar 85cc517
Fix paths
kabilar 73f225f
Fix paths
kabilar 22ed99b
Update GitHub Action
kabilar 30f570c
Fix syntax
kabilar aa7bf66
Revert change since the Action is now updated
kabilar b4db6d5
Revert `psutil` pin
kabilar 3a14d37
Update GHA fork
kabilar 3035943
Revert Actions since contribution is merged
kabilar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
@@ -12,6 +13,11 @@ jobs: | |
- name: Checkout master | ||
uses: actions/checkout@v1 | ||
|
||
- name: Copy example-notebooks repository | ||
run: | | ||
git clone https://github.com/dandi/example-notebooks | ||
mv ./example-notebooks ./docs/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if included as submodule, would remove duplication of URL spec/action to get it here ... |
||
|
||
- name: Deploy docs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mkdocs-material>=9.5.10 | ||
pymdown-extensions | ||
mkdocs-open-in-new-tab | ||
mkdocs-jupyter |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just to include them as a git submodule? that would disambiguate which version we are to render/include (e.g. we might want to avoid some recent one for some reason etc).
cons:
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually prefer this. We use submodules in PyNWB and it's been a headache requiring special clone syntax. This is simpler and easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its been a while since I have used submodules so happy to look into it. I filed an issue (#148) to perhaps expedite this pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is quite easy really, let me know if you need a hand with that.
It is just that without using them we would get "fluctuating" results of the doc build - it would depend on current version which has its pluses and minuses:
+
: we would always be "up to date" with notebooks repo since we would always use current master-
: as a result we might get sporadic docs build failures if something in current state of notebooks would trigger failing their rendering/inclusionbut in either of the cases, in the long run we better also trigger rebuilding of the handbook whenever notebooks collection change.
git submodule
-- it would be matter of just triggering rebuild workflowgit submodule
-- it would require PR or at least a commit to update the state of the submodule.So overall, let's may be proceed without submodules and see where we end up ;-)