Skip to content

Commit

Permalink
Fix the figures
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jul 24, 2024
1 parent fd3f422 commit fc6337c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions docs/kitchen-sink/generic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Sidebar

Lorem ipsum dolor sit amet consectetur adipisicing elit.

.. image:: https://source.unsplash.com/200x200/daily?cute+puppy
.. image:: https://picsum.photos/id/237/200/200

Lorem ipsum dolor sit amet consectetur adipisicing elit.

Expand Down Expand Up @@ -272,4 +272,4 @@ voluptatem officia culpa optio atque. Quaerat sed quibusdam ratione nam.
Download Links
==============

:download:`This long long long long long long long long long long long long long long long download link should wrap white-spaces <https://source.unsplash.com/200x200/daily?cute+puppy>`
:download:`This long long long long long long long long long long long long long long long download link should wrap white-spaces <https://picsum.photos/id/237/200/200>`
12 changes: 6 additions & 6 deletions docs/kitchen-sink/images.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ Images

An image:

.. image:: https://source.unsplash.com/200x200/daily?cute+puppy
.. image:: https://picsum.photos/id/237/200/200
:height: 200
:width: 200

A clickable image:

.. image:: https://source.unsplash.com/200x200/daily?cute+puppy
.. image:: https://picsum.photos/id/237/200/200
:target: https://unsplash.com/
:height: 200
:width: 200

.. image:: https://source.unsplash.com/200x200/daily?cute+puppy
.. image:: https://picsum.photos/id/237/200/200
:align: right
:height: 200
:width: 200
Expand All @@ -43,7 +43,7 @@ sapiente veritatis doloribus accusantium molestiae modi recusandae
excepturi facere, corrupti expedita sit nihil temporibus eius sequi
animi, illo libero labore fuga.

.. image:: https://source.unsplash.com/200x200/daily?cute+puppy
.. image:: https://picsum.photos/id/237/200/200
:align: left
:height: 200
:width: 200
Expand All @@ -66,7 +66,7 @@ animi, illo libero labore fuga.
Figures
-------

.. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
.. figure:: https://picsum.photos/id/237/200/200
:alt: reStructuredText, the markup syntax

A figure is an image with a caption and/or a legend:
Expand All @@ -83,7 +83,7 @@ Figures

A figure directive with center alignment

.. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
.. figure:: https://picsum.photos/id/237/200/200
:align: center

This caption should be centered.
4 changes: 2 additions & 2 deletions docs/kitchen-sink/lists.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ Hlists
.. hlist::
:columns: 2

- .. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
- .. figure:: https://picsum.photos/id/237/200/200

This is a short caption for a figure.

- .. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
- .. figure:: https://picsum.photos/id/237/200/200

This is a long caption for a figure. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec porttitor dolor in odio posuere, vitae ornare libero mattis. In lobortis justo vestibulum nibh aliquet, non.
Expand Down
2 changes: 1 addition & 1 deletion docs/kitchen-sink/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ luctus efficitur arcu. Cras ut dictum mi. Nulla congue interdum lorem, semper se
Document Subsection
-------------------

.. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
.. figure:: https://picsum.photos/id/237/200/200
:align: right
:figwidth: 200px

Expand Down
4 changes: 2 additions & 2 deletions docs/kitchen-sink/tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ List Tables

.. list-table:: This is a list table with images in it.

* - .. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
* - .. figure:: https://picsum.photos/id/237/200/200

This is a short caption for a figure.

- .. figure:: https://source.unsplash.com/200x200/daily?cute+puppy
- .. figure:: https://picsum.photos/id/237/200/200

This is a long caption for a figure. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec porttitor dolor in odio posuere, vitae ornare libero mattis. In lobortis justo vestibulum nibh aliquet, non.
28 changes: 14 additions & 14 deletions docs/reference/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ Images can be a great supplement to technical documentation text. Sphinx provide
## Basic Usage

```{furo-demo}
![](https://source.unsplash.com/200x200/daily?cute+animals)
![](https://picsum.photos/id/237/200/200)
This is from Markdown.
+++
.. image:: https://source.unsplash.com/200x200/daily?cute+animals
.. image:: https://picsum.photos/id/237/200/200
This is from reStructuredText.
```

## Alignment

````{furo-demo}
```{image} https://source.unsplash.com/200x200/daily?cute+animals
```{image} https://picsum.photos/id/237/200/200
:align: center
```
This is from Markdown.
+++
.. image:: https://source.unsplash.com/200x200/daily?cute+animals
.. image:: https://picsum.photos/id/237/200/200
:align: center
Expand All @@ -38,15 +38,15 @@ This is from reStructuredText.

````{furo-demo}
```{figure} https://source.unsplash.com/200x200/daily?cute+animals
```{figure} https://picsum.photos/id/237/200/200
This is a captioned image, which needs the "figure" directive.
```
This is from Markdown.
+++
.. figure:: https://source.unsplash.com/200x200/daily?cute+animals
.. figure:: https://picsum.photos/id/237/200/200
This is a captioned image, which needs the "figure" directive.
Expand All @@ -66,22 +66,22 @@ based on the currently active colour scheme.

````{furo-demo}
```{image} https://source.unsplash.com/200x200/daily?cute+dogs
```{image} https://picsum.photos/id/237/200/200
:align: center
:class: only-light
```
```{image} https://source.unsplash.com/200x200/daily?cute+cats
```{image} https://picsum.photos/id/237/200/200
:align: center
:class: only-dark
```
```{figure} https://source.unsplash.com/200x200/daily?cute+cats
```{figure} https://picsum.photos/id/237/200/200
:align: center
:figclass: only-light
```
```{figure} https://source.unsplash.com/200x200/daily?cute+dogs
```{figure} https://picsum.photos/id/237/200/200
:align: center
:figclass: only-dark
```
Expand All @@ -90,22 +90,22 @@ This is from Markdown.
+++
.. image:: https://source.unsplash.com/200x200/daily?cute+dogs
.. image:: https://picsum.photos/id/237/200/200
:align: center
:class: only-light
.. image:: https://source.unsplash.com/200x200/daily?cute+cats
.. image:: https://picsum.photos/id/237/200/200
:align: center
:class: only-dark
.. figure:: https://source.unsplash.com/200x200/daily?cute+cats
.. figure:: https://picsum.photos/id/237/200/200
:align: center
:figclass: only-light
.. figure:: https://source.unsplash.com/200x200/daily?cute+dogs
.. figure:: https://picsum.photos/id/237/200/200
:align: center
:figclass: only-dark
Expand Down

0 comments on commit fc6337c

Please sign in to comment.