Skip to content

Commit

Permalink
doc: Redesign the gallery pages (#8484)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed May 12, 2024
1 parent 5e15c42 commit cb23e00
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 228 deletions.
16 changes: 0 additions & 16 deletions doc/rst/_static/style.css
Expand Up @@ -18,22 +18,6 @@ h1, h2, h3, h4, h5, h6 {
font-weight: "normal"
}

/* style for example gallery */
.gmtgallery li {
list-style: none;
width: 180px;
display: inline-grid;
margin-right: 15px;
}

/* style for gmt movies */
.gmtmovie li {
list-style: none;
width: 45%;
display: inline-grid;
margin: 10px;
}

/* Set tab-width to 2 spaces */
.highlight {
tab-size: 2;
Expand Down
139 changes: 91 additions & 48 deletions doc/rst/source/animations.rst
Expand Up @@ -19,84 +19,127 @@ are more advanced movie examples. You can generate anything from tiny
animated gif files for your PowerPoint or KeyNote presentations or a
full-featured movie with thousands of frames at HD or 4k resolution.

.. cssclass:: gmtgallery
.. grid:: 1 1 1 2

.. cssclass:: gmtmovie
.. grid-item-card:: :doc:`/animations/anim01`
:padding: 1
:link-type: doc
:link: animations/anim01

- .. youtube:: 5m3gRhFFFLA
:width: 100%
.. youtube:: 5m3gRhFFFLA
:width: 100%

:doc:`/animations/anim01`
.. grid-item-card:: :doc:`/animations/anim02`
:padding: 1
:link-type: doc
:link: animations/anim02

- .. youtube:: WQ6JrtEu_Fk
:width: 100%
.. youtube:: WQ6JrtEu_Fk
:width: 100%

:doc:`/animations/anim02`
.. grid-item-card:: :doc:`/animations/anim03`
:padding: 1
:link-type: doc
:link: animations/anim03

- .. youtube:: zCo0fuMkvMY
:width: 100%
.. youtube:: zCo0fuMkvMY
:width: 100%

:doc:`/animations/anim03`
.. grid-item-card:: :doc:`/animations/anim04`
:padding: 1
:link-type: doc
:link: animations/anim04

- .. youtube:: j75MbWb4WCE
:width: 100%
.. youtube:: j75MbWb4WCE
:width: 100%

:doc:`/animations/anim04`
.. grid-item-card:: :doc:`/animations/anim05`
:padding: 1
:link-type: doc
:link: animations/anim05

- .. youtube:: 7NQa4TORA3E
:width: 100%
.. youtube:: 7NQa4TORA3E
:width: 100%

:doc:`/animations/anim05`
.. grid-item-card:: :doc:`/animations/anim06`
:padding: 1
:link-type: doc
:link: animations/anim06

- .. youtube:: 3vB53hoLsls
:width: 100%
.. youtube:: 3vB53hoLsls
:width: 100%

:doc:`/animations/anim06`
.. grid-item-card:: :doc:`/animations/anim07`
:padding: 1
:link-type: doc
:link: animations/anim07

- .. youtube:: KfBwQlyjz5w
:width: 100%
.. youtube:: KfBwQlyjz5w
:width: 100%

:doc:`/animations/anim07`
.. grid-item-card:: :doc:`/animations/anim08`
:padding: 1
:link-type: doc
:link: animations/anim08

- .. youtube:: H0RyjHRhJ3g
:width: 100%
.. youtube:: H0RyjHRhJ3g
:width: 100%

:doc:`/animations/anim08`
.. grid-item-card:: :doc:`/animations/anim09`
:padding: 1
:link-type: doc
:link: animations/anim09

- .. youtube:: LTxlR5LuJ8g
:width: 100%
.. youtube:: LTxlR5LuJ8g
:width: 100%

:doc:`/animations/anim09`
.. grid-item-card:: :doc:`/animations/anim10`
:padding: 1
:link-type: doc
:link: animations/anim10

- .. youtube:: FLzYVo7wXAg
:width: 100%
.. youtube:: FLzYVo7wXAg
:width: 100%

:doc:`/animations/anim10`
.. grid-item-card:: :doc:`/animations/anim11`
:padding: 1
:link-type: doc
:link: animations/anim11

- .. youtube:: nmxy9yb2cR8
:width: 100%
.. youtube:: nmxy9yb2cR8
:width: 100%

:doc:`/animations/anim11`
.. grid-item-card:: :doc:`/animations/anim12`
:padding: 1
:link-type: doc
:link: animations/anim12

- .. youtube:: X8TojLs0NYk
:width: 100%
.. youtube:: X8TojLs0NYk
:width: 100%

:doc:`/animations/anim12`
.. grid-item-card:: :doc:`/animations/anim13`
:padding: 1
:link-type: doc
:link: animations/anim13

- .. youtube:: S-kRGxwOGJw
:width: 100%
.. youtube:: S-kRGxwOGJw
:width: 100%

:doc:`/animations/anim13`
.. grid-item-card:: :doc:`/animations/anim14`
:padding: 1
:link-type: doc
:link: animations/anim14

- .. youtube:: Wk58r72g_nk
:width: 100%
.. youtube:: Wk58r72g_nk
:width: 100%

:doc:`/animations/anim14`
.. grid-item-card:: :doc:`/animations/anim15`
:padding: 1
:link-type: doc
:link: animations/anim15

- .. youtube:: Pvvc4vb8G4Y
:width: 100%

:doc:`/animations/anim15`
.. youtube:: Pvvc4vb8G4Y
:width: 100%

.. toctree::
:hidden:
Expand Down
26 changes: 15 additions & 11 deletions doc/rst/source/gallery.rst
Expand Up @@ -12,22 +12,26 @@ diagram or map view. The resulting plots will have in common that they
are all made up of simpler plots that have been overlaid to create a
complex illustration.

.. cssclass:: gmtgallery
.. grid:: 2 3 3 4

.. jinja:: jinja_ctx
.. jinja::

{% for i in range(1, 53) %}
{% set i = '%02d' % i %}
- .. figure:: /_images/ex{{i}}.*
:target: ./gallery/ex{{i}}.html
{% for i in range(1, 53) %}
{% set i = '%02d' % i %}
.. grid-item-card:: :doc:`gallery/ex{{i}}`
:padding: 1
:link-type: doc
:link: gallery/ex{{i}}

:ref:`example_{{i}}`
{% endfor %}
.. figure:: /_images/ex{{i}}.*
{% endfor %}

- .. figure:: https://user-images.githubusercontent.com/14077947/123172626-62ca6880-d44b-11eb-8d91-21e448930460.png
:target: ./gallery/ex53.html
.. grid-item-card:: :ref:`example_53`
:padding: 1
:link-type: doc
:link: gallery/ex53

:ref:`example_53`
.. figure:: https://user-images.githubusercontent.com/14077947/123172626-62ca6880-d44b-11eb-8d91-21e448930460.png

.. toctree::
:hidden:
Expand Down

0 comments on commit cb23e00

Please sign in to comment.