Commit 064590b
Rewrite example js/assets paths to the gh-pages CDN (#5840)
* Rewrite example js/assets paths to the gh-pages CDN
Point the ../../js/ and ../../assets/ references in the gh-pages
examples at the jsDelivr-hosted aframevr/aframe@gh-pages copies so the
examples load their helper scripts and assets from the CDN.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* remove replace-in-file dependency
* rewrite script to do the read and write file only once, use a simple replaceInFileSync function, no need for 10 dependencies
* use the opening double quote in the regex to avoid generating an invalid URL for future examples with another directory depth
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 59c0c11 commit 064590b
3 files changed
Lines changed: 23 additions & 159 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments