Skip to content

Commit

Permalink
Document the use of figclass with figure directive
Browse files Browse the repository at this point in the history
This is non-trivial to figure out.
  • Loading branch information
pradyunsg committed Jul 15, 2023
1 parent beebd7e commit 1680dbe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/reference/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ based on the currently active colour scheme.
:class: only-dark
```
```{figure} https://source.unsplash.com/200x200/daily?cute+cats
:align: center
:figclass: only-light
```
```{figure} https://source.unsplash.com/200x200/daily?cute+dogs
:align: center
:figclass: only-dark
```
This is from Markdown.
+++
Expand All @@ -90,6 +100,16 @@ This is from Markdown.
:class: only-dark
.. figure:: https://source.unsplash.com/200x200/daily?cute+cats
:align: center
:figclass: only-light
.. figure:: https://source.unsplash.com/200x200/daily?cute+dogs
:align: center
:figclass: only-dark
This is from reStructuredText.
````

0 comments on commit 1680dbe

Please sign in to comment.