get_translation_banner_content() — fastapi Function Reference
Architecture documentation for the get_translation_banner_content() function in mkdocs_hooks.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 89f35cca_48c0_852c_b202_88588d0b7431["get_translation_banner_content()"] 566dbae4_46de_4e4a_0ed4_0c59e40fbcf8["mkdocs_hooks.py"] 89f35cca_48c0_852c_b202_88588d0b7431 -->|defined in| 566dbae4_46de_4e4a_0ed4_0c59e40fbcf8 331ccf21_aeb9_a5b0_5b21_4e6f6a898a2f["on_page_markdown()"] 331ccf21_aeb9_a5b0_5b21_4e6f6a898a2f -->|calls| 89f35cca_48c0_852c_b202_88588d0b7431 style 89f35cca_48c0_852c_b202_88588d0b7431 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/mkdocs_hooks.py lines 30–37
def get_translation_banner_content(docs_dir: str) -> str:
docs_dir_path = Path(docs_dir)
translation_banner_path = docs_dir_path / "translation-banner.md"
if not translation_banner_path.is_file():
translation_banner_path = (
docs_dir_path.parent.parent / "en" / "docs" / "translation-banner.md"
)
return translation_banner_path.read_text(encoding="utf-8")
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_translation_banner_content() do?
get_translation_banner_content() is a function in the fastapi codebase, defined in scripts/mkdocs_hooks.py.
Where is get_translation_banner_content() defined?
get_translation_banner_content() is defined in scripts/mkdocs_hooks.py at line 30.
What calls get_translation_banner_content()?
get_translation_banner_content() is called by 1 function(s): on_page_markdown.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free