Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(docs): fix demos GitCDN link to use proper URL for versioning
Browse files Browse the repository at this point in the history
The GitCDN link used in the current demos points to a URL which
is redirected to a new one. When this redirect occurs, the
version info supplied in the URL is lost and the file always
points to HEAD making it difficult to track down.

Fix snapshot script to use the new link which retains the
version information.

Closes #4922.
  • Loading branch information
topherfangio authored and ThomasBurleson committed Sep 29, 2015
1 parent ee11913 commit cc5333f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/snapshot-docs-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function run {
rm -rf code.material.angularjs.org/HEAD

echo "-- Copying docs site to snapshot..."
sed -i "s,http://localhost:8080/angular-material,https://gitcdn.xyz/repo/angular/bower-material/v$VERSION/angular-material,g" dist/docs/docs.js
sed -i "s,http://localhost:8080/angular-material,https://cdn.gitcdn.xyz/cdn/angular/bower-material/v$VERSION/angular-material,g" dist/docs/docs.js


cp -Rf dist/docs code.material.angularjs.org/HEAD
Expand Down

0 comments on commit cc5333f

Please sign in to comment.