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