_add_lang_code_to_url() — fastapi Function Reference
Architecture documentation for the _add_lang_code_to_url() function in doc_parsing_utils.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD aa93488d_92f1_0a8b_cd55_27a49e4e659d["_add_lang_code_to_url()"] c463d6a9_085f_f272_b9fc_455b7e9b6a57["doc_parsing_utils.py"] aa93488d_92f1_0a8b_cd55_27a49e4e659d -->|defined in| c463d6a9_085f_f272_b9fc_455b7e9b6a57 88c955bc_31b8_3ca8_ac86_c3d85778b519["_construct_markdown_link()"] 88c955bc_31b8_3ca8_ac86_c3d85778b519 -->|calls| aa93488d_92f1_0a8b_cd55_27a49e4e659d 5b3b4919_0c37_b982_3e43_e27ec8b34816["_construct_html_link()"] 5b3b4919_0c37_b982_3e43_e27ec8b34816 -->|calls| aa93488d_92f1_0a8b_cd55_27a49e4e659d style aa93488d_92f1_0a8b_cd55_27a49e4e659d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/doc_parsing_utils.py lines 279–284
def _add_lang_code_to_url(url: str, lang_code: str) -> str:
if url.startswith(TIANGOLO_COM):
rel_url = url[len(TIANGOLO_COM) :]
if not rel_url.startswith(ASSETS_URL_PREFIXES):
url = url.replace(TIANGOLO_COM, f"{TIANGOLO_COM}/{lang_code}")
return url
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does _add_lang_code_to_url() do?
_add_lang_code_to_url() is a function in the fastapi codebase, defined in scripts/doc_parsing_utils.py.
Where is _add_lang_code_to_url() defined?
_add_lang_code_to_url() is defined in scripts/doc_parsing_utils.py at line 279.
What calls _add_lang_code_to_url()?
_add_lang_code_to_url() is called by 2 function(s): _construct_html_link, _construct_markdown_link.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free