From e2710157f048757ba116bc46325fea1261db2ff8 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Thu, 8 Dec 2022 20:07:11 +0100 Subject: [PATCH] doc/main/hubs: Use width to set scale. Fixes https://github.com/pybricks/support/issues/844 --- doc/main/hubs/cityhub.rst | 2 +- doc/main/hubs/essentialhub.rst | 1 - doc/main/hubs/ev3brick.rst | 2 +- doc/main/hubs/index.rst | 12 ++++++------ doc/main/hubs/movehub.rst | 2 +- doc/main/hubs/primehub.rst | 3 +-- doc/main/hubs/technichub.rst | 2 +- doc/main/parameters/side.rst | 12 ++++++------ 8 files changed, 17 insertions(+), 19 deletions(-) diff --git a/doc/main/hubs/cityhub.rst b/doc/main/hubs/cityhub.rst index 8a43a86..1bc2b9d 100644 --- a/doc/main/hubs/cityhub.rst +++ b/doc/main/hubs/cityhub.rst @@ -4,7 +4,7 @@ City Hub ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. figure:: ../../main/cad/output/hub-city.png - :height: 15 em + :width: 30% .. autoclass:: pybricks.hubs.CityHub :no-members: diff --git a/doc/main/hubs/essentialhub.rst b/doc/main/hubs/essentialhub.rst index ef4341d..74ac7bd 100644 --- a/doc/main/hubs/essentialhub.rst +++ b/doc/main/hubs/essentialhub.rst @@ -6,7 +6,6 @@ Essential Hub .. figure:: ../../main/cad/output/hub-essential.png :width: 30% - .. autoclass:: pybricks.hubs.EssentialHub :no-members: diff --git a/doc/main/hubs/ev3brick.rst b/doc/main/hubs/ev3brick.rst index 810428f..ace417f 100644 --- a/doc/main/hubs/ev3brick.rst +++ b/doc/main/hubs/ev3brick.rst @@ -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: diff --git a/doc/main/hubs/index.rst b/doc/main/hubs/index.rst index 76088ee..6473764 100644 --- a/doc/main/hubs/index.rst +++ b/doc/main/hubs/index.rst @@ -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 diff --git a/doc/main/hubs/movehub.rst b/doc/main/hubs/movehub.rst index 355b90d..2c14ad2 100644 --- a/doc/main/hubs/movehub.rst +++ b/doc/main/hubs/movehub.rst @@ -6,7 +6,7 @@ Move Hub .. _fig_movehub: .. figure:: ../../main/diagrams/movehub.png - :height: 15 em + :width: 100% .. autoclass:: pybricks.hubs.MoveHub :no-members: diff --git a/doc/main/hubs/primehub.rst b/doc/main/hubs/primehub.rst index d9127c5..c1abccc 100644 --- a/doc/main/hubs/primehub.rst +++ b/doc/main/hubs/primehub.rst @@ -4,8 +4,7 @@ Prime Hub / Inventor Hub ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. figure:: ../../main/cad/output/hub-spike-inventor.png - :height: 15 em - + :width: 80% .. class:: InventorHub diff --git a/doc/main/hubs/technichub.rst b/doc/main/hubs/technichub.rst index 8551bd7..761eede 100644 --- a/doc/main/hubs/technichub.rst +++ b/doc/main/hubs/technichub.rst @@ -4,7 +4,7 @@ Technic Hub ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. figure:: ../../main/cad/output/hub-technic.png - :height: 15 em + :width: 40% .. autoclass:: pybricks.hubs.TechnicHub :no-members: diff --git a/doc/main/parameters/side.rst b/doc/main/parameters/side.rst index 45a629e..71e924a 100644 --- a/doc/main/parameters/side.rst +++ b/doc/main/parameters/side.rst @@ -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%