From: Sebastián Ramírez Date: Sat, 26 Oct 2024 11:48:16 +0000 (+0200) Subject: 📝 Update includes in `docs/en/docs/tutorial/first-steps.md` (#12552) X-Git-Tag: 0.115.4~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56bc9a5eb4e150656518fdad689988539c339a74;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update includes in `docs/en/docs/tutorial/first-steps.md` (#12552) --- diff --git a/docs/en/docs/tutorial/first-steps.md b/docs/en/docs/tutorial/first-steps.md index 77728cebe1..1c20b945ac 100644 --- a/docs/en/docs/tutorial/first-steps.md +++ b/docs/en/docs/tutorial/first-steps.md @@ -2,9 +2,7 @@ The simplest FastAPI file could look like this: -```Python -{!../../docs_src/first_steps/tutorial001.py!} -``` +{* ../../docs_src/first_steps/tutorial001.py *} Copy that to a file `main.py`. @@ -157,9 +155,7 @@ You could also use it to generate code automatically, for clients that communica ### Step 1: import `FastAPI` -```Python hl_lines="1" -{!../../docs_src/first_steps/tutorial001.py!} -``` +{* ../../docs_src/first_steps/tutorial001.py hl[1] *} `FastAPI` is a Python class that provides all the functionality for your API. @@ -173,9 +169,7 @@ You can use all the