Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Tang (0.13 sec)

  1. scripts/mkdocs_hooks.py

        available_langs = get_mkdocs_material_langs()
        dir_path = Path(config.docs_dir)
        lang = dir_path.parent.name
        if lang in available_langs:
            config.theme["language"] = lang
        if not (config.site_url or "").endswith(f"{lang}/") and not lang == "en":
            config.site_url = f"{config.site_url}{lang}/"
        return config
    
    
    def resolve_file(*, item: str, files: Files, config: MkDocsConfig) -> None:
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
Back to top