Skip to content

Commit cd883d2

Browse files
authored
Add filtering tags for gallery examples of projections (#4643)
1 parent 8a9684b commit cd883d2

19 files changed

Lines changed: 46 additions & 2 deletions

doc/_static/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ html.writer-html5 .rst-content dl.field-list {
162162
max-width: 80%!important;
163163
}
164164

165+
.sphx-glr-tag-label {
166+
font-weight: bold;
167+
background-color: #f2f3f5;
168+
padding: 0.1rem 0.35rem;
169+
}
170+
171+
.sphx-glr-tag {
172+
background-color: #e6eef8;
173+
margin: 0.1rem 0.2rem 0.1rem 0;
174+
padding: 0.1rem 0.35rem;
175+
}
176+
165177
/*
166178
* Styles for aligning table cells.
167179
* https://myst-parser.readthedocs.io/en/latest/syntax/tables.html#markdown-syntax

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141
- sphinx-autodoc-typehints
4242
- sphinx-copybutton
4343
- sphinx-design
44-
- sphinx-gallery>=0.19.0
44+
- sphinx-gallery>=0.21.0
4545
- sphinx_rtd_theme
4646
# Dev dependencies (building PDF documentation)
4747
- cairosvg

examples/projections/azim/azim_equidistant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@
3131
water="white",
3232
)
3333
fig.show()
34+
35+
# sphinx_gallery_tags = ["equidistant"]

examples/projections/azim/azim_general_stereographic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@
3131
water="white",
3232
)
3333
fig.show()
34+
35+
# sphinx_gallery_tags = ["conformal"]

examples/projections/azim/azim_lambert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@
2929
water="white",
3030
)
3131
fig.show()
32+
33+
# sphinx_gallery_tags = ["equal-area"]

examples/projections/conic/conic_albers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@
3434
water="gray90",
3535
)
3636
fig.show()
37+
38+
# sphinx_gallery_tags = ["equal-area"]

examples/projections/conic/conic_equidistant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@
2828
water="gray90",
2929
)
3030
fig.show()
31+
32+
# sphinx_gallery_tags = ["equidistant"]

examples/projections/conic/conic_lambert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
land="seagreen",
3131
water="gray90",
3232
)
33-
3433
fig.show()
34+
35+
# sphinx_gallery_tags = ["conformal"]

examples/projections/cyl/cyl_equal_area.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@
2626
water="steelblue",
2727
)
2828
fig.show()
29+
30+
# sphinx_gallery_tags = ["equal-area"]

examples/projections/cyl/cyl_equidistant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@
3030
water="steelblue",
3131
)
3232
fig.show()
33+
34+
# sphinx_gallery_tags = ["equidistant"]

0 commit comments

Comments
 (0)