Skip to content

Commit a30acfe

Browse files
committed
FIX: puts template away
1 parent e2a29fb commit a30acfe

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
File renamed without changes.

update_gh-pages.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jupyter nbconvert --to html --template full notebooks/*ipynb \
1212
cp -r static $TMP_DIR/.
1313
cp -r notebooks/reveal.js $TMP_DIR/notebooks/.
1414
cp -r notebooks/*.html $TMP_DIR/notebooks/.
15-
cp -r template_google_analytics.rst $TMP_DIR/.
1615

1716
# Switch to gh-pages branch
1817
git checkout gh-pages
@@ -29,12 +28,12 @@ find . -type f -name "*.html" -exec sed -i 's/ipynb\"/html\"/g' {} +
2928
# Add Google Analytics script to each homepage
3029
for h in `find -maxdepth 2 -name "*html"`
3130
do
32-
sed '/<\/head>/ {r template_google_analytics.rst
31+
sed '/<\/head>/ {r static/template_google_analytics.rst
3332
d}' $h > tmp.rst
3433

3534
mv tmp.rst $h
3635
done
37-
rm template_google_analytics.rst
36+
rm static/template_google_analytics.rst
3837

3938
# Submit changes with current timestamp
4039
TIMESTAMP=`date +'%Y-%m-%d %H:%M:%S'`

0 commit comments

Comments
 (0)