File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ jupyter nbconvert --to html --template full notebooks/*ipynb \
12
12
cp -r static $TMP_DIR /.
13
13
cp -r notebooks/reveal.js $TMP_DIR /notebooks/.
14
14
cp -r notebooks/* .html $TMP_DIR /notebooks/.
15
- cp -r template_google_analytics.rst $TMP_DIR /.
16
15
17
16
# Switch to gh-pages branch
18
17
git checkout gh-pages
@@ -29,12 +28,12 @@ find . -type f -name "*.html" -exec sed -i 's/ipynb\"/html\"/g' {} +
29
28
# Add Google Analytics script to each homepage
30
29
for h in ` find -maxdepth 2 -name " *html" `
31
30
do
32
- sed ' /<\/head>/ {r template_google_analytics.rst
31
+ sed ' /<\/head>/ {r static/ template_google_analytics.rst
33
32
d}' $h > tmp.rst
34
33
35
34
mv tmp.rst $h
36
35
done
37
- rm template_google_analytics.rst
36
+ rm static/ template_google_analytics.rst
38
37
39
38
# Submit changes with current timestamp
40
39
TIMESTAMP=` date +' %Y-%m-%d %H:%M:%S' `
You can’t perform that action at this time.
0 commit comments