Skip to content

Commit

Permalink
Adding glTF to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Apr 9, 2024
1 parent db846b2 commit 3df3a19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file added docs/_static/tea_cup.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ["_static"]
html_static_path = ["_static"]

# -- Options for hoverxref -------------------------------------------------
hoverxref_role_types = {
Expand Down
9 changes: 9 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ As an example, consider the design of a tea cup:
:start-after: [Code]
:end-before: [End]

.. <script type="module" src="https://unpkg.com/@google/model-viewer"></script>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
.. raw:: html

<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<model-viewer src="_static/tea_cup.glb" alt="A tea cup modelled in build123d" auto-rotate camera-controls></model-viewer>

.. image:: tea_cup.png
:align: center

Expand Down

0 comments on commit 3df3a19

Please sign in to comment.