Skip to content

Commit

Permalink
Docs: Update 'Installation' guide to use cdn.skypack.dev (#21711)
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy authored and mrdoob committed Apr 23, 2021
1 parent e2c5762 commit db5cdcb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions docs/manual/ar/introduction/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ <h2>التثبيت من CDN أو استضافة ثابتة</h2>
<code>
&lt;script type="module">

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

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

const scene = new THREE.Scene();

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

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

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

const controls = new OrbitControls();

Expand Down
10 changes: 5 additions & 5 deletions docs/manual/en/introduction/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ <h2>Install from CDN or static hosting</h2>
<code>
&lt;script type="module">

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

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

const scene = new THREE.Scene();

&lt;/script>
</code>

<p>
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.
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.
</p>


Expand Down Expand Up @@ -107,9 +107,9 @@ <h2>Examples</h2>
<code>
&lt;script type="module">

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

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

const controls = new OrbitControls();

Expand Down
10 changes: 5 additions & 5 deletions docs/manual/ja/introduction/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ <h2>CDNや静的ホスティングからインストールをする</h2>
<code>
&lt;script type="module">

// Find the latest version by visiting https://unpkg.com/three. The URL will
// redirect to the newest stable release.
import * as THREE from 'https://unpkg.com/three/build/three.module.js';
// Find the latest version by visiting https://cdn.skypack.dev/three.

import * as THREE from 'https://cdn.skypack.dev/three@&lt;version&gt;';

const scene = new THREE.Scene();

Expand Down Expand Up @@ -109,9 +109,9 @@ <h2>Examples</h2>
<code>
&lt;script type="module">

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

const controls = new OrbitControls();

Expand Down
8 changes: 4 additions & 4 deletions docs/manual/ko/introduction/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ <h2>static hosting 및 CDN을 통한 설치</h2>
<code>
&lt;script type="module">

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

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

const scene = new THREE.Scene();

Expand Down Expand Up @@ -122,9 +122,9 @@ <h2>예제</h2>
<code>
&lt;script type="module">

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

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

const controls = new OrbitControls();

Expand Down
8 changes: 4 additions & 4 deletions docs/manual/zh/introduction/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ <h2>从CDN或静态主机安装</h2>
<code>
&lt;script type="module">

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

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

const scene = new THREE.Scene();

Expand Down Expand Up @@ -107,9 +107,9 @@ <h2>示例</h2>
<code>
&lt;script type="module">

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

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

const controls = new OrbitControls();

Expand Down

0 comments on commit db5cdcb

Please sign in to comment.