Skip to content

Commit 31fb351

Browse files
committed
Update CDN publish script to allow referencing in 'topojsonURL'
1 parent c4e78a8 commit 31fb351

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tasks/cdn_publish.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ for path in `ls $dist/plotly*`; do
2929
done
3030

3131
# copy topojson files over to the sync folder
32-
# NOTE: Temporarily adding the suffix '_un' to avoid overwriting the old topojson
33-
# which some old plots might depend on
34-
for filepath in $dist/topojson/*.json; do
35-
f=${filepath##*/}
36-
f=${f%.*}
37-
cp $filepath "$sync/${f%.*}_un.json"
38-
done
32+
# NOTE: Temporarily syncing topojson to 'un' folder to avoid overwriting the old topojson
33+
# which some old plots might depend on. These can be accessed by setting 'topojsonURL' to
34+
# 'https://cdn.plot.ly/un/' in the Plotly config.
35+
mkdir $sync/un
36+
cp $dist/topojson/* $sync/un
3937

4038
# list folder and files
4139
echo $sync

0 commit comments

Comments
 (0)