Remove code examples for Python 3.8 in `configure_swagger_ui`

This commit is contained in:
Yurii Motov 2025-12-10 19:57:01 +01:00
parent ed47da49b3
commit fcf8a424b7
7 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ Without changing the settings, syntax highlighting is enabled by default:
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:
@ -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):
{* ../../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:
@ -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`:
{* ../../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 }

View File

@ -1,6 +1,6 @@
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)

View File

@ -1,6 +1,6 @@
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)

View File

@ -1,6 +1,6 @@
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)