Skip to content

Commit f6dd82c

Browse files
authored
Merge pull request #3 from minrk/update-plausible
update nbviewer image, add plausible
2 parents 6acf781 + 4856476 commit f6dd82c

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/nbviewer.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
replicas: 3
22

3-
image: jupyter/nbviewer:8b013f7
4-
5-
extraEnv:
6-
GOOGLE_ANALYTICS_ID: UA-52617120-5
3+
image: jupyter/nbviewer:efc7e78
74

85
nbviewer:
96
extraArgs:
@@ -12,6 +9,10 @@ nbviewer:
129
- "--content-security-policy=connect-src *" # https://github.com/jupyter/nbviewer/issues/797
1310
- '--jupyter-js-widgets-version=2.1' # https://github.com/jupyter/nbviewer/issues/818
1411
- '--jupyter-widgets-html-manager-version=0.15' # https://github.com/jupyter/nbviewer/issues/818
12+
- >-
13+
--NBViewer.extra_head_html=
14+
<script defer data-domain="nbviewer.org" src="https://plausible.io/js/script.file-downloads.outbound-links.js"></script>
15+
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
1516
1617
statuspage:
1718
enabled: true

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ echo "Is $PWD/../nbviewer up to date?"
99
helm dep up $nbviewer_chart
1010

1111
upgrade="upgrade nbviewer $nbviewer_chart -f config/nbviewer.yaml -f secrets/config/nbviewer.yaml"
12-
helm diff $upgrade | grep -v '^[[:space:]]'
12+
helm diff $upgrade
1313

1414
echo "Deploy these changes? (y|[N]) "
1515
read confirm

0 commit comments

Comments
 (0)