Parcourir la source

Manual: Add Addons section anchor (#34017)

Isaac Johnson il y a 1 semaine
Parent
commit
ea4b88cda3
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      manual/pages/installation.html
  2. 1 1
      utils/docs/template/tmpl/container.tmpl

+ 1 - 1
manual/pages/installation.html

@@ -253,7 +253,7 @@ npm install --save-dev vite
             <i><b>IMPORTANT:</b> Import all dependencies from the same version of three.js, and from the same CDN. Mixing files from different sources may cause duplicate code to be included, or even break the application in unexpected ways.</i>
           </p>
 
-          <h2>Addons</h2>
+          <h2 id="addons">Addons</h2>
 
           <p>
             Out of the box, three.js includes the fundamentals of a 3D engine. Other three.js components — such as controls, loaders, and post-processing effects — are part of the [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm addons/] directory. Addons do not need to be <i>installed</i> separately, but do need to be <i>imported</i> separately.

+ 1 - 1
utils/docs/template/tmpl/container.tmpl

@@ -42,7 +42,7 @@
 			<article>
 				<?js if (doc.import) { ?>
 				<h2 class="subsection-title">Import</h2>
-				<p><span translate="no"><?js= doc.name ?></span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#installation">Installation#Addons</a>.</p>
+				<p><span translate="no"><?js= doc.name ?></span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#installation#addons">Installation#Addons</a>.</p>
 				<pre class="prettyprint source lang-js" translate="no"><code><?js= doc.import ?></code></pre>
 				<?js } ?>
 				<div class="container-overview">

粤ICP备19079148号