Browse Source

Merge pull request #20766 from linbingquan/dev-cleanup-docs

Docs: Clean up.
Mr.doob 4 years ago
parent
commit
cb098e699e

+ 2 - 4
docs/manual/ar/introduction/Installation.html

@@ -42,14 +42,12 @@
 		</p>
 		</p>
 
 
 		<code>
 		<code>
-		///////////////////////////////////////////////////////
 		// Option 1: Import the entire three.js core library.
 		// Option 1: Import the entire three.js core library.
 		import * as THREE from 'three';
 		import * as THREE from 'three';
 
 
 		const scene = new THREE.Scene();
 		const scene = new THREE.Scene();
 
 
 
 
-		///////////////////////////////////////////////////////
 		// Option 2: Import just the parts you need.
 		// Option 2: Import just the parts you need.
 		import { Scene } from 'three';
 		import { Scene } from 'three';
 
 
@@ -91,7 +89,7 @@
 
 
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // redirect to the newest stable release.
 		  // redirect to the newest stable release.
-		  import * as THREE from 'https://unpkg.com/three@&lt;VERSION>/build/three.module.js';
+		  import * as THREE from 'https://unpkg.com/three/build/three.module.js';
 
 
 		  const scene = new THREE.Scene();
 		  const scene = new THREE.Scene();
 
 
@@ -129,7 +127,7 @@
 
 
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // redirect to the newest stable release.
 		  // redirect to the newest stable release.
-		  import { OrbitControls } from 'https://unpkg.com/three@&lt;VERSION>/examples/jsm/controls/OrbitControls.js';
+		  import { OrbitControls } from 'https://unpkg.com/three/examples/jsm/controls/OrbitControls.js';
 
 
 		  const controls = new OrbitControls();
 		  const controls = new OrbitControls();
 
 

+ 2 - 4
docs/manual/en/introduction/Installation.html

@@ -36,14 +36,12 @@
 		</p>
 		</p>
 
 
 		<code>
 		<code>
-		///////////////////////////////////////////////////////
 		// Option 1: Import the entire three.js core library.
 		// Option 1: Import the entire three.js core library.
 		import * as THREE from 'three';
 		import * as THREE from 'three';
 
 
 		const scene = new THREE.Scene();
 		const scene = new THREE.Scene();
 
 
 
 
-		///////////////////////////////////////////////////////
 		// Option 2: Import just the parts you need.
 		// Option 2: Import just the parts you need.
 		import { Scene } from 'three';
 		import { Scene } from 'three';
 
 
@@ -73,7 +71,7 @@
 
 
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // redirect to the newest stable release.
 		  // redirect to the newest stable release.
-		  import * as THREE from 'https://unpkg.com/three@&lt;VERSION>/build/three.module.js';
+		  import * as THREE from 'https://unpkg.com/three/build/three.module.js';
 
 
 		  const scene = new THREE.Scene();
 		  const scene = new THREE.Scene();
 
 
@@ -111,7 +109,7 @@
 
 
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // Find the latest version by visiting https://unpkg.com/three. The URL will
 		  // redirect to the newest stable release.
 		  // redirect to the newest stable release.
-		  import { OrbitControls } from 'https://unpkg.com/three@&lt;VERSION>/examples/jsm/controls/OrbitControls.js';
+		  import { OrbitControls } from 'https://unpkg.com/three/examples/jsm/controls/OrbitControls.js';
 
 
 		  const controls = new OrbitControls();
 		  const controls = new OrbitControls();
 
 

+ 4 - 6
docs/manual/zh/introduction/Installation.html

@@ -36,14 +36,12 @@
 		</p>
 		</p>
 
 
 		<code>
 		<code>
-		///////////////////////////////////////////////////////
 		// 方式 1: 导入整个 three.js核心库
 		// 方式 1: 导入整个 three.js核心库
 		import * as THREE from 'three';
 		import * as THREE from 'three';
 
 
 		const scene = new THREE.Scene();
 		const scene = new THREE.Scene();
 
 
 
 
-		///////////////////////////////////////////////////////
 		// 方式 2: 仅导入你所需要的部分
 		// 方式 2: 仅导入你所需要的部分
 		import { Scene } from 'three';
 		import { Scene } from 'three';
 
 
@@ -71,9 +69,9 @@
 		<code>
 		<code>
 		&lt;script type="module">
 		&lt;script type="module">
 
 
-		  // 通过访问 https://unpkg.com/three 来查找最新版本。 
+		  // 通过访问 https://unpkg.com/three 来查找最新版本。
 		  // 该URL将会重定向到最新的稳定版本。
 		  // 该URL将会重定向到最新的稳定版本。
-		  import * as THREE from 'https://unpkg.com/three@&lt;VERSION>/build/three.module.js';
+		  import * as THREE from 'https://unpkg.com/three/build/three.module.js';
 
 
 		  const scene = new THREE.Scene();
 		  const scene = new THREE.Scene();
 
 
@@ -109,9 +107,9 @@
 		<code>
 		<code>
 		&lt;script type="module">
 		&lt;script type="module">
 
 
-		  // 通过访问 https://unpkg.com/three 来查找最新版本。 
+		  // 通过访问 https://unpkg.com/three 来查找最新版本。
 		  // 该URL将会重定向到最新的稳定版本。
 		  // 该URL将会重定向到最新的稳定版本。
-		  import { OrbitControls } from 'https://unpkg.com/three@&lt;VERSION>/examples/jsm/controls/OrbitControls.js';
+		  import { OrbitControls } from 'https://unpkg.com/three/examples/jsm/controls/OrbitControls.js';
 
 
 		  const controls = new OrbitControls();
 		  const controls = new OrbitControls();