| 1 |
From: Carsten Schoenert <[email protected]> |
| 2 |
Date: Thu, 27 May 2021 18:58:54 +0200 |
| 3 |
Subject: Sphinx: Don't link to external images |
| 4 |
|
| 5 |
Some screenshots were included by using linking to images added to |
| 6 |
raw.githubusercontent.com which might become a security breach and also |
| 7 |
are only available if the user has access to the internet. |
| 8 |
|
| 9 |
Using instead local stored images to prevent potential issues due the |
| 10 |
external linking. |
| 11 |
|
| 12 |
Forwarded: not-needed |
| 13 |
--- |
| 14 |
README.rst | 6 +++--- |
| 15 |
1 file changed, 3 insertions(+), 3 deletions(-) |
| 16 |
|
| 17 |
diff --git a/README.rst b/README.rst |
| 18 |
index 6a090a8..6b98e56 100644 |
| 19 |
--- a/README.rst |
| 20 |
+++ b/README.rst |
| 21 |
@@ -57,21 +57,21 @@ Features |
| 22 |
- supports Django REST Framework API versioning with ``URLPathVersioning`` and ``NamespaceVersioning``; other DRF |
| 23 |
or custom versioning schemes are not currently supported |
| 24 |
|
| 25 |
-.. figure:: https://raw.githubusercontent.com/axnsan12/drf-yasg/1.0.2/screenshots/redoc-nested-response.png |
| 26 |
+.. figure:: ../images/redoc-nested-response.png |
| 27 |
:width: 100% |
| 28 |
:figwidth: image |
| 29 |
:alt: redoc screenshot |
| 30 |
|
| 31 |
**Fully nested request and response schemas.** |
| 32 |
|
| 33 |
-.. figure:: https://raw.githubusercontent.com/axnsan12/drf-yasg/1.0.2/screenshots/swagger-ui-list.png |
| 34 |
+.. figure:: ../images/swagger-ui-list.png |
| 35 |
:width: 100% |
| 36 |
:figwidth: image |
| 37 |
:alt: swagger-ui screenshot |
| 38 |
|
| 39 |
**Choose between redoc and swagger-ui.** |
| 40 |
|
| 41 |
-.. figure:: https://raw.githubusercontent.com/axnsan12/drf-yasg/1.0.2/screenshots/swagger-ui-models.png |
| 42 |
+.. figure:: ../images/swagger-ui-models.png |
| 43 |
:width: 100% |
| 44 |
:figwidth: image |
| 45 |
:alt: model definitions screenshot |