X-Ryl669 / docsify-gltfexplorer

A WebGL GLTF 3D explorer for docsify to present 3D object in live in the documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docsify-gltfexplorer

A WebGL GLTF 3D explorer for docsify to present a manipulable 3D object in the documentation

Usage

Files

Copy the following files to where you are storing your docsified project:

  • docsify-gltfexplorer.min.js
  • docsify-iframe.min.js
  • docsify-iframe.min.css

Markup

In your HTML file, you'll need to add:

  <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<!-- plugins -->
  [...]
  <script src="docsify-gltfexplorer.min.js"></script>
</body>

In your markdown file, you'll simply write:

```gltf
/path/to/model.gtlf
```

Result

You'll get something like this: Example picture

About

A WebGL GLTF 3D explorer for docsify to present 3D object in live in the documentation

License:MIT License


Languages

Language:JavaScript 95.6%Language:CSS 4.4%