Skip to content

Commit

Permalink
Add a button to view tutorial file on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Dec 5, 2023
1 parent e034f07 commit 9191838
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
pushd ${NOTEBOOK_OUTPUT_DIRNAME}
sed -i "s|\"https://colab.research.google.com\"|\"https://colab.research.google.com/github/viskex/viskex.github.io/blob/open-in-colab/${NOTEBOOK_DIRNAME}/${NOTEBOOK_BASENAME}\"|g" ${NOTEBOOK_OUTPUT_BASENAME}
sed -i "s|\"https://kaggle.com\"|\"https://kaggle.com/kernels/welcome?src=https://github.com/viskex/viskex.github.io/blob/open-in-kaggle/${NOTEBOOK_DIRNAME}/${NOTEBOOK_BASENAME}\"|g" ${NOTEBOOK_OUTPUT_BASENAME}
sed -i "s|\"https://github.com\"|\"https://github.com/viskex/viskex/blob/main/${NOTEBOOK_DIRNAME}/${NOTEBOOK_BASENAME}\"|g" ${NOTEBOOK_OUTPUT_BASENAME}
popd
done
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions share/jupyter/nbconvert/templates/html/viskex/index.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<a target="_blank" href="https://kaggle.com">
<img src="https://kaggle.com/static/images/open-in-kaggle.svg">
</a>
<a target="_blank" href="https://github.com">
<img src="https://badgen.net/badge/icon/View%20on%20GitHub?icon=github&label">
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 9191838

Please sign in to comment.