Skip to content

Commit

Permalink
Moving script to layout.html
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Apr 9, 2024
1 parent 9749c53 commit 77c3cd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "!layout.html" %}

{%- block extraScript %}
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js">
</script>

{% endblock extraScript %}
3 changes: 1 addition & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ As an example, consider the design of a tea cup:

.. 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 style="width: 100%; aspect-ratio: 1 / 1;"></model-viewer>
<model-viewer src="_static/tea_cup.glb" alt="A tea cup modelled in build123d" auto-rotate camera-controls style="width: 100%; height: 100%"></model-viewer>

.. image:: tea_cup.png
:align: center
Expand Down

0 comments on commit 77c3cd9

Please sign in to comment.