generate_en_path() — fastapi Function Reference
Architecture documentation for the generate_en_path() function in translate.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 92770808_54ce_f72b_7227_d481001db885["generate_en_path()"] 6dda5e35_b655_8af3_cd89_8c1584a092c4["translate.py"] 92770808_54ce_f72b_7227_d481001db885 -->|defined in| 6dda5e35_b655_8af3_cd89_8c1584a092c4 1029873d_24b6_13bb_abff_e1b1e042ff39["list_removable()"] 1029873d_24b6_13bb_abff_e1b1e042ff39 -->|calls| 92770808_54ce_f72b_7227_d481001db885 style 92770808_54ce_f72b_7227_d481001db885 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/translate.py lines 50–57
def generate_en_path(*, lang: str, path: Path) -> Path:
en_docs_path = Path("docs/en/docs")
assert not str(path).startswith(str(en_docs_path)), (
f"Path must not be inside {en_docs_path}"
)
lang_docs_path = Path(f"docs/{lang}/docs")
out_path = Path(str(path).replace(str(lang_docs_path), str(en_docs_path)))
return out_path
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does generate_en_path() do?
generate_en_path() is a function in the fastapi codebase, defined in scripts/translate.py.
Where is generate_en_path() defined?
generate_en_path() is defined in scripts/translate.py at line 50.
What calls generate_en_path()?
generate_en_path() is called by 1 function(s): list_removable.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free