Browse Source

Remove code examples for Python 3.8 in `configure_swagger_ui`

pull/14510/head
Yurii Motov 7 months ago
parent
commit
fcf8a424b7
  1. 6
      docs/en/docs/how-to/configure-swagger-ui.md
  2. 0
      docs_src/configure_swagger_ui/tutorial001_py39.py
  3. 0
      docs_src/configure_swagger_ui/tutorial002_py39.py
  4. 0
      docs_src/configure_swagger_ui/tutorial003_py39.py
  5. 2
      tests/test_tutorial/test_configure_swagger_ui/test_tutorial001.py
  6. 2
      tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py
  7. 2
      tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py

6
docs/en/docs/how-to/configure-swagger-ui.md

@ -18,7 +18,7 @@ Without changing the settings, syntax highlighting is enabled by default:
But you can disable it by setting `syntaxHighlight` to `False`: But you can disable it by setting `syntaxHighlight` to `False`:
{* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *} {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
...and then Swagger UI won't show the syntax highlighting anymore: ...and then Swagger UI won't show the syntax highlighting anymore:
@ -28,7 +28,7 @@ But you can disable it by setting `syntaxHighlight` to `False`:
The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle): The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle):
{* ../../docs_src/configure_swagger_ui/tutorial002.py hl[3] *} {* ../../docs_src/configure_swagger_ui/tutorial002_py39.py hl[3] *}
That configuration would change the syntax highlighting color theme: That configuration would change the syntax highlighting color theme:
@ -46,7 +46,7 @@ You can override any of them by setting a different value in the argument `swagg
For example, to disable `deepLinking` you could pass these settings to `swagger_ui_parameters`: For example, to disable `deepLinking` you could pass these settings to `swagger_ui_parameters`:
{* ../../docs_src/configure_swagger_ui/tutorial003.py hl[3] *} {* ../../docs_src/configure_swagger_ui/tutorial003_py39.py hl[3] *}
## Other Swagger UI Parameters { #other-swagger-ui-parameters } ## Other Swagger UI Parameters { #other-swagger-ui-parameters }

0
docs_src/configure_swagger_ui/tutorial001.py → docs_src/configure_swagger_ui/tutorial001_py39.py

0
docs_src/configure_swagger_ui/tutorial002.py → docs_src/configure_swagger_ui/tutorial002_py39.py

0
docs_src/configure_swagger_ui/tutorial003.py → docs_src/configure_swagger_ui/tutorial003_py39.py

2
tests/test_tutorial/test_configure_swagger_ui/test_tutorial001.py

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient from fastapi.testclient import TestClient
from docs_src.configure_swagger_ui.tutorial001 import app from docs_src.configure_swagger_ui.tutorial001_py39 import app
client = TestClient(app) client = TestClient(app)

2
tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient from fastapi.testclient import TestClient
from docs_src.configure_swagger_ui.tutorial002 import app from docs_src.configure_swagger_ui.tutorial002_py39 import app
client = TestClient(app) client = TestClient(app)

2
tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient from fastapi.testclient import TestClient
from docs_src.configure_swagger_ui.tutorial003 import app from docs_src.configure_swagger_ui.tutorial003_py39 import app
client = TestClient(app) client = TestClient(app)

Loading…
Cancel
Save