Skip to content

Commit 1680dbe

Browse files
committed
Document the use of figclass with figure directive
This is non-trivial to figure out.
1 parent beebd7e commit 1680dbe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/reference/images.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ based on the currently active colour scheme.
7676
:class: only-dark
7777
```
7878
79+
```{figure} https://source.unsplash.com/200x200/daily?cute+cats
80+
:align: center
81+
:figclass: only-light
82+
```
83+
84+
```{figure} https://source.unsplash.com/200x200/daily?cute+dogs
85+
:align: center
86+
:figclass: only-dark
87+
```
88+
7989
This is from Markdown.
8090
8191
+++
@@ -90,6 +100,16 @@ This is from Markdown.
90100
:class: only-dark
91101
92102
103+
.. figure:: https://source.unsplash.com/200x200/daily?cute+cats
104+
:align: center
105+
:figclass: only-light
106+
107+
108+
.. figure:: https://source.unsplash.com/200x200/daily?cute+dogs
109+
:align: center
110+
:figclass: only-dark
111+
112+
93113
This is from reStructuredText.
94114
95115
````

0 commit comments

Comments
 (0)