doc/main/hubs: Use width to set scale.

Fixes https://github.com/pybricks/support/issues/844
This commit is contained in:
Laurens Valk
2022-12-08 20:07:11 +01:00
parent 96a3c04836
commit e2710157f0
8 changed files with 17 additions and 19 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ City Hub
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../main/cad/output/hub-city.png
:height: 15 em
:width: 30%
.. autoclass:: pybricks.hubs.CityHub
:no-members:
-1
View File
@@ -6,7 +6,6 @@ Essential Hub
.. figure:: ../../main/cad/output/hub-essential.png
:width: 30%
.. autoclass:: pybricks.hubs.EssentialHub
:no-members:
+1 -1
View File
@@ -2,7 +2,7 @@ MINDSTORMS EV3 Brick
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../main/cad/output/ev3device-ev3.png
:height: 15 em
:width: 50%
.. autoclass:: pybricks.hubs.EV3Brick
:no-members:
+6 -6
View File
@@ -18,35 +18,35 @@
.. pybricks-classlink:: MoveHub
.. figure:: ../../main/cad/output/hub-move.png
:width: 30%
:width: 40%
:target: movehub.html
.. pybricks-classlink:: CityHub
.. figure:: ../../main/cad/output/hub-city.png
:width: 20%
:width: 25%
:target: cityhub.html
.. pybricks-classlink:: TechnicHub
.. figure:: ../../main/cad/output/hub-technic.png
:width: 25%
:width: 35%
:target: technichub.html
.. pybricks-classlink:: InventorHub PrimeHub
.. figure:: ../../main/cad/output/hub-inventor.png
:width: 25%
:width: 35%
:target: primehub.html
.. pybricks-classlink:: PrimeHub
.. figure:: ../../main/cad/output/hub-prime.png
:width: 25%
:width: 35%
:target: primehub.html
.. pybricks-classlink:: EssentialHub
.. figure:: ../../main/cad/output/hub-essential.png
:width: 20%
:width: 25%
:target: essentialhub.html
+1 -1
View File
@@ -6,7 +6,7 @@ Move Hub
.. _fig_movehub:
.. figure:: ../../main/diagrams/movehub.png
:height: 15 em
:width: 100%
.. autoclass:: pybricks.hubs.MoveHub
:no-members:
+1 -2
View File
@@ -4,8 +4,7 @@ Prime Hub / Inventor Hub
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../main/cad/output/hub-spike-inventor.png
:height: 15 em
:width: 80%
.. class:: InventorHub
+1 -1
View File
@@ -4,7 +4,7 @@ Technic Hub
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: ../../main/cad/output/hub-technic.png
:height: 15 em
:width: 40%
.. autoclass:: pybricks.hubs.TechnicHub
:no-members:
+6 -6
View File
@@ -34,29 +34,29 @@ Side
**Prime Hub**
.. figure:: ../../main/diagrams/orientation_primehub.png
:height: 17 em
:width: 60%
**Inventor Hub**
.. figure:: ../../main/diagrams/orientation_inventorhub.png
:height: 17 em
:width: 60%
**Essential Hub**
.. figure:: ../../main/diagrams/orientation_essentialhub.png
:height: 17 em
:width: 60%
**Move Hub**
.. figure:: ../../main/diagrams/orientation_movehub.png
:height: 17 em
:width: 60%
**Technic Hub**
.. figure:: ../../main/diagrams/orientation_technichub.png
:height: 17 em
:width: 60%
**Tilt Sensor**
.. figure:: ../../main/diagrams/orientation_tiltsensor.png
:height: 17 em
:width: 60%