From bd4c17b5939aebacdae47f7fcb113bbc2fdf9ea1 Mon Sep 17 00:00:00 2001 From: Nimitha J <58389915+Nimitha-jagadeesha@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:12:39 +0530 Subject: [PATCH 1/6] Update delete.md --- docs/tutorial/fastapi/delete.md | 62 +-------------------------------- 1 file changed, 1 insertion(+), 61 deletions(-) diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index 87144cc08d..bb5457fe4c 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -12,69 +12,9 @@ We get a `hero_id` from the path parameter and verify if it exists, just as we d And if we actually find a hero, we just delete it with the **session**. -//// tab | Python 3.10+ -```Python hl_lines="3-11" -# Code above omitted 👆 -{!./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97]!} - -# Code below omitted 👇 -``` - -//// - -//// tab | Python 3.9+ - -```Python hl_lines="3-11" -# Code above omitted 👆 - -{!./docs_src/tutorial/fastapi/delete/tutorial001_py39.py[ln:91-99]!} - -# Code below omitted 👇 -``` - -//// - -//// tab | Python 3.7+ - -```Python hl_lines="3-11" -# Code above omitted 👆 - -{!./docs_src/tutorial/fastapi/delete/tutorial001.py[ln:91-99]!} - -# Code below omitted 👇 -``` - -//// - -/// details | 👀 Full file preview - -//// tab | Python 3.10+ - -```Python -{!./docs_src/tutorial/fastapi/delete/tutorial001_py310.py!} -``` - -//// - -//// tab | Python 3.9+ - -```Python -{!./docs_src/tutorial/fastapi/delete/tutorial001_py39.py!} -``` - -//// - -//// tab | Python 3.7+ - -```Python -{!./docs_src/tutorial/fastapi/delete/tutorial001.py!} -``` - -//// - -/// +{*./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3;11] *} After deleting it successfully, we just return a response of: From 2942b5f1e1e4af91850b97e92b9634e985751dc6 Mon Sep 17 00:00:00 2001 From: Nimitha J <58389915+Nimitha-jagadeesha@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:13:10 +0530 Subject: [PATCH 2/6] Update delete.md --- docs/tutorial/fastapi/delete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index bb5457fe4c..6e271ddc17 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -14,7 +14,7 @@ And if we actually find a hero, we just delete it with the **session**. -{*./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3;11] *} +{*./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3:11] *} After deleting it successfully, we just return a response of: From 32d1c76a1a96b03c8137d8b2437a49b8b6e991fd Mon Sep 17 00:00:00 2001 From: Nimitha J <58389915+Nimitha-jagadeesha@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:13:32 +0530 Subject: [PATCH 3/6] Update delete.md --- docs/tutorial/fastapi/delete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index 6e271ddc17..3a6a14dd56 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -14,7 +14,7 @@ And if we actually find a hero, we just delete it with the **session**. -{*./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3:11] *} +{* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3:11] *} After deleting it successfully, we just return a response of: From 138e97234b6a7a17c4c73aaa4af903f0358ee552 Mon Sep 17 00:00:00 2001 From: Nimitha J <58389915+Nimitha-jagadeesha@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:20:45 +0530 Subject: [PATCH 4/6] Update delete.md --- docs/tutorial/fastapi/delete.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index 3a6a14dd56..cc58ad6eb8 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -12,8 +12,6 @@ We get a `hero_id` from the path parameter and verify if it exists, just as we d And if we actually find a hero, we just delete it with the **session**. - - {* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3:11] *} After deleting it successfully, we just return a response of: From 31368dded3dcd4ab5feb5016c7f4c43789937918 Mon Sep 17 00:00:00 2001 From: Nimitha J <58389915+Nimitha-jagadeesha@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:26:38 +0530 Subject: [PATCH 5/6] Update delete.md --- docs/tutorial/fastapi/delete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index cc58ad6eb8..2310fd85ad 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -12,7 +12,7 @@ We get a `hero_id` from the path parameter and verify if it exists, just as we d And if we actually find a hero, we just delete it with the **session**. -{* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97] hl[3:11] *} +{* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py [ln:89-97] hl[3:11] *} After deleting it successfully, we just return a response of: From 9a808e249fc44dffa9e7e305c1504b19dc5e09a7 Mon Sep 17 00:00:00 2001 From: Nimitha J <58389915+Nimitha-jagadeesha@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:28:25 +0530 Subject: [PATCH 6/6] Proper syntax --- docs/tutorial/fastapi/delete.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index 2310fd85ad..3a850c72dd 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -12,7 +12,7 @@ We get a `hero_id` from the path parameter and verify if it exists, just as we d And if we actually find a hero, we just delete it with the **session**. -{* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py [ln:89-97] hl[3:11] *} +{* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py ln[89:97] hl[3:11] *} After deleting it successfully, we just return a response of: