Skip to content

Commit db5cdcb

Browse files
donmccurdymrdoob
authored andcommitted
Docs: Update 'Installation' guide to use cdn.skypack.dev (#21711)
1 parent e2c5762 commit db5cdcb

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

docs/manual/ar/introduction/Installation.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ <h2>التثبيت من CDN أو استضافة ثابتة</h2>
8787
<code>
8888
&lt;script type="module">
8989

90-
// Find the latest version by visiting https://unpkg.com/three.
90+
// Find the latest version by visiting https://cdn.skypack.dev/three.
9191

92-
import * as THREE from 'https://unpkg.com/three@&lt;version&gt;/build/three.module.js';
92+
import * as THREE from 'https://cdn.skypack.dev/three@&lt;version&gt;';
9393

9494
const scene = new THREE.Scene();
9595

@@ -125,9 +125,9 @@ <h2>أمثلة</h2>
125125
<code>
126126
&lt;script type="module">
127127

128-
// Find the latest version by visiting https://unpkg.com/three.
128+
// Find the latest version by visiting https://cdn.skypack.dev/three.
129129

130-
import { OrbitControls } from 'https://unpkg.com/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
130+
import { OrbitControls } from 'https://cdn.skypack.dev/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
131131

132132
const controls = new OrbitControls();
133133

docs/manual/en/introduction/Installation.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ <h2>Install from CDN or static hosting</h2>
6969
<code>
7070
&lt;script type="module">
7171

72-
// Find the latest version by visiting https://unpkg.com/three.
72+
// Find the latest version by visiting https://cdn.skypack.dev/three.
7373

74-
import * as THREE from 'https://unpkg.com/three@&lt;version&gt;/build/three.module.js';
74+
import * as THREE from 'https://cdn.skypack.dev/three@&lt;version&gt;';
7575

7676
const scene = new THREE.Scene();
7777

7878
&lt;/script>
7979
</code>
8080

8181
<p>
82-
Not all features are accessed through the <em>build/three.module.js</em> module. Other popular parts of the library — such as controls, loaders, and post-processing effects — must be imported from the [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm examples/jsm] subfolder. To learn more, see <em>Examples</em> below.
82+
Not all features are accessed through the <em>three</em> entrypoint. Other popular parts of the library — such as controls, loaders, and post-processing effects — must be imported from the [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm examples/jsm] subfolder. To learn more, see <em>Examples</em> below.
8383
</p>
8484

8585

@@ -107,9 +107,9 @@ <h2>Examples</h2>
107107
<code>
108108
&lt;script type="module">
109109

110-
// Find the latest version by visiting https://unpkg.com/three.
110+
// Find the latest version by visiting https://cdn.skypack.dev/three.
111111

112-
import { OrbitControls } from 'https://unpkg.com/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
112+
import { OrbitControls } from 'https://cdn.skypack.dev/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
113113

114114
const controls = new OrbitControls();
115115

docs/manual/ja/introduction/Installation.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ <h2>CDNや静的ホスティングからインストールをする</h2>
7171
<code>
7272
&lt;script type="module">
7373

74-
// Find the latest version by visiting https://unpkg.com/three. The URL will
75-
// redirect to the newest stable release.
76-
import * as THREE from 'https://unpkg.com/three/build/three.module.js';
74+
// Find the latest version by visiting https://cdn.skypack.dev/three.
75+
76+
import * as THREE from 'https://cdn.skypack.dev/three@&lt;version&gt;';
7777

7878
const scene = new THREE.Scene();
7979

@@ -109,9 +109,9 @@ <h2>Examples</h2>
109109
<code>
110110
&lt;script type="module">
111111

112-
// Find the latest version by visiting https://unpkg.com/three. The URL will
112+
// Find the latest version by visiting https://cdn.skypack.dev/three. The URL will
113113
// redirect to the newest stable release.
114-
import { OrbitControls } from 'https://unpkg.com/three/examples/jsm/controls/OrbitControls.js';
114+
import { OrbitControls } from 'https://cdn.skypack.dev/three/examples/jsm/controls/OrbitControls.js';
115115

116116
const controls = new OrbitControls();
117117

docs/manual/ko/introduction/Installation.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ <h2>static hosting 및 CDN을 통한 설치</h2>
7979
<code>
8080
&lt;script type="module">
8181

82-
// Find the latest version by visiting https://unpkg.com/three.
82+
// Find the latest version by visiting https://cdn.skypack.dev/three.
8383

84-
import * as THREE from 'https://unpkg.com/three@&lt;version&gt;/build/three.module.js';
84+
import * as THREE from 'https://cdn.skypack.dev/three@&lt;version&gt;';
8585

8686
const scene = new THREE.Scene();
8787

@@ -122,9 +122,9 @@ <h2>예제</h2>
122122
<code>
123123
&lt;script type="module">
124124

125-
// Find the latest version by visiting https://unpkg.com/three.
125+
// Find the latest version by visiting https://cdn.skypack.dev/three.
126126

127-
import { OrbitControls } from 'https://unpkg.com/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
127+
import { OrbitControls } from 'https://cdn.skypack.dev/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
128128

129129
const controls = new OrbitControls();
130130

docs/manual/zh/introduction/Installation.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ <h2>从CDN或静态主机安装</h2>
6969
<code>
7070
&lt;script type="module">
7171

72-
// 通过访问 https://unpkg.com/three 来查找最新版本。
72+
// 通过访问 https://cdn.skypack.dev/three 来查找最新版本。
7373

74-
import * as THREE from 'https://unpkg.com/three@&lt;version&gt;/build/three.module.js';
74+
import * as THREE from 'https://cdn.skypack.dev/three@&lt;version&gt;';
7575

7676
const scene = new THREE.Scene();
7777

@@ -107,9 +107,9 @@ <h2>示例</h2>
107107
<code>
108108
&lt;script type="module">
109109

110-
// 通过访问 https://unpkg.com/three 来查找最新版本。
110+
// 通过访问 https://cdn.skypack.dev/three 来查找最新版本。
111111

112-
import { OrbitControls } from 'https://unpkg.com/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
112+
import { OrbitControls } from 'https://cdn.skypack.dev/three@&lt;version&gt;/examples/jsm/controls/OrbitControls.js';
113113

114114
const controls = new OrbitControls();
115115

0 commit comments

Comments
 (0)