three
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
<h1 align="center"><a href="https://github.com/mrdoob/three.js" target="_blank" rel="noopener">JavaScript 3D library</a> for <a href="https://github.com/theme-next" target="_blank" rel="noopener">NexT</a></h1> <h1 align="center">Installation</h1> <h2>If you want to use the CDN instead of clone this repo, please jump to the Step 3.</h2> <h2 align="center">Step 1 → Go to NexT dir</h2> <p>Change dir to <strong>NexT</strong> directory. There must be <code>layout</code>, <code>source</code>, <code>languages</code> and other directories:</p> <pre><code class="sh">$ <span class="built_in">cd</span> themes/next $ ls _config.yml crowdin.yml docs gulpfile.js languages layout LICENSE.md package.json README.md scripts <span class="built_in">source</span></code></pre> <h2 align="center">Step 2 → Get module</h2> <p>Install module to <code>source/lib</code> directory:</p> <pre><code class="sh">$ git <span class="built_in">clone</span> https://github.com/theme-next/theme-next-three <span class="built_in">source</span>/lib/three</code></pre> <h2 align="center">Step 3 → Set it up</h2> <p>Enable module in <strong>NexT</strong> <code>_config.yml</code> file:</p> <pre><code class="yml"><span class="attr">three_waves:</span> <span class="literal">true</span> <span class="string">OR</span> <span class="attr">canvas_lines:</span> <span class="literal">true</span> <span class="string">OR</span> <span class="attr">canvas_sphere:</span> <span class="literal">true</span></code></pre> <p><strong>And, if you wants to use the CDN, then need to set:</strong></p> <pre><code class="yml"><span class="attr">vendors:</span> <span class="string">...</span> <span class="attr">three:</span> <span class="string">//cdn.jsdelivr.net/gh/theme-next/theme-next-three@1/three.min.js</span> <span class="attr">three_waves:</span> <span class="string">//cdn.jsdelivr.net/gh/theme-next/theme-next-three@latest/three-waves.min.js</span> <span class="attr">canvas_lines:</span> <span class="string">//cdn.jsdelivr.net/gh/theme-next/theme-next-three@latest/canvas_lines.min.js</span> <span class="attr">canvas_sphere:</span> <span class="string">//cdn.jsdelivr.net/gh/theme-next/theme-next-three@latest/canvas_sphere.min.js</span></code></pre> <h1 align="center">Update</h1> <pre><code class="sh">$ <span class="built_in">cd</span> themes/next/<span class="built_in">source</span>/lib/three $ git pull</code></pre>